all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Aronovitch <daronovitch@cdcs-cmdc.be>
To: Help-gnu-emacs@gnu.org
Subject: M-% in macro
Date: Mon, 30 Jan 2012 01:51:27 -0800 (PST)	[thread overview]
Message-ID: <33227962.post@talk.nabble.com> (raw)


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
-- 
View this message in context: http://old.nabble.com/M---in-macro-tp33227962p33227962.html
Sent from the Emacs - Help mailing list archive at Nabble.com.




             reply	other threads:[~2012-01-30  9:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-30  9:51 Daniel Aronovitch [this message]
2012-01-30 18:41 ` M-% in macro Drew Adams

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=33227962.post@talk.nabble.com \
    --to=daronovitch@cdcs-cmdc.be \
    --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.
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.