From: "Drew Adams" <drew.adams@oracle.com>
To: "'Daniel Aronovitch'" <daronovitch@cdcs-cmdc.be>,
<Help-gnu-emacs@gnu.org>
Subject: RE: M-% in macro
Date: Mon, 30 Jan 2012 10:41:12 -0800 [thread overview]
Message-ID: <445DD6429B1349B0BBD28FA9747FE290@us.oracle.com> (raw)
In-Reply-To: <33227962.post@talk.nabble.com>
> For some reasons, I've to perform every day a series of
> search/replace on a
> auto generated text file. I've no possibility to access the code that
> generate that file to correct the mistakes. So, what I did is
> a macro in emacs that performs those search/replace all, that is
> with a "!" as last input of each search/replace command. My problem
> is that if there is no occurrence of one specific search that might
> appear on the next day, the "!" is understood as a typed character
> and not anymore as "replace all" and hence is inserted in the text,
> which is an annoyance. Does anyone have a idea on how I could
> avoid that problem. Thanks. DA
Sounds like you do not really want/need a query-replace dialog. See command
`replace-string'.
If you want to use Lisp instead of a keyboard macro for this, then see the note
in the `replace-string' doc string about what to use in Lisp.
prev parent reply other threads:[~2012-01-30 18:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-30 9:51 M-% in macro Daniel Aronovitch
2012-01-30 18:41 ` Drew Adams [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=445DD6429B1349B0BBD28FA9747FE290@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=daronovitch@cdcs-cmdc.be \
/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.