unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to replace a character by an unprintable character ?
@ 2005-01-24 21:00 J?r?me RADIX
  2005-01-24 21:07 ` Jesper Harder
  2005-01-24 21:11 ` Drew Adams
  0 siblings, 2 replies; 5+ messages in thread
From: J?r?me RADIX @ 2005-01-24 21:00 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-24 22:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-24 21:00 How to replace a character by an unprintable character ? J?r?me RADIX
2005-01-24 21:07 ` 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

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).