unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: gregb@laserlab.com (Gregory (Greg) Benjamin)
To: Help-gnu-emacs@gnu.org
Subject: Re: Search in filled text does not work correctly
Date: Sat, 25 Feb 2012 17:59:47 -0800	[thread overview]
Message-ID: <86k43a1hik.fsf@dbn66.laserlab.com> (raw)


I happened to want to convert a list like this:

"apple" "banana" "cherry"

to this format:

apple
banana
cherry

the other day. I started our with 'replace-regexp' and learned about
C-q C-j in a matter of minutes after first trying \n, \\n, C-j,
etc. before googling. 

Perhaps it would be better to educate rather than change emacs'
behavior. The built-in tutorial could have a few words added about
using C-q C-j with respect to searching and replacing, or the single
tutorial now provided could be broken into several, with one dedicated
to searching, replacing, highlighting, displaying only the lines
containing a pattern, etc.





         reply	other threads:[~2012-02-26  1:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-25 12:59 Search in filled text does not work correctly linuxfever
2012-02-25 14:10 ` Peter Dyballa
2012-02-25 14:54   ` linuxfever
2012-02-25 15:03     ` linuxfever
2012-02-25 23:17       ` bitterspetey
2012-02-25 23:22         ` Drew Adams
2012-02-26  0:30         ` linuxfever
2012-02-26  1:05           ` linuxfever
2012-02-26  1:18             ` Drew Adams
2012-02-26  1:31               ` Drew Adams
2012-02-26  1:59 ` Gregory (Greg) Benjamin [this message]
2012-02-26 19:41   ` bitterspetey
2012-02-26 19:58     ` bitterspetey
2012-02-27 13:26       ` Ludwig, Mark

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86k43a1hik.fsf@dbn66.laserlab.com \
    --to=gregb@laserlab.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).