unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* "C-a" the first character in each line?
@ 2007-06-24 13:20 Nikos Apostolakis
  2007-06-24 14:14 ` Drew Adams
  2007-06-25  9:36 ` Nikos Apostolakis
  0 siblings, 2 replies; 7+ messages in thread
From: Nikos Apostolakis @ 2007-06-24 13:20 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <mailman.2564.1182691580.32220.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2007-06-25  9:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-24 13:20 "C-a" the first character in each line? Nikos Apostolakis
2007-06-24 14:14 ` Drew Adams
2007-06-25  9:36 ` Nikos Apostolakis
     [not found] <mailman.2564.1182691580.32220.help-gnu-emacs@gnu.org>
2007-06-24 13:59 ` weber
2007-06-25  1:32   ` Barry Margolin
2007-06-24 14:17 ` Joost Kremers
2007-06-25  9:29   ` Nikos Apostolakis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).