[PLUG] Emacs Replace At End of Line

Rogan Creswick creswick at gmail.com
Wed Mar 12 17:08:59 UTC 2008


On Wed, Mar 12, 2008 at 10:01 AM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Wed, 12 Mar 2008, Rogan Creswick wrote:
>
>  > M-x replace-regexp
>  > $<enter>
>  > )<enter>
>  > and every line in the buffer now ends with ")"
>
>  Rogan,
>
>    I did not try that because the emacs book notes that the ^ and $ need to
>  be escaped with a \.

It seems that you need the escape when searching for a literal $.  The
rules for replacement seem a bit more opaque, but I may just not have
good test examples.

It could also be that emacs 23 behaves differently.

--Rogan

>
>    Next time I'll try that.
>
>  Thanks,
>
>
>
>  Rich
>
>  --
>  Richard B. Shepard, Ph.D.               |  Integrity            Credibility
>  Applied Ecosystem Services, Inc.        |            Innovation
>  <http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863
>  _______________________________________________
>  PLUG mailing list
>  PLUG at lists.pdxlinux.org
>  http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list