GNU bug report logs - #7728
24.0.50; GDB backtrace from abort

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 24 Dec 2010 16:51:02 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #89 received at 7728 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 'Eli Zaretskii' <eliz <at> gnu.org>, 7728 <at> debbugs.gnu.org
Subject: Re: bug#7728: 24.0.50; GDB backtrace from abort
Date: Thu, 13 Jan 2011 12:02:15 -0500
>> Admittedly, I think the above code is mistaken.  It kind of reminds me
>> of the infamous (save-excursion (set-buffer) ...), although in worse
>> since, like Martin, I despise save-window-excursion.

> And just what code do you suggest for going off to do something on
> a different frame and returning?  AFAIK we do not have
> a `save-frame-excursion'.

Hmm... let's see... how 'bout `with-selected-frame'?  ;-)

> I have always considered (and seen) `save-window-excursion' to be the
> way to do this.

No, as Martin mentioned, save-window-excursion is the macro to use if
you want to write code that breaks in "odd" cases (sidenote:
one-buffer-per-frame is one of those "odd" cases that tend to trigger
bugs in code using save-window-excursion, so you probably "often" suffer
from those things, like me).


        Stefan




This bug report was last modified 12 years and 357 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.