all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Steve Purcell <steve@sanityinc.com>
Cc: 28248@debbugs.gnu.org
Subject: bug#28248: 26.0.50; display-line-numbers does not affect window-width / window-text-width
Date: Sun, 27 Aug 2017 11:15:16 +0200	[thread overview]
Message-ID: <878ti5mkwr.fsf@rosalinde> (raw)
In-Reply-To: <m2efrxd0wb.fsf@sanityinc.com> (Steve Purcell's message of "Sun,  27 Aug 2017 17:40:04 +1200")

On Sun, 27 Aug 2017 17:40:04 +1200 Steve Purcell <steve@sanityinc.com> wrote:

> When display-line-numbers mode is enabled, this has no effect on the
> return value of window-width or window-text-width, and there is also no
> variable which contains the current width of the line numbers. This all
> means there is no way to determine the width of the text area of the
> window.
>
> This concretely matters to me because my package "page-break-lines"
> remaps the display table of ^L to a horizontal line the width of the
> window: this technique is based on prior art.

The display of the line separating todo and done items in Todo mode
(part of Emacs) is also affected by this.  (However, with the default
setup of Todo mode displaying line numbers is unnecessary and even
distracting, since Todo mode already numbers the items by default.)

> I note that turning off fringes *does* correctly adjust
> window-text-width, so it seems that display-line-numbers-mode should do
> the same.

I never tried that before with Todo mode but did just now and see that
it doesn't quite work here: the left side is fine but on the right there
is a continuation character in the last column, so the separator line
breaks on the last character (this is with overflow-newline-into-fringe
set to t, the default).

Steve Berman





  reply	other threads:[~2017-08-27  9:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-27  5:40 bug#28248: 26.0.50; display-line-numbers does not affect window-width / window-text-width Steve Purcell
2017-08-27  9:15 ` Stephen Berman [this message]
2017-08-27 14:37   ` Eli Zaretskii
2017-08-27 14:32 ` Eli Zaretskii
2017-10-16 21:56   ` Dmitry Gutov
2017-10-17  2:34     ` Eli Zaretskii
2017-10-17  6:19       ` Steve Purcell
2017-10-17  7:01         ` Eli Zaretskii
2017-10-17  7:31           ` Steve Purcell
2017-10-17  8:15             ` Eli Zaretskii
2017-10-17  8:23       ` Dmitry Gutov
2017-10-17 16:33         ` Eli Zaretskii
2017-10-18  0:33           ` Dmitry Gutov
2017-10-18 16:35             ` Eli Zaretskii
2017-10-18 22:40               ` Dmitry Gutov
2017-10-19  3:15                 ` Eli Zaretskii
2017-10-20  9:44                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878ti5mkwr.fsf@rosalinde \
    --to=stephen.berman@gmx.net \
    --cc=28248@debbugs.gnu.org \
    --cc=steve@sanityinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.