all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Angus Comber <anguscomber@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Replace all tab characters in buffer with newline
Date: Wed, 15 Jan 2014 08:51:45 -0800 (PST)	[thread overview]
Message-ID: <ba298069-9af0-4f99-97ab-02735270f667@googlegroups.com> (raw)
In-Reply-To: <f6b7e9ed-f91d-4ec7-9c54-1ca23d274837@googlegroups.com>

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.



  parent reply	other threads:[~2014-01-15 16:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-15 16:41 Replace all tab characters in buffer with newline Angus Comber
2014-01-15 16:47 ` Guido Van Hoecke
2014-01-15 16:51 ` Angus Comber [this message]
2014-01-16  6:30   ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ba298069-9af0-4f99-97ab-02735270f667@googlegroups.com \
    --to=anguscomber@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.