From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 21:05:09 +0300 Message-ID: <83d15ke3hm.fsf@gnu.org> References: <1508125091.3713406.1139815176.12F59A69@webmail.messagingengine.com> <83po9nf58h.fsf@gnu.org> <3fdce54f-f704-66df-75db-843dbd98ec50@yandex.ru> <83h8uwe730.fsf@gnu.org> <59E79312.5050201@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1508349976 5203 195.159.176.226 (18 Oct 2017 18:06:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Oct 2017 18:06:16 +0000 (UTC) Cc: 28855@debbugs.gnu.org, monnier@iro.umontreal.ca, johnw@gnu.org, dgutov@yandex.ru To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 18 20:06:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4sjD-0007xP-9R for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Oct 2017 20:06:03 +0200 Original-Received: from localhost ([::1]:45889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4sjI-0004me-Tn for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Oct 2017 14:06:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4sjD-0004mZ-FD for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 14:06:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4sjC-0004Jh-Iu for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 14:06:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4sjC-0004Ja-Ff for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 14:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4sjC-0001sc-4v for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 14:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Oct 2017 18:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28855 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28855-submit@debbugs.gnu.org id=B28855.15083499427193 (code B ref 28855); Wed, 18 Oct 2017 18:06:02 +0000 Original-Received: (at 28855) by debbugs.gnu.org; 18 Oct 2017 18:05:42 +0000 Original-Received: from localhost ([127.0.0.1]:48587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4sis-0001rx-0O for submit@debbugs.gnu.org; Wed, 18 Oct 2017 14:05:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4siq-0001rh-P2 for 28855@debbugs.gnu.org; Wed, 18 Oct 2017 14:05:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4sik-0003qu-KB for 28855@debbugs.gnu.org; Wed, 18 Oct 2017 14:05:35 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4sib-0003kX-M0; Wed, 18 Oct 2017 14:05:25 -0400 Original-Received: from [176.228.60.248] (port=3996 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e4sia-0002zq-Tu; Wed, 18 Oct 2017 14:05:25 -0400 In-reply-to: <59E79312.5050201@gmx.at> (message from martin rudalics on Wed, 18 Oct 2017 19:44:50 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138684 Archived-At: > Date: Wed, 18 Oct 2017 19:44:50 +0200 > From: martin rudalics > CC: 28855@debbugs.gnu.org, Stefan Monnier , > John Wiegley > > 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. Actually, it's the other way around: the current behavior is that :align-to always starts counting from the window edge, even if line numbers are displayed, so the effect of ":align-to N" is as if N has been reduced by the screen space used for displaying the numbers. The changes I'm about to install make :align-to work as you described above, i.e. start measuring the offset from where the line-number display ends. After the change, if someone wants to always measure the offset from the window edge, they could/should use :align-to (+ left-fringe left-fringe N) Here the first occurrence of left-fringe stands for the position of the left edge of the left fringe, and the second occurrence stands for the width of the left fringe (these rules were always in effect, see the ELisp manual, under "Pixel Specification").