From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: Re: nesting of unwind-protect and atomic-change-group Date: Fri, 01 Feb 2008 23:31:22 -0500 Organization: UseNetServer.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201926817 6640 80.91.229.12 (2 Feb 2008 04:33:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Feb 2008 04:33:37 +0000 (UTC) To: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 02 05:33:59 2008 Return-path: Envelope-to: geb-bug-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 1JLA4k-0006zi-5T for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Feb 2008 05:33:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLA4I-00028L-Jq for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2008 23:33:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLA4A-000269-KF for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2008 23:33:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLA48-00024l-Ru for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2008 23:33:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLA48-00024e-Jj for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2008 23:33:20 -0500 Original-Received: from trinity.supernews.net ([216.168.1.22]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JLA48-0004b2-Db for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2008 23:33:20 -0500 Original-Received: from ispns3.usenetserver.com ([208.49.80.195]:48624) by trinity.supernews.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JLA2d-0000AJ-TN for gnu-emacs-bug@moderators.isc.org; Sat, 02 Feb 2008 04:31:48 +0000 Original-Received: from ispns3.usenetserver.com (ispns3.usenetserver.com [127.0.0.1]) by ispns3.usenetserver.com (8.12.11/8.12.11) with ESMTP id m124VVHc012671 for ; Sat, 2 Feb 2008 04:31:31 GMT Original-Received: (from news@localhost) by ispns3.usenetserver.com (8.12.11/8.12.11/Submit) id m124VNKA012668; Sat, 2 Feb 2008 04:31:23 GMT Original-Path: TEKSAVVY.COM-Free-a2kHrUvQQWlmc!not-for-mail Original-Newsgroups: gnu.emacs.bug User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:d26QxOmP+9q3ayl4JyvQvn1JLfA= Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 14 Original-X-Trace: 0ed1747a3f21b6b5d3adc12568 X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17446 Archived-At: > When combining unwind-protect and atomic-change-group I found that > putting unwind-protect outermost worked for me (i.e., an unwindform > moving point to the buffer location where the error occured was > obeyed), whereas doing it the other way round didn't work for me > (the unwindform was ignored). I'm pretty sure the unwind form is not ignored. Maybe the unwind form you tried happened to do something that's undone by the atomic-change-group undoing of buffer changes? Maybe this is even a bug in atomic-change-group. So please spell out your test case, Stefan .