From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex 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 17:58:03 -0600 Message-ID: <87a80ot3ec.fsf@gmail.com> 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> <83d15ke3hm.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1508371166 21508 195.159.176.226 (18 Oct 2017 23:59:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Oct 2017 23:59:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: 28855@debbugs.gnu.org, monnier@iro.umontreal.ca, johnw@gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 19 01:59:19 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 1e4yEz-0003EO-Hx for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Oct 2017 01:59:13 +0200 Original-Received: from localhost ([::1]:46941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4yF2-0006VU-DX for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Oct 2017 19:59:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4yEt-0006VM-Ib for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 19:59:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4yEo-0002lB-V3 for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 19:59:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40208) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4yEo-0002ku-RL for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 19:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4yEo-000079-BQ for bug-gnu-emacs@gnu.org; Wed, 18 Oct 2017 19:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Oct 2017 23:59: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.1508371102389 (code B ref 28855); Wed, 18 Oct 2017 23:59:02 +0000 Original-Received: (at 28855) by debbugs.gnu.org; 18 Oct 2017 23:58:22 +0000 Original-Received: from localhost ([127.0.0.1]:48889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4yEA-00006D-Ir for submit@debbugs.gnu.org; Wed, 18 Oct 2017 19:58:22 -0400 Original-Received: from mail-it0-f42.google.com ([209.85.214.42]:51779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4yE9-000060-JT for 28855@debbugs.gnu.org; Wed, 18 Oct 2017 19:58:22 -0400 Original-Received: by mail-it0-f42.google.com with SMTP id o135so7943619itb.0 for <28855@debbugs.gnu.org>; Wed, 18 Oct 2017 16:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=VDrr8EXFgZ1YQXRn0YNpKc/GClXA1b/2cx05LBZ1/+w=; b=RK2u6wjNs22zUxiwfNaByQsMaWRE1xrwENPmr/mtZ1mpHEoWrnzuc4E9EVR4cUgT9C IBVtK4Gb4vNur8X4sQAneWeO6exXzD2dR0cR4QMtqAzCUEf1ocejB62h3ZCJLScHDDm0 KCPEIQ0nFNQ6MdZtX5XJF+2b8qnugPVkVJxIf285Z7BnNUxD2vS+p3OdxMTvqIjP5oTv eRZNDGq9/STG9g+FlVMCawHYY54XZ116hBJ1adLYhKbhxPAt3a+FruXcHLeaPHmbQaU+ yTr53vEvPJktY1H1iOfoZYMw4pmgfi1WDl8tZt4Kyo4iuaEekexzne+ztCksCHuIHz5u h/IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=VDrr8EXFgZ1YQXRn0YNpKc/GClXA1b/2cx05LBZ1/+w=; b=LnzNjOoBs6RvYgbbszAk44Sl9l67+e/7kgnmCFiCieNN3Jkoai7bc3WBCMDjP2RfGG DkYVGMqz8gcCm/ziqHM4j/Hx3Bjj1TDA4y5C/aZea7wTlJNskQFdL+SwkylgSEL/MJD2 rImxzF0jYQFoBKJFFJvUm6z0T8IHv5Xm8u7ExmlAGHhHZ/pk6l3W12RCe/6XUP+iIMfA YRxHn46fqQLeMkhsf4F3MQkOSPA2x5Re8f24z/VVw62OcZbM5FajoEusXPLr21L9/Wfs j3uziSbcgyoJTZb9PtrhZzDc2A6WuKF5CWQrsI723lf88yf4TC9bUt3upxrdUtVNuOIo zkSg== X-Gm-Message-State: AMCzsaWfNazNLfcpvaC/3V8Jo/k6xHqxGGn/s7gaEBGfAhA03WlBUxWq jYAxN2Zgr7u/qEZ3Q0Xj854= X-Google-Smtp-Source: ABhQp+TnNw26nvs3m5vmrr5KbTjSt6WltY4FCqOewf5mQkNM80zMfO3KdO0QoJC2in+uVAi6v/qBCA== X-Received: by 10.36.46.131 with SMTP id i125mr129696ita.99.1508371095963; Wed, 18 Oct 2017 16:58:15 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id g6sm6415451ioc.11.2017.10.18.16.58.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Oct 2017 16:58:14 -0700 (PDT) In-Reply-To: <83d15ke3hm.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 18 Oct 2017 21:05:09 +0300") 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:138700 Archived-At: Eli Zaretskii writes: >> Date: Wed, 18 Oct 2017 19:44:50 +0200 >> From: martin rudalics >> CC: 28855@debbugs.gnu.org, Stefan Monnier ,=20 >> John Wiegley >>=20 >> If someone wants the current behavior, we could add >> a "special element" like 'line-number-display-start' such that >>=20 >> :align-to 0 >>=20 >> would behave like >>=20 >> :align-to (+ line-number-display-start (line-number-display-width t)) >>=20 >> 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. By "window edge" do you mean the edge of the text area? Since AFAICT there's no current way to specify alignment relative to the window edges. This is what the 2nd part of Bug#28771 is about. > 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. What about starting the measurement from after the line-prefix attribute as well? Then there can be a new element for pixel specs that one can use to display relative to line numbers, if one so wishes. > 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) > > Unless =E2=80=98fringes-outside-margins=E2=80=99 is non-nil and there's= a left margin. > For that, there's left-margin that can play the same role. If there's a distinct element for line-numbers, then you don't have to worry about what elements are on the left, or what order they're in.