unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* nesting of unwind-protect and atomic-change-group
@ 2008-02-01 16:48 Roland Winkler
  2008-02-02  7:39 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Roland Winkler @ 2008-02-01 16:48 UTC (permalink / raw
  To: bug-gnu-emacs

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''




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-02-04 15:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6846.1201884554.18990.bug-gnu-emacs@gnu.org>
2008-02-02  4:31 ` nesting of unwind-protect and atomic-change-group Stefan Monnier
2008-02-01 16:48 Roland Winkler
2008-02-02  7:39 ` Richard Stallman
2008-02-02 17:54   ` Roland Winkler
2008-02-03 22:53   ` Roland Winkler
     [not found]   ` <mailman.6908.1202079211.18990.bug-gnu-emacs@gnu.org>
2008-02-04 15:21     ` Stefan Monnier
     [not found]   ` <mailman.6883.1201974855.18990.bug-gnu-emacs@gnu.org>
2008-02-04 15:23     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).