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

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

Re: Replace with CR


From: Pascal J. Bourguignon
Subject: Re: Replace with CR
Date: Sun, 05 Jul 2015 17:36:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

<tomas@tuxteam.de> writes:

> On Sun, Jul 05, 2015 at 04:40:50PM +0200, Andrea Venturoli wrote:
>> Hello.
>> 
>> I'm using emacs on several FreeBSD boxes (text or X version).
>> For several years I've been able to replace any character with a
>> newline, by doing (e.g. with ';'):
>> M-x replace-string(enter);(enter)^Q(enter)(enter)
>
> Try M-x replace-string<ENTER>;<ENTER>^Q^J<ENTER>
>
> (i.e. replace your but-last <ENTER> with CTRL-J)

Again, there's no such thing as ENTER.  The key is RETURN.
You would type:

    M-x replace-string RET ; RET C-q C-j RET

(kbd "ENTER") --> "ENTER"
(kbd "RET") --> ""

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

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