[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
- Re: Replace with CR, (continued)
- Re: Replace with CR, Barry Margolin, 2015/07/05
- Re: Replace with CR, Óscar Fuentes, 2015/07/05
- Re: Replace with CR, Pascal J. Bourguignon, 2015/07/05
- Re: Replace with CR, Richard Wordingham, 2015/07/05
- Re: Replace with CR, Barry Fishman, 2015/07/06
- Re: Replace with CR, Stefan Monnier, 2015/07/06
- Message not available
- Re: Replace with CR, Andrea Venturoli, 2015/07/06
- Re: Replace with CR, Barry Margolin, 2015/07/06
- Re: Replace with CR, Andrea Venturoli, 2015/07/06
- Re: Replace with CR, Robert Thorpe, 2015/07/06
Message not available