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 20:55:20 +0300 Message-ID: <83fuage3xz.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 1508349437 19583 195.159.176.226 (18 Oct 2017 17:57:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Oct 2017 17:57:17 +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 19:57:12 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 1e4saW-0003nu-QP for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Oct 2017 19:57:04 +0200 Original-Received: from localhost ([::1]:45859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4sae-00033X-4b for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Oct 2017 13:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4saX-00033P-Tb for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4saU-000625-Pk for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39887) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4saU-000621-Lu for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4saU-0001bR-Ee for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 13:57: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 17:57: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.15083493656082 (code B ref 28855); Wed, 18 Oct 2017 17:57:02 +0000 Original-Received: (at 28855) by debbugs.gnu.org; 18 Oct 2017 17:56:05 +0000 Original-Received: from localhost ([127.0.0.1]:48568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4sZY-0001a1-67 for submit@debbugs.gnu.org; Wed, 18 Oct 2017 13:56:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4sZW-0001ZZ-2n for 28855@debbugs.gnu.org; Wed, 18 Oct 2017 13:56:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4sZP-00057V-NP for 28855@debbugs.gnu.org; Wed, 18 Oct 2017 13:55:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4sZH-0004zS-1o; Wed, 18 Oct 2017 13:55:47 -0400 Original-Received: from [176.228.60.248] (port=3990 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e4sZF-0005u3-6f; Wed, 18 Oct 2017 13:55:46 -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:138681 Archived-At: > Date: Wed, 18 Oct 2017 19:44:50 +0200 > From: martin rudalics > CC: 28855@debbugs.gnu.org, Stefan Monnier , > John Wiegley > > > 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.