all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jradix@bigfoot.com (J?r?me RADIX)
Subject: How to replace a character by an unprintable character ?
Date: 24 Jan 2005 13:00:16 -0800	[thread overview]
Message-ID: <3076339b.0501241300.64a131ea@posting.google.com> (raw)

Hello,

Using M-% or C-M-% how do you replace each `;' in

a;b;c;d

by a carriage return (<RET>) to obtain :

a
b
c
d

The FAQ is not very explicit on this :
http://www.gnu.org/software/emacs/emacs-faq.text
Question 5.9
It only tells how to *search* for unprintable characters but not how
to replace a character by an unprintable character.

Emacs info file is not clear on this either ( C-h C-k C-M-% )

I've tried several things out in the replacement string without
success :

\n
C-q <RET>
[\n]
$
?\n

none of them work.

If you have an idea...

Thanks,
Jérôme.

             reply	other threads:[~2005-01-24 21:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-24 21:00 J?r?me RADIX [this message]
2005-01-24 21:07 ` How to replace a character by an unprintable character ? Jesper Harder
2005-01-24 22:47   ` Jérôme Radix
2005-01-24 21:11 ` Drew Adams
2005-01-24 22:43   ` Jérôme Radix

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=3076339b.0501241300.64a131ea@posting.google.com \
    --to=jradix@bigfoot.com \
    /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.