help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"C-a" the first character in each line?


From: Nikos Apostolakis
Subject: "C-a" the first character in each line?
Date: Sun, 24 Jun 2007 09:20:14 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Hello group,

in the scratch buffer I did

-----------------
(while (search-forward-regexp "^\\(.\\)" nil t)
  (replace-match "\% \1"))
 
laa 
moo
nii
-----------------

I expected 

% 
% laa 
% moo
% nii

but isnstead I get 

% ^A
% ^Aaa 
% ^Aoo
% ^Aii

where ^A stands for the character "C-a".

What am I missing?

TIA,
Nikos





reply via email to

[Prev in Thread] Current Thread [Next in Thread]