From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: undoing changes automatically Date: Thu, 10 Jan 2008 09:43:20 -0500 Message-ID: References: <18231.43165.842097.720674@tfkp07.physik.uni-erlangen.de> <853avbp6ie.fsf@lola.goethe.zz> <18232.50129.24712.310255@tfkp07.physik.uni-erlangen.de> <18308.10385.319747.688235@tfkp07.physik.uni-erlangen.de> <18308.36729.829191.788405@tfkp07.physik.uni-erlangen.de> <18308.40419.541912.6211@tfkp07.physik.uni-erlangen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199976229 20635 80.91.229.12 (10 Jan 2008 14:43:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2008 14:43:49 +0000 (UTC) Cc: emacs-devel@gnu.org, Roland.Winkler@physik.uni-erlangen.de To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 10 15:44:02 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCydP-00070i-JF for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2008 15:43:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCyd2-0007FK-4c for ged-emacs-devel@m.gmane.org; Thu, 10 Jan 2008 09:43:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCycx-0007DL-5k for emacs-devel@gnu.org; Thu, 10 Jan 2008 09:43:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCycw-0007D5-6Y for emacs-devel@gnu.org; Thu, 10 Jan 2008 09:43:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCycw-0007Cy-2I for emacs-devel@gnu.org; Thu, 10 Jan 2008 09:43:26 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCycs-0004bK-9T; Thu, 10 Jan 2008 09:43:22 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CABa+hUfO+KVp/2dsb2JhbACqCnw X-IronPort-AV: E=Sophos;i="4.24,267,1196658000"; d="scan'208";a="12506071" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 10 Jan 2008 09:43:21 -0500 Original-Received: from pastel.home ([206.248.165.105]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id QPB86720; Thu, 10 Jan 2008 09:43:20 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 602187F44; Thu, 10 Jan 2008 09:43:20 -0500 (EST) In-Reply-To: (Richard Stallman's message of "Thu, 10 Jan 2008 07:20:43 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86700 Archived-At: > If the failure mechanism is what you suggested, I think this patch is > called for. What do you think? Sounds good, especially if we add a comment next to it. Stefan > *** subr.el 18 Nov 2007 17:58:04 -0500 1.554.2.7 > --- subr.el 09 Jan 2008 23:26:01 -0500 > *************** > *** 1802,1807 **** > --- 1802,1808 ---- > (let ((handle (make-symbol "--change-group-handle--")) > (success (make-symbol "--change-group-success--"))) > `(let ((,handle (prepare-change-group)) > + (undo-outer-limit nil) > (,success nil)) > (unwind-protect > (progn