GNU bug report logs - #19062
25.0.50; `Info-bookmark-jump' changes frames - see FIXME in code

Previous Next

Package: emacs;

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

Date: Sat, 15 Nov 2014 15:53:02 UTC

Severity: minor

Found in version 25.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19062 in the body.
You can then email your comments to 19062 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19062; Package emacs. (Sat, 15 Nov 2014 15:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 15 Nov 2014 15:53:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; `Info-bookmark-jump' changes frames - see FIXME in code
Date: Sat, 15 Nov 2014 07:51:58 -0800 (PST)
See the FIXME in the source code.  My setup is too involved to present
here.  Suffice it to say that the `Info-bookark-jump' code messes with
the frame that was selected before popping up the Info frame (for
`Info-find-node').  (I get a separate frame for the Info buffer because
`special-display-regexps' is `("[ ]?[*][^*]+[*]")'.)


In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2014-10-20 on LEG570
Bzr revision: 118168 rgm <at> gnu.org-20141020195941-icp42t8ttcnud09g
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'




Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 26 Dec 2015 16:30:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19062; Package emacs. (Tue, 02 Jul 2019 03:53:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: 19062 <at> debbugs.gnu.org
Subject: Re: bug#19062: 25.0.50; `Info-bookmark-jump' changes frames - see
 FIXME in code
Date: Tue, 2 Jul 2019 05:52:11 +0200
Drew Adams <drew.adams <at> oracle.com> writes:

> See the FIXME in the source code.  My setup is too involved to present
> here.  Suffice it to say that the `Info-bookark-jump' code messes with
> the frame that was selected before popping up the Info frame (for
> `Info-find-node').  (I get a separate frame for the Info buffer because
> `special-display-regexps' is `("[ ]?[*][^*]+[*]")'.)

I don't understand the problem here.  I set the following, according to
your suggestion:

(setq special-display-regexps '("[ ]?[*][^*]+[*]"))

And I've experimented a bit with jumping to info bookmarks without
seeing anything unusual.

Thanks,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19062; Package emacs. (Sun, 23 Aug 2020 01:46:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 19062 <at> debbugs.gnu.org
Subject: Re: bug#19062: 25.0.50; `Info-bookmark-jump' changes frames - see
 FIXME in code
Date: Sat, 22 Aug 2020 21:45:19 -0400
Stefan Kangas <stefan <at> marxist.se> writes:

> Drew Adams <drew.adams <at> oracle.com> writes:
>
>> See the FIXME in the source code.  My setup is too involved to present
>> here.  Suffice it to say that the `Info-bookark-jump' code messes with
>> the frame that was selected before popping up the Info frame (for
>> `Info-find-node').  (I get a separate frame for the Info buffer because
>> `special-display-regexps' is `("[ ]?[*][^*]+[*]")'.)
>
> I don't understand the problem here.  I set the following, according to
> your suggestion:
>
> (setq special-display-regexps '("[ ]?[*][^*]+[*]"))
>
> And I've experimented a bit with jumping to info bookmarks without
> seeing anything unusual.

Drew, do you have a way to reproduce this error?  (It seems like you
weren't in the Cc for my last message sent over a year ago.)

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19062; Package emacs. (Sun, 23 Aug 2020 04:42:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Stefan Kangas <stefan <at> marxist.se>, 19062 <at> debbugs.gnu.org
Subject: RE: bug#19062: 25.0.50; `Info-bookmark-jump' changes frames - see
 FIXME in code
Date: Sat, 22 Aug 2020 21:40:52 -0700 (PDT)
> > See the FIXME in the source code.  My setup is too involved to present
> > here.  Suffice it to say that the `Info-bookark-jump' code messes with
> > the frame that was selected before popping up the Info frame (for
> > `Info-find-node').  (I get a separate frame for the Info buffer because
> > `special-display-regexps' is `("[ ]?[*][^*]+[*]")'.)
> 
> I don't understand the problem here.  I set the following, according to
> your suggestion:
> 
> (setq special-display-regexps '("[ ]?[*][^*]+[*]"))
> 
> And I've experimented a bit with jumping to info bookmarks without
> seeing anything unusual.

Sorry, but a year later I don't recall the details.

The "FIXME" is maybe self-explanatory:
`save-window-excursion' can't restore the window config
of the frame that was selected before, if a different
frame is selected afterward.  It does this:

(let ((,c (current-window-configuration)))
   (unwind-protect (progn ,@body)
     (set-window-configuration ,c)))

If BODY selects a different frame then the
`set-window-configuration' is evaluated there,
which can't be right.

I don't know now whether the report was just
to point out the FIXME or whether it affected me.

I do get a separate frame for Info buffers, but
I don't know what to do to check whether the
window config in the original buffer doesn't
get restored correctly (I don't see how it could)
or whether trying to restore it in the newly
selected frame is problematic (I don't notice that
it is, but I don't fiddle with window configs, so
I don't think I'd notice, if it did).

I think a proper test would need to involve doing
something additional to the handler, to first
modify the original window config, then let the
new frame get selected, and see that the original
window config didn't get restored (it couldn't,
AFAICT).

I think the point of the bug report was probably
just to point to the FIXME.  Sorry I've forgotten.




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Wed, 02 Sep 2020 15:20:03 GMT) Full text and rfc822 format available.

Notification sent to Drew Adams <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Wed, 02 Sep 2020 15:20:03 GMT) Full text and rfc822 format available.

Message #21 received at 19062-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 19062-done <at> debbugs.gnu.org
Subject: Re: bug#19062: 25.0.50; `Info-bookmark-jump' changes frames - see
 FIXME in code
Date: Wed, 2 Sep 2020 15:19:49 +0000
Drew Adams <drew.adams <at> oracle.com> writes:

> I think the point of the bug report was probably
> just to point to the FIXME.  Sorry I've forgotten.

No worries, it happens to the best of us.  I think it's enough to track
that FIXME in the code, and someone will hopefully look into it at some
undefined point in the future.  That's generally what happens with
FIXME:s, I guess, until they become an actual issue.

I'm therefore closing this bug report now.  If you encounter any issues
with this functionality, feel free to reopen or open a new bug.  Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 01 Oct 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 208 days ago.

Previous Next


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