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

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

Re: Replace all tab characters in buffer with newline


From: Angus Comber
Subject: Re: Replace all tab characters in buffer with newline
Date: Wed, 15 Jan 2014 08:51:45 -0800 (PST)
User-agent: G2/1.0

Hi I found a way to do this:

c-m-% then C-Q <tab> replace with: C-Q C-J

C-j is the key thing that works.

Reason is that C-J means a newline and if you just press enter that is 
interpretted by emacs as the end of the command.  (Or anyway is interpretted 
differently).




On Wednesday, 15 January 2014 16:41:08 UTC, Angus Comber  wrote:
> I have eg:
> 
> 
> 
> text1<tab>text2<tab>text3
> 
> text4<tab>text5<tab>text6
> 
> 
> 
> I want to transform into:
> 
> 
> 
> text1
> 
> text2
> 
> text3
> 
> text4
> 
> text5
> 
> text6
> 
> 
> 
> 
> 
> Using c-m-% I tried this:
> 
> 
> 
> c-m=% Used C-Q for quorted then entered tab key on keyboard
> 
> 
> 
> For replacement I used C-Q (quoted) then entered <enter> key
> 
> 
> 
> But then I end up with:
> 
> 
> 
> text1^Mtext2^Mtext3
> 
> text4^Mtext5^Mtext6
> 
> 
> 
> How should I have done it?
> 
> 
> 
> Platform is Windows by the way.



reply via email to

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