bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28855: 26.0.90; display-line-numbers-mode does not respect (line|wra


From: Eli Zaretskii
Subject: bug#28855: 26.0.90; display-line-numbers-mode does not respect (line|wrap)-prefix '(space :align-to N) text property
Date: Wed, 18 Oct 2017 20:55:20 +0300

> Date: Wed, 18 Oct 2017 19:44:50 +0200
> From: martin rudalics <rudalics@gmx.at>
> CC: 28855@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>, 
>  John Wiegley <johnw@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.

> If someone wants the current behavior, we could add
> a "special element" like 'line-number-display-start' such that
> 
> :align-to 0
> 
> would behave like
> 
> :align-to (+ line-number-display-start (line-number-display-width t))
> 
> for LTR text.

I don't think this addition would be needed, since :align-to already
supports several elements which I intend to leave alone: left-fringe,
left-margin, and scroll-bar.  Offsets relative to these will not be
affected by line numbers, because I don't think that would make sense.
Only 'left', 'center' and bare numerical offsets will be affected, and
'text' will be affected to yield the width of the text area sans the
space taken by line numbers.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]