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 23:54:54 -0600 Message-ID: <87tvyvk7gx.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> <87a80ot3ec.fsf@gmail.com> <838tg7es1q.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1508392585 11874 195.159.176.226 (19 Oct 2017 05:56:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2017 05:56:25 +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 07:56:16 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 1e53oO-0001Ol-JK for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Oct 2017 07:56:08 +0200 Original-Received: from localhost ([::1]:47620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e53oW-0000iB-27 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Oct 2017 01:56:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e53oM-0000gA-Rl for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 01:56:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e53oI-0007j8-Tf for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 01:56:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40339) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e53oI-0007ip-Oy for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 01:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e53oI-0006ZN-D4 for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2017 01:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Oct 2017 05:56: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.150839250825167 (code B ref 28855); Thu, 19 Oct 2017 05:56:02 +0000 Original-Received: (at 28855) by debbugs.gnu.org; 19 Oct 2017 05:55:08 +0000 Original-Received: from localhost ([127.0.0.1]:49020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e53nQ-0006Xr-FB for submit@debbugs.gnu.org; Thu, 19 Oct 2017 01:55:08 -0400 Original-Received: from mail-io0-f172.google.com ([209.85.223.172]:55550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e53nO-0006XH-Ev for 28855@debbugs.gnu.org; Thu, 19 Oct 2017 01:55:07 -0400 Original-Received: by mail-io0-f172.google.com with SMTP id p186so8672374ioe.12 for <28855@debbugs.gnu.org>; Wed, 18 Oct 2017 22:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=j3qMNqYQqhVW2xN5Lp12IK7LWTG/phN50X4BLdfJIRw=; b=SK7lxjot1XsuuzPbBfCgLG2lJv3Db+W9BGk0Kl/MhLfDhSq+b9fzzRiF7ai1j76Ew9 U6CX73es83la48mBJSTpMj/uAIEqBchuxWQkGHO69Dsf5B0FnW5FGjc5xwF9AYeWdQAV C99EBX98/RdGHFRKYjZk9jEYBTAIT8fH/M7L64xQDax5XKdnwf7bvT/5L1VQXQcs1LEE YyDeuVbdekAHRaw5/vTpJeWC8eAVpicGGnuNwiOOIKy4oPFK4E5YEkJv2JKIoQAj/sgu w8mlpInsYe5dA0JNO8En7QFtdVcqMnHBKMJUR7S043lMwIWDVfvlGBYRSBCfEkhwObLb 6q9Q== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=j3qMNqYQqhVW2xN5Lp12IK7LWTG/phN50X4BLdfJIRw=; b=frHXUWl6m5wjLtQCbtN4sjlVY07krI6DnOc3RCc49bCRkt7Z3nZZP4Pyt/fHZz6KRF WA2Iu/89gFlaDAMRo9D+j1lf97vIYLl3QYvSNxderEzepcINweZgO6Xr2n4/pF4IWIYN vO7Sgv/SSM1eIFbAW0GncNdAGKyhMDm8l8KYBAvg6bE9rMwZG5tEQpeXjNK+dbupxKZ3 IQZnDzpGWTW6sGJfSwlk6eZQA1yVg2fbXGuhZE5wNy/fwCdM7gnlLSJSRA7ESGXedGuc JhLxVVtev1x86aTvmcAwpvYIR1wPpEbp+G+QuuBvzRK+q8hLKYfAy8BU1RB9GWRH48c2 M9Uw== X-Gm-Message-State: AMCzsaXca3Lu26EWxg5Firj1KglQpaLm06iXQkr4+40EzRUNz5GzjQKv ah5Zn4nt3UCZIezCrW9PfWg= X-Google-Smtp-Source: ABhQp+RQTr1lCQwniPYQgoJHVr1HcChpiml6IJnUmGM2ZLtmO+hLyNErbVl+jZuPIfMxrn+KZms1Og== X-Received: by 10.107.85.8 with SMTP id j8mr527540iob.54.1508392500658; Wed, 18 Oct 2017 22:55:00 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id w63sm6733856iof.7.2017.10.18.22.54.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Oct 2017 22:54:59 -0700 (PDT) In-Reply-To: <838tg7es1q.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 19 Oct 2017 06:26:57 +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:138707 Archived-At: Eli Zaretskii writes: > Yes (although it turned out during a previous discussion that "text > area" is not understood the same by all the parties ;-) Yeah, my bad (though now I'm using the definition from (elisp) Window Sizes :-). >> What about starting the measurement from after the line-prefix attribute >> as well? > > I don't plan doing that, certainly not for Emacs 26. The line-prefix > and wrap-prefix are very old features, and no one asked for :align-to > to know about them till now, so presumably it isn't very important. > (It also sounds like :align-to itself is rarely used and sometimes is > entirely unfamiliar-with. I certainly don't see some of its features > used in Emacs at all, which makes me wonder why did we implement them > in Emacs 21.) It doesn't seem that line/wrap-prefix are very commonly used (though perhaps I'm just not using the relevant packages), so coupled with :align-to's rarity it doesn't seem surprising that no one has asked for it until now. Anyway, my argument is still that I believe a default starting point past the *-prefix area is more intuitive than before it. I figured that since you brought up changing the default starting point, that I might as well run it by you again. Just accounting for line-numbers is better than the current behaviour, but if you do decide to do that, then it would be nice to have something along the lines of: :align-to (+ prefix prefix N) That would mean "offset from the *-prefix area", which would let you align to non-prefix text in the buffer. >> 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. > > My assumption is that no one will need to worry about that because > everybody will want the automatic accounting for the line numbers I'm > about to implement. The above is just a fire escape I don't envision > to be needed, certainly not frequently. I think it's unlikely that one would want to account for line-numbers and not line/wrap-prefix, but I figure that it would be nice to provide a flexible fire escape. Still, if alignment treats line-numbers specially, then I think it makes sense to provide it as a full-fledged element for pixel specifications.