From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: nesting of unwind-protect and atomic-change-group Date: Fri, 01 Feb 2008 17:48:56 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1201884755 13547 80.91.229.12 (1 Feb 2008 16:52:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2008 16:52:35 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 01 17:52:56 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 1JKz8F-0001Ti-IV for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2008 17:52:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKz7o-0001oj-1u for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Feb 2008 11:52:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKz4i-0006XJ-Uh for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2008 11:49:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKz4g-0006VU-5X for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2008 11:49:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKz4f-0006VL-Qc for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2008 11:49:09 -0500 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKz4f-0003lY-Cz for bug-gnu-emacs@gnu.org; Fri, 01 Feb 2008 11:49:09 -0500 Original-Received: from tfkp07.physik.uni-erlangen.de (tfkp07.physik.uni-erlangen.de [131.188.164.207]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id BA6D722060 for ; Fri, 1 Feb 2008 17:48:56 +0100 (CET) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:17444 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). Maybe the proper ordering of unwind-protect and atomic-change-group is obvious for experts. Nonetheless, I suggest that this should be documented in the docstring of atomic-change-group (as it is, e.g., for save-excursion and save-restriction.) Roland In GNU Emacs 22.1.2 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-10-15 on tfkp07 configured using `configure '--prefix=/nfs/tfkp07/winkler/emacs/NEW' '--with-gcc' '--with-pop' '--with-x' '--with-x-toolkit=athena''