From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kazza765 Newsgroups: gmane.emacs.help Subject: Stop a macro from terminating on beep Date: Wed, 1 Apr 2009 15:51:56 -0700 (PDT) Message-ID: <22834993.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1238645096 23679 80.91.229.12 (2 Apr 2009 04:04:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2009 04:04:56 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 02 06:06:14 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LpEBw-0000Un-Tc for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Apr 2009 06:06:13 +0200 Original-Received: from localhost ([127.0.0.1]:47042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpEAZ-00012S-94 for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Apr 2009 00:04:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lp9Hu-0005GS-Ao for help-gnu-emacs@gnu.org; Wed, 01 Apr 2009 18:52:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lp9Hq-0005Fv-SX for Help-gnu-emacs@gnu.org; Wed, 01 Apr 2009 18:52:02 -0400 Original-Received: from [199.232.76.173] (port=49728 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lp9Hq-0005Fq-Md for Help-gnu-emacs@gnu.org; Wed, 01 Apr 2009 18:51:58 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:49490) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lp9Hq-00020q-Ep for Help-gnu-emacs@gnu.org; Wed, 01 Apr 2009 18:51:58 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lp9Ho-0007Lh-HO for Help-gnu-emacs@gnu.org; Wed, 01 Apr 2009 15:51:56 -0700 X-Nabble-From: lowe.john@gmail.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 02 Apr 2009 00:03:29 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63442 Archived-At: Hi So, basically I'm trying to do what the title suggests. I have a macro that searches through a file, finds an instance of the text I'm looking for, and deletes the next three lines. I then have another macro that runs \C-u10000000\C-[xname-of-macro \C-x\C-s\C-x\C-c , so I want it to exit after tha macro is finished. This works fine in macros that don't cause a beep, and I can run them using emacs -f name-of-macro, but the system beep that occurs when this macro can't find any more matching patterns causes the macro to abort, and doesn't execute the save and quit commands. Is there any way around this? Or is there any better way to execute a search macro an unknown number of times and still have emacs exit afterwards? Thankyou, John -- View this message in context: http://www.nabble.com/Stop-a-macro-from-terminating-on-beep-tp22834993p22834993.html Sent from the Emacs - Help mailing list archive at Nabble.com.