GNU bug report logs - #45581
28.0.50; C-M-v in xref buffers shows a different buffer when scrolling

Previous Next

Package: emacs;

Reported by: Daniel Martín <mardani29 <at> yahoo.es>

Date: Thu, 31 Dec 2020 22:52:02 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

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 45581 in the body.
You can then email your comments to 45581 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#45581; Package emacs. (Thu, 31 Dec 2020 22:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Martín <mardani29 <at> yahoo.es>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 31 Dec 2020 22:52:02 GMT) Full text and rfc822 format available.

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

From: Daniel Martín <mardani29 <at> yahoo.es>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; C-M-v in xref buffers shows a different buffer when scrolling
Date: Thu, 31 Dec 2020 23:51:38 +0100
Steps to reproduce the problem:

1. emacs -Q
2. Open any file with source code (for example, xdisp.c).
3. Place the point in any symbol (for example, redisplay_internal).
4. Press M-? (`xref-find-references').
5. In the *xref* buffer, press n (`xref-next-line').
6. Press C-h m (`describe-mode').
7. Press C-M-v to scroll the help window.

Expected results:

The mode description window scrolls as usual.

Actual results:

The buffer with the file that contains the selected xref item replaces
the *Help* buffer and is scrolled instead.

I can't reproduce the same behavior in *grep* buffers.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45581; Package emacs. (Fri, 01 Jan 2021 22:44:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Daniel Martín <mardani29 <at> yahoo.es>, 45581 <at> debbugs.gnu.org
Subject: Re: bug#45581: 28.0.50; C-M-v in xref buffers shows a different
 buffer when scrolling
Date: Sat, 2 Jan 2021 00:43:36 +0200
Hi!

On 01.01.2021 00:51, Daniel Martín via Bug reports for GNU Emacs, the 
Swiss army knife of text editors wrote:
> 
> Steps to reproduce the problem:
> 
> 1. emacs -Q
> 2. Open any file with source code (for example, xdisp.c).
> 3. Place the point in any symbol (for example, redisplay_internal).
> 4. Press M-? (`xref-find-references').
> 5. In the *xref* buffer, press n (`xref-next-line').
> 6. Press C-h m (`describe-mode').
> 7. Press C-M-v to scroll the help window.
> 
> Expected results:
> 
> The mode description window scrolls as usual.
> 
> Actual results:
> 
> The buffer with the file that contains the selected xref item replaces
> the *Help* buffer and is scrolled instead.
> 
> I can't reproduce the same behavior in *grep* buffers.

Thanks for the report.

Xref buffers have been doing this since bug#19466, as requested by 
Martin (see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19466#56).

Perhaps Martin or others will chime in, but otherwise you seem to be 
making a good case for not doing this anymore.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45581; Package emacs. (Sat, 02 Jan 2021 08:26:01 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Dmitry Gutov <dgutov <at> yandex.ru>, Daniel Martín
 <mardani29 <at> yahoo.es>, 45581 <at> debbugs.gnu.org
Subject: Re: bug#45581: 28.0.50; C-M-v in xref buffers shows a different
 buffer when scrolling
Date: Sat, 2 Jan 2021 09:25:38 +0100
> Xref buffers have been doing this since bug#19466, as requested by
> Martin (see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19466#56).
>
> Perhaps Martin or others will chime in, but otherwise you seem to be
> making a good case for not doing this anymore.

Probably.  'cvs-temp-buffer' has a similar note:

      ;; FIXME: this doesn't do the right thing if the user later on
      ;; does a `find-file-other-window' and `scroll-other-window'
      (setq-local other-window-scroll-buffer buf))

I don't use C-M-v so I can't tell whether 'other-window-scroll-buffer'
was ever useful in the first place for *xref*.

martin




Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Sat, 02 Jan 2021 18:59:01 GMT) Full text and rfc822 format available.

Notification sent to Daniel Martín <mardani29 <at> yahoo.es>:
bug acknowledged by developer. (Sat, 02 Jan 2021 18:59:01 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: martin rudalics <rudalics <at> gmx.at>, Daniel Martín
 <mardani29 <at> yahoo.es>, 45581-done <at> debbugs.gnu.org
Subject: Re: bug#45581: 28.0.50; C-M-v in xref buffers shows a different
 buffer when scrolling
Date: Sat, 2 Jan 2021 20:58:24 +0200
Version: 28.1

On 02.01.2021 10:25, martin rudalics wrote:
> Probably.  'cvs-temp-buffer' has a similar note:
> 
>        ;; FIXME: this doesn't do the right thing if the user later on
>        ;; does a `find-file-other-window' and `scroll-other-window'
>        (setq-local other-window-scroll-buffer buf))
> 
> I don't use C-M-v so I can't tell whether 'other-window-scroll-buffer'
> was ever useful in the first place for *xref*.

Great, so we can remove it (pushed as 6b10ce867f).

As a result, C-M-v doesn't always scroll the "target location" window 
anymore (at least, not when there are at least 3 windows on the frame).

I wonder if we can/should do something about it. Other standard commands 
don't seem to worry about that, though.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45581; Package emacs. (Sun, 03 Jan 2021 08:41:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Dmitry Gutov <dgutov <at> yandex.ru>, Daniel Martín
 <mardani29 <at> yahoo.es>, 45581-done <at> debbugs.gnu.org
Subject: Re: bug#45581: 28.0.50; C-M-v in xref buffers shows a different
 buffer when scrolling
Date: Sun, 3 Jan 2021 09:40:13 +0100
> As a result, C-M-v doesn't always scroll the "target location" window anymore (at least, not when there are at least 3 windows on the frame).
>
> I wonder if we can/should do something about it. Other standard commands don't seem to worry about that, though.

I doubt that anybody cares.  My suggestion back then was just bad.
'other-window-scroll-buffer' is an ill-advised concept which can fly
only if the buffer where it is set locally is small (so a user will not
wonder about what that buffer has been conceived for and, for example,
ask questions about its modes or keymaps) is displayed for a short time
only and the visibility of the buffer it refers to is absolutely crucial
for the current workflow.  Neither of these conditions is given in the
present context and I doubt that they are given in any of the other
occurrences of that variable.

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45581; Package emacs. (Mon, 04 Jan 2021 00:23:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: martin rudalics <rudalics <at> gmx.at>, Daniel Martín
 <mardani29 <at> yahoo.es>, 45581-done <at> debbugs.gnu.org
Subject: Re: bug#45581: 28.0.50; C-M-v in xref buffers shows a different
 buffer when scrolling
Date: Mon, 4 Jan 2021 02:22:19 +0200
On 03.01.2021 10:40, martin rudalics wrote:
> I doubt that anybody cares.  My suggestion back then was just bad.
> 'other-window-scroll-buffer' is an ill-advised concept which can fly
> only if the buffer where it is set locally is small (so a user will not
> wonder about what that buffer has been conceived for and, for example,
> ask questions about its modes or keymaps) is displayed for a short time
> only and the visibility of the buffer it refers to is absolutely crucial
> for the current workflow.  Neither of these conditions is given in the
> present context and I doubt that they are given in any of the other
> occurrences of that variable.

Thanks. So we'll keep it the way it is now.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 01 Feb 2021 12:24:09 GMT) Full text and rfc822 format available.

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

Previous Next


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