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

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

Re: Using a newline character in the newstring in M-x replace-regexp


From: Xah
Subject: Re: Using a newline character in the newstring in M-x replace-regexp
Date: Thu, 14 Aug 2008 13:35:45 -0700 (PDT)
User-agent: G2/1.0

On Aug 14, 12:31 pm, Corey Foote <coreyfo...@hotmail.com> wrote:
> Hi,
>
> I've got one more quick question for you guys. The string
> I'd like to use as the newstring in M-x replace-regexp contains a few newline
> characters. Normally, I insert newlines by typing C-q C-j, but this doesn't
> work when calling this function. How do you specify a newline character when
> making a call to M-x replace-regexp?

It works for me and should work in any emacs 22. For interactive use,
i think C-q C-j is actually the only way to insert newlines.

If you are calling this function in elisp, you can use ā€œ\nā€. But
literal line feed should also work...

so i'm not sure what might be your problem?

  Xah
āˆ‘ http://xahlee.org/

ā˜„



reply via email to

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