From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: [CVS] f7, f8 bound.. Date: Mon, 9 Sep 2002 09:43:48 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <20020909134348.GA18843@gnu.org> References: <200208271621.g7RGLNm30516@rum.cs.yale.edu> <5xhehfe3aj.fsf@kfs2.cua.dk> <5x4rdfdzu6.fsf@kfs2.cua.dk> <200208281413.g7SEDkT03872@rum.cs.yale.edu> <5xvg5thgw8.fsf@kfs2.cua.dk> <200208291724.g7THOJZ11366@rum.cs.yale.edu> <5xd6roult6.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031579105 18076 127.0.0.1 (9 Sep 2002 13:45:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Sep 2002 13:45:05 +0000 (UTC) Cc: Stefan Monnier , "D. Goel" , emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17oOqd-0004hM-00 for ; Mon, 09 Sep 2002 15:45:03 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17oPQa-000385-00 for ; Mon, 09 Sep 2002 16:22:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17oOqg-0001vP-00; Mon, 09 Sep 2002 09:45:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17oOpV-0001sv-00 for emacs-devel@gnu.org; Mon, 09 Sep 2002 09:43:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17oOpQ-0001sj-00 for emacs-devel@gnu.org; Mon, 09 Sep 2002 09:43:52 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17oOpQ-0001sd-00 for emacs-devel@gnu.org; Mon, 09 Sep 2002 09:43:48 -0400 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.10) id 17oOpQ-00056v-00; Mon, 09 Sep 2002 09:43:48 -0400 Original-To: "Kim F. Storm" Content-Disposition: inline In-Reply-To: <5xd6roult6.fsf@kfs2.cua.dk> User-Agent: Mutt/1.3.28i Blat: Foop Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7746 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7746 On Mon, Sep 09, 2002 at 01:02:45AM +0200, Kim F. Storm wrote: > I would like to change that so if an error occurs while defining a > macro, emacs will query the user whether he wants to continue adding > to the macro, end and save it, or discard it. WDYT? That sounds like a good idea; unintentional errors are one of the most annoying things about defining macros. Some points: * Since the command that that caused the error will likely do the same thing when actually executing the macro, it seems like it would be useful to somehow remove the last command (which caused the error) from the macro. However, I'm not sure whether this could be always be done without mucking things up -- for commands which always signal an error before causing any side-effects, it seems like it would be safe though. * A three-way choice seems unnecessary, since the user can easily end the macro himself; it would be simpler to just ask `Error occured; ignore last command? (y or n)' or something similar. -Miles -- P.S. All information contained in the above letter is false, for reasons of military security.