From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Aronovitch Newsgroups: gmane.emacs.help Subject: M-% in macro Date: Mon, 30 Jan 2012 01:51:27 -0800 (PST) Message-ID: <33227962.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327948257 23674 80.91.229.3 (30 Jan 2012 18:30:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2012 18:30:57 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 30 19:30:57 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rrw0A-0006V3-Qi for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jan 2012 19:30:50 +0100 Original-Received: from localhost ([::1]:38302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rrw0A-00053k-4y for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jan 2012 13:30:50 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rrntf-0002C7-3o for Help-gnu-emacs@gnu.org; Mon, 30 Jan 2012 04:51:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rrntd-0001PV-RZ for Help-gnu-emacs@gnu.org; Mon, 30 Jan 2012 04:51:35 -0500 Original-Received: from sam.nabble.com ([216.139.236.26]:38694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rrntd-0001PG-Mp for Help-gnu-emacs@gnu.org; Mon, 30 Jan 2012 04:51:33 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RrntX-00075g-0K for Help-gnu-emacs@gnu.org; Mon, 30 Jan 2012 01:51:27 -0800 X-Nabble-From: daronovitch@cdcs-cmdc.be X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-Mailman-Approved-At: Mon, 30 Jan 2012 13:30:46 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83572 Archived-At: 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.