GNU bug report logs - #28855
26.0.90; display-line-numbers-mode does not respect (line|wrap)-prefix '(space :align-to N) text property

Previous Next

Package: emacs;

Reported by: Paul Rankin <hello <at> paulwrankin.com>

Date: Mon, 16 Oct 2017 03:39:01 UTC

Severity: normal

Found in version 26.0.90

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#28855: closed (26.0.90; display-line-numbers-mode does not
 respect (line|wrap)-prefix '(space :align-to N) text property)
Date: Fri, 20 Oct 2017 09:41:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 20 Oct 2017 12:40:22 +0300
with message-id <83r2tycg3d.fsf <at> gnu.org>
and subject line Re: bug#28855: 26.0.90; display-line-numbers-mode does not respect (line|wrap)-prefix '(space :align-to N) text property
has caused the debbugs.gnu.org bug report #28855,
regarding 26.0.90; display-line-numbers-mode does not respect (line|wrap)-prefix '(space :align-to N) text property
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
28855: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28855
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Rankin <hello <at> paulwrankin.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.90; display-line-numbers-mode does not respect (line|wrap)-prefix
 '(space :align-to N) text property
Date: Mon, 16 Oct 2017 13:38:11 +1000
display-line-numbers-mode does not respect line-prefix or wrap-prefix text properties when set as '(space :align-to N).

To reproduce:

1. emacs -Q
3. type some text in *scratch* buffer
2. M-: (put-text-property (line-beginning-position) (line-end-position) 'line-prefix '(space :align-to 2))
3. M-x display-line-numbers-mode

Expected results:

Line numbers should be displayed before line-prefix (and/or wrap-prefix) space of 2 columns.

Actual results:

Line numbers eat the line-prefix and wrap-prefix space, effectively aligning the text back to 0.

Configuration:

GNU Emacs 26.0.90 (build 1, x86_64-apple-darwin17.0.0) of 2017-10-15
macOS 10.13 (17A405)

MacBook Pro (Retina, 15-inch, Mid 2015)
2.2 GHz Intel Core i7
16 GB 1600 MHz DDR3
Intel Iris Pro 1536 MB


[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: rudalics <at> gmx.at
Cc: 28855-done <at> debbugs.gnu.org
Subject: Re: bug#28855: 26.0.90;
 display-line-numbers-mode does not respect (line|wrap)-prefix '(space
 :align-to N) text property
Date: Fri, 20 Oct 2017 12:40:22 +0300
> Date: Wed, 18 Oct 2017 20:55:20 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 28855 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca, johnw <at> gnu.org,
> 	dgutov <at> yandex.ru
> 
> > Date: Wed, 18 Oct 2017 19:44:50 +0200
> > From: martin rudalics <rudalics <at> gmx.at>
> > CC: 28855 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>, 
> >  John Wiegley <johnw <at> gnu.org>
> > 
> >  > Martin, any comments or thoughts about this, before I go out and make
> >  > the code changes to implement this?
> > 
> > I'd make the change.
> 
> OK, will do.

Now done on the release branch.  I'm therefore marking the bug done.

Thanks to everyone who provided feedback and ideas in this
discussions.


This bug report was last modified 7 years and 218 days ago.

Previous Next


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