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

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

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


From: Nikos Apostolakis
Subject: Re: "C-a" the first character in each line?
Date: Mon, 25 Jun 2007 05:36:06 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Nikos Apostolakis <nikos.ap@gmail.com> writes:
> (while (search-forward-regexp "^\\(.\\)" nil t)
>   (replace-match "\% \1"))

[...]

>
> What am I missing?
>

So I was missing a backwards slash (plues some sleep but that's
another story ...)

Many thanks to all that answered.  

Nikos





reply via email to

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