GNU bug report logs - #43755
27.1; Electric-buffer-list does not work with global-display-line-numbers-mode

Previous Next

Package: emacs;

Reported by: superdorodor3 <superdorodoro3 <at> gmail.com>

Date: Fri, 2 Oct 2020 05:47:01 UTC

Severity: normal

Tags: fixed

Found in version 27.1

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 43755 in the body.
You can then email your comments to 43755 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#43755; Package emacs. (Fri, 02 Oct 2020 05:47:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to superdorodor3 <superdorodoro3 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 02 Oct 2020 05:47:02 GMT) Full text and rfc822 format available.

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

From: superdorodor3 <superdorodoro3 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; Electric-buffer-list does not work with
 global-display-line-numbers-mode
Date: Fri, 2 Oct 2020 11:32:38 +0900
Hello, developpers,

Followings will reproduce the bug in 27.1 or 28.0.50.

emacs -Q
M-x global-display-line-numbers-mode
M-x electric-buffer-list

Then, buffer list is displayed, but does not switch when a buffer is selected.
It correctly worked in 26.3.

Best Regards,
Masa

In GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
 of 2020-08-12 built on builder10-14.porkrind.org
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.7

Configured using:
 'configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES
THREADS JSON PDUMPER

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LC_CTYPE: UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config
gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq
byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu
cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads kqueue cocoa ns multi-tty make-network-process emacs)

Memory information:
((conses 16 46152 6880)
 (symbols 48 6025 1)
 (strings 32 15505 1204)
 (string-bytes 1 517463)
 (vectors 16 10296)
 (vector-slots 8 128133 11324)
 (floats 8 19 34)
 (intervals 56 204 0)
 (buffers 1000 14))



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43755; Package emacs. (Fri, 02 Oct 2020 06:08:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: superdorodor3 <superdorodoro3 <at> gmail.com>
Cc: 43755 <at> debbugs.gnu.org
Subject: Re: bug#43755: 27.1; Electric-buffer-list does not work with
 global-display-line-numbers-mode
Date: Fri, 02 Oct 2020 08:06:45 +0200
superdorodor3 <superdorodoro3 <at> gmail.com> writes:

> Followings will reproduce the bug in 27.1 or 28.0.50.
>
> emacs -Q
> M-x global-display-line-numbers-mode
> M-x electric-buffer-list
>
> Then, buffer list is displayed, but does not switch when a buffer is selected.
> It correctly worked in 26.3.

I can reproduce this in Emacs 28, and I've now pushed a fix.  I'm not
quite sure why global-display-line-numbers-mode makes this misbehave,
but electric-buffer-list is a somewhat eccentric command...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 02 Oct 2020 06:09:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 43755 <at> debbugs.gnu.org and superdorodor3 <superdorodoro3 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 02 Oct 2020 06:09:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43755; Package emacs. (Fri, 02 Oct 2020 12:24:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: superdorodor3 <superdorodoro3 <at> gmail.com>
Cc: 43755 <at> debbugs.gnu.org
Subject: Re: bug#43755: 27.1; Electric-buffer-list does not work with
 global-display-line-numbers-mode
Date: Fri, 02 Oct 2020 15:23:46 +0300
> From: superdorodor3 <superdorodoro3 <at> gmail.com>
> Date: Fri, 2 Oct 2020 11:32:38 +0900
> 
> Followings will reproduce the bug in 27.1 or 28.0.50.
> 
> emacs -Q
> M-x global-display-line-numbers-mode
> M-x electric-buffer-list
> 
> Then, buffer list is displayed, but does not switch when a buffer is selected.
> It correctly worked in 26.3.

What do you mean by "does not switch"?  Could you please describe the
recipe in more detail: which keys you type, what is expected to
happen, and what does actually happen?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43755; Package emacs. (Fri, 02 Oct 2020 13:04:01 GMT) Full text and rfc822 format available.

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

From: superdorodor3 <superdorodoro3 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 43755 <at> debbugs.gnu.org
Subject: Re: bug#43755: 27.1; Electric-buffer-list does not work with
 global-display-line-numbers-mode
Date: Fri, 2 Oct 2020 22:03:45 +0900
emacs -Q
M-x global-display-line-numbers-mode
M-x electric-buffer-list        (*scratch* buffer is focused)
n                                        (then, *Messages* buffer is focused)
RET

Expected behavior: Window switches to *Messages* buffer.
Actually what happens:  Window keeps displaying *scratch* buffer.

Best Regards,
Masa

> On Oct 2, 2020, at 21:23, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>> From: superdorodor3 <superdorodoro3 <at> gmail.com>
>> Date: Fri, 2 Oct 2020 11:32:38 +0900
>> 
>> Followings will reproduce the bug in 27.1 or 28.0.50.
>> 
>> emacs -Q
>> M-x global-display-line-numbers-mode
>> M-x electric-buffer-list
>> 
>> Then, buffer list is displayed, but does not switch when a buffer is selected.
>> It correctly worked in 26.3.
> 
> What do you mean by "does not switch"?  Could you please describe the
> recipe in more detail: which keys you type, what is expected to
> happen, and what does actually happen?
> 
> Thanks.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43755; Package emacs. (Fri, 02 Oct 2020 13:10:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: superdorodor3 <superdorodoro3 <at> gmail.com>
Cc: 43755 <at> debbugs.gnu.org
Subject: Re: bug#43755: 27.1; Electric-buffer-list does not work with
 global-display-line-numbers-mode
Date: Fri, 02 Oct 2020 16:08:51 +0300
> From: superdorodor3 <superdorodoro3 <at> gmail.com>
> Date: Fri, 2 Oct 2020 22:03:45 +0900
> Cc: 43755 <at> debbugs.gnu.org
> 
> emacs -Q
> M-x global-display-line-numbers-mode
> M-x electric-buffer-list        (*scratch* buffer is focused)
> n                                        (then, *Messages* buffer is focused)
> RET
> 
> Expected behavior: Window switches to *Messages* buffer.
> Actually what happens:  Window keeps displaying *scratch* buffer.

Thanks.

This is already fixed on the master branch.  Hmm... what change fixed
that, I wonder?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43755; Package emacs. (Fri, 02 Oct 2020 13:16:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 43755 <at> debbugs.gnu.org, superdorodor3 <superdorodoro3 <at> gmail.com>
Subject: Re: bug#43755: 27.1; Electric-buffer-list does not work with
 global-display-line-numbers-mode
Date: Fri, 02 Oct 2020 15:15:02 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> This is already fixed on the master branch.  Hmm... what change fixed
> that, I wonder?

d037a6a2e6f92d793b1d5403dea4c7d3ca70883c

It fixes the symptom, but it would perhaps be interesting to see what it
is with display-line-numbers-mode that made this command behave oddly.
On the other hand, I thought the command itself was implemented so
peculiarly that it may not be worth poking into.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43755; Package emacs. (Fri, 02 Oct 2020 13:27:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 43755 <at> debbugs.gnu.org, superdorodoro3 <at> gmail.com
Subject: Re: bug#43755: 27.1; Electric-buffer-list does not work with
 global-display-line-numbers-mode
Date: Fri, 02 Oct 2020 16:26:05 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: superdorodor3 <superdorodoro3 <at> gmail.com>,  43755 <at> debbugs.gnu.org
> Date: Fri, 02 Oct 2020 15:15:02 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > This is already fixed on the master branch.  Hmm... what change fixed
> > that, I wonder?
> 
> d037a6a2e6f92d793b1d5403dea4c7d3ca70883c

Ah, thanks.  I think we should cherry-pick this to emacs-27.

> It fixes the symptom, but it would perhaps be interesting to see what it
> is with display-line-numbers-mode that made this command behave oddly.
> On the other hand, I thought the command itself was implemented so
> peculiarly that it may not be worth poking into.

I tend to agree.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43755; Package emacs. (Fri, 02 Oct 2020 14:25:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 43755 <at> debbugs.gnu.org, superdorodoro3 <at> gmail.com
Subject: Re: bug#43755: 27.1; Electric-buffer-list does not work with
 global-display-line-numbers-mode
Date: Fri, 02 Oct 2020 16:23:54 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Ah, thanks.  I think we should cherry-pick this to emacs-27.

Yup; now done.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

This bug report was last modified 4 years and 228 days ago.

Previous Next


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