unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Jérôme Radix" <jradix@bigfoot.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to replace a character by an unprintable character ?
Date: Mon, 24 Jan 2005 23:43:42 +0100	[thread overview]
Message-ID: <41F57A1E.5020009@bigfoot.com> (raw)
In-Reply-To: <FDELKNEBLPKKDCEBEJCBAEFPCLAA.drew.adams@oracle.com>

Thanks Drew for your answer.

I've tried that too :
C-q C-m writes ^M in the replacement string, and when doing the 
replacement, I have the following
a^Mb^Mc^Md

It seems it comes from the different line separation conventions (unix 
dos, mac...)

I can't figure out how to get

a
b
c
d

without closing/reopening the file to force emacs to guess in which line 
separation convention to run (I don't know of a way to change it with a 
single command...)

I keep searching...

Drew Adams a écrit :
>     
>     Using M-% or C-M-% how do you replace each `;' in
>     a;b;c;d by a carriage return (<RET>)
>     I've tried several things out in the replacement string without
>     success :
>     
>     C-q <RET>
> 
>    
> `C-q C-m'    (C-m is RETURN.)
> 
> 

      reply	other threads:[~2005-01-24 22:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=41F57A1E.5020009@bigfoot.com \
    --to=jradix@bigfoot.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).