From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs 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 Message-ID: <878ti5mkwr.fsf@rosalinde> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503825375 29837 195.159.176.226 (27 Aug 2017 09:16:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2017 09:16:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 28248@debbugs.gnu.org To: Steve Purcell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 27 11:16:10 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 1dltfo-0007Bg-3K for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 11:16:04 +0200 Original-Received: from localhost ([::1]:60115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dltfu-0006Hy-Vz for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 05:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dltfp-0006Hr-86 for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 05:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dltfm-0003h4-1f for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 05:16:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dltfl-0003h0-UU for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 05:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dltfl-0006c7-Hv for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 05:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2017 09:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28248 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28248-submit@debbugs.gnu.org id=B28248.150382533225386 (code B ref 28248); Sun, 27 Aug 2017 09:16:01 +0000 Original-Received: (at 28248) by debbugs.gnu.org; 27 Aug 2017 09:15:32 +0000 Original-Received: from localhost ([127.0.0.1]:57023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dltfH-0006bO-Rf for submit@debbugs.gnu.org; Sun, 27 Aug 2017 05:15:32 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:62952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dltfF-0006bA-VU for 28248@debbugs.gnu.org; Sun, 27 Aug 2017 05:15:30 -0400 Original-Received: from rosalinde ([83.135.14.70]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LpL4H-1dILbc2oWT-00fBMb; Sun, 27 Aug 2017 11:15:17 +0200 In-Reply-To: (Steve Purcell's message of "Sun, 27 Aug 2017 17:40:04 +1200") X-Provags-ID: V03:K0:rOD30t09AtKfm21/bEpe2FdkZIr4cVqEqziLxjw/+rFZ7SzTrtj POj3xA85k4rvohEOX0RuIw+8/CQU3QkDcx3QyEr0yUrkbBlW1E7WJZcuANxR4I4Ncu0vVAv pKjO8c8y8xR1OdgmMxLYi4kTkUToBwQYdcwIXV2NErIscHC1biBItRhY/RGChPtrWhtoA3+ ij6EGT3S29uMiY1JurMCQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:ejoiPLeLJlM=:/FIAnDeScna44c54JpzLwq sbXGLFLeu9fKuZE2d2Z3hS6dfZ9HYIktW8x2oMSWolx2GayG07sdgwwOORhp8gCnT6xIibFSn B6lJGLniEzvdBt61uWDfTim8MfEPMjTCoDYm8N8jWQy9g18p1gbVUHwqQri2KoYzWEcpH9qG0 hKu7Zitniu8R1HrwmaPpcOf8GuB7ibKjeVmxttVkMU/kf8nTFEPLok+g2LjZRh7+z+RdowQ0L ZZR89HpkBTG5Duu585u/3ncSRw/BV07WuPLgSnjFWa9DnlMGcaoBWzuU1KHWqXbeD28885P7d uACMqvu1Cn5+ElutypGlDUd6I8fMWN8F0EjR8dhbaCFRTwxgAlCMRhHD+AfajmFoMIJTJkhNi py0vGeqV5RDcRWP3t4DZLV9ctuQfV5wq6JcB++vQ5evu3yeJYQbjHB4U2vwdZfqSw0xjtxOnO 2Tdz432mbtzl2MV+ZZXiBgkJsKglQxULooEG9rsWLU3/b48kPyEqapeLI5x1Nf0MiQxA4bJlk AE9IQ0rYD/Fau1P7OTsVQYVL1yHvIHvJKrt7rK/orpFScRSBjXf9O5fK45Gv2En9p/pfi+4Rr zmGZ/0qVh4La37W9f2iIZF5sngAZ1n0Nl3fXRXKi/oE4/vfv81MkEBnO7ecrM0zKnnuQ4ha5J C1uwW48FOQiKXnWdzfOx7AuQiM2WBSfg73I8Lq+zA2JXvQNjDXq6GHMM5lu4ZQj7uj49weUcF 9Nwct6tSshheX2R1+iSkBWsKgHVJMDnnAuq64NDReI00V3kE5sHNvC8ayMdM/zjMMZTM2THh 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:136250 Archived-At: On Sun, 27 Aug 2017 17:40:04 +1200 Steve Purcell 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