GNU bug report logs - #31723
26.1; next-logical-line different behaviour when global-display-line-numbers-mode is on

Previous Next

Package: emacs;

Reported by: Maxim Kim <habamax <at> gmail.com>

Date: Tue, 5 Jun 2018 15:03:02 UTC

Severity: normal

Found in version 26.1

Fixed in version 26.2

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Maxim Kim <habamax <at> gmail.com>
Cc: 31723 <at> debbugs.gnu.org
Subject: bug#31723: 26.1; next-logical-line different behaviour when global-display-line-numbers-mode is on
Date: Wed, 06 Jun 2018 18:30:18 +0300
> From: Maxim Kim <habamax <at> gmail.com>
> Date: Tue, 5 Jun 2018 17:51:06 +0300
> 
> 1. open emacs with `runemacs.exe -Q`
> 
> 2. add some text to the scratch buffer:
> 
> ;; This buffer is for text that is not saved, and for Lisp evaluation.
> ;; To create a file, visit it with C-x C-f and enter text in its buffer.
> 
> Hello WORLD, this is barebone EMACS here.
> And next-logical-line function behaves strange when
> global-display-line-numbers-mode is activated.
> 
> 3. activate global-display-line-numbers-mode
> 
> 4. put your cursor on the blank line above ‘Hello WORLD...' row:
> 
> ;; To create a file, visit it with C-x C-f and enter text in its buffer.
> <<CURSOR ON COL 0>>
> Hello WORLD, this is barebone EMACS here.
> 
> 5. press C-n to go-to ‘Hello WORLD’ row, cursor is on ‘H' letter
> 
> 6. invoke ‘next-logical-line' interactive command with M-x
> next-logical-line, your cursor will be on the second word of the
> next row (marked as <<n>>):
> 
> Hello WORLD, this is barebone EMACS here.
> And <<n>>ext-logical-line function behaves strange when
> 
> Without global-display-line-numbers-mode cursor moves to the same column
> on the next row (of course if there are enough columns for that).

Thanks, I think I fixed this now on the emacs-26 branch, please test.




This bug report was last modified 6 years and 48 days ago.

Previous Next


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