From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Steve Purcell 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 17:40:04 +1200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503812487 26082 195.159.176.226 (27 Aug 2017 05:41:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2017 05:41:27 +0000 (UTC) To: 28248@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 27 07:41:17 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 1dlqJm-0005iE-4p for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 07:41:06 +0200 Original-Received: from localhost ([::1]:59667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlqJt-0000Vw-36 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 01:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlqJm-0000Vq-MI for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 01:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlqJj-0001Yy-0g for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 01:41:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48297) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlqJi-0001Yo-SQ for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 01:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dlqJi-0001cl-JQ for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 01:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Steve Purcell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2017 05:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28248 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15038124336201 (code B ref -1); Sun, 27 Aug 2017 05:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2017 05:40:33 +0000 Original-Received: from localhost ([127.0.0.1]:56977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlqJF-0001bx-3E for submit@debbugs.gnu.org; Sun, 27 Aug 2017 01:40:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlqJC-0001bi-Ew for submit@debbugs.gnu.org; Sun, 27 Aug 2017 01:40:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlqJ5-0001Kw-4w for submit@debbugs.gnu.org; Sun, 27 Aug 2017 01:40:25 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlqJ5-0001Ks-1h for submit@debbugs.gnu.org; Sun, 27 Aug 2017 01:40:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlqJ2-0000NS-Jh for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 01:40:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlqIz-0001Hz-DA for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 01:40:20 -0400 Original-Received: from purcellpeople.com ([85.214.32.38]:50212 helo=h1189701.stratoserver.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlqIz-0001Ga-3O for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 01:40:17 -0400 Original-Received: from Tulku.local (210-55-85-106.dialup.xtra.co.nz [210.55.85.106]) by h1189701.stratoserver.net (Postfix) with ESMTPSA id 7D0AA27AC0A5 for ; Sun, 27 Aug 2017 07:40:12 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:136245 Archived-At: 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. I note that turning off fringes *does* correctly adjust window-text-width, so it seems that display-line-numbers-mode should do the same. (PS. nice work on the functionality itself!) In GNU Emacs 26.0.50 (build 1, x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G29)) of 2017-08-26 built on Tulku.local Repository revision: fca62645b6dab55fb39dbef2a09d5044dcf8efc1 Windowing system distributor 'Apple', version 10.3.1504 Recent messages: Configured features: JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US locale-coding-system: utf-8 Major mode: ELisp Minor modes in effect: default-text-scale-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t recentf-mode: t ivy-historian-mode: t historian-mode: t company-quickhelp-mode: t company-quickhelp-local-mode: t winner-mode: t elisp-slime-nav-mode: t redshank-mode: t aggressive-indent-mode: t highlight-quoted-mode: t global-company-mode: t company-mode: t flycheck-color-mode-line-mode: t counsel-mode: t ivy-mode: t rainbow-delimiters-mode: t symbol-overlay-mode: t diff-hl-mode: t bug-reference-prog-mode: t paredit-mode: t goto-address-prog-mode: t origami-mode: t guide-key-mode: t projectile-mode: t immortal-scratch-mode: t nyan-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t auto-compile-mode: t ipretty-mode: t global-whitespace-cleanup-mode: t whitespace-cleanup-mode: t hes-mode: t whole-line-or-region-global-mode: t whole-line-or-region-local-mode: t global-page-break-lines-mode: t page-break-lines-mode: t delete-selection-mode: t cua-mode: t show-paren-mode: t global-undo-tree-mode: t undo-tree-mode: t global-auto-revert-mode: t auto-revert-mode: t savehist-mode: t desktop-save-mode: t global-flycheck-mode: t flycheck-mode: t diff-auto-refine-mode: t electric-pair-mode: t global-anzu-mode: t anzu-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t prettify-symbols-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-xact hides /usr/local/share/emacs/site-lisp/ledger/ledger-xact /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-texi hides /usr/local/share/emacs/site-lisp/ledger/ledger-texi /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-test hides /usr/local/share/emacs/site-lisp/ledger/ledger-test /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-state hides /usr/local/share/emacs/site-lisp/ledger/ledger-state /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-sort hides /usr/local/share/emacs/site-lisp/ledger/ledger-sort /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-schedule hides /usr/local/share/emacs/site-lisp/ledger/ledger-schedule /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-report hides /usr/local/share/emacs/site-lisp/ledger/ledger-report /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-regex hides /usr/local/share/emacs/site-lisp/ledger/ledger-regex /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-reconcile hides /usr/local/share/emacs/site-lisp/ledger/ledger-reconcile /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-post hides /usr/local/share/emacs/site-lisp/ledger/ledger-post /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-occur hides /usr/local/share/emacs/site-lisp/ledger/ledger-occur /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-navigate hides /usr/local/share/emacs/site-lisp/ledger/ledger-navigate /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-mode hides /usr/local/share/emacs/site-lisp/ledger/ledger-mode /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-init hides /usr/local/share/emacs/site-lisp/ledger/ledger-init /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-fonts hides /usr/local/share/emacs/site-lisp/ledger/ledger-fonts /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-fontify hides /usr/local/share/emacs/site-lisp/ledger/ledger-fontify /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-exec hides /usr/local/share/emacs/site-lisp/ledger/ledger-exec /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-context hides /usr/local/share/emacs/site-lisp/ledger/ledger-context /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-complete hides /usr/local/share/emacs/site-lisp/ledger/ledger-complete /Users/steve/.emacs.d/elpa-26.0/ledger-mode-20170714.1529/ledger-commodities hides /usr/local/share/emacs/site-lisp/ledger/ledger-commodities /Users/steve/.emacs.d/elpa-26.0/less-css-mode-20160930.2153/less-css-mode hides /usr/local/Cellar/emacs-plus/HEAD-fca6264_2/share/emacs/26.0.50/lisp/textmodes/less-css-mode Features: (shadow sort mail-extr emacsbug sendmail pulse two-column iso-transl org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view org-bibtex bibtex org-bbdb org-w3m org-capture org-element avl-tree generator ob-sqlite ob-shell ob-ruby ob-python ob-octave ob-ledger ob-latex ob-gnuplot ob-dot ob-ditaa ob-R org-clock org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs align intero docker-tramp tramp-cache tramp tramp-compat tramp-loaddefs trampver package-lint-test ert parse-time log-view browse-at-remote eieio-opt speedbar sb-image ezimage dframe misearch multi-isearch pcmpl-unix move-dup wgrep debug magit-bookmark magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-branch magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff magit-core magit-autorevert magit-process magit-margin magit-mode magit-git magit-section magit-popup git-commit magit-utils crm log-edit pcvs-util add-log with-editor async-bytecomp async shell pcomplete bookmark rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-enc xmltok sanityinc-tomorrow-bright-theme cl-print help-fns display-line-numbers smex colir cus-edit cus-start cus-load recentf tree-widget ivy-historian historian company-quickhelp pos-tip winner sh-script executable tabify view smerge-mode mmm-sample mmm-mode mmm-univ mmm-class tidy mhtml-mode flyspell ispell vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs diff-hl-dired package-build yaml-mode elisp-slime-nav redshank skeleton aggressive-indent highlight-quoted add-node-modules-path mmm-erb mmm-region mmm-utils cursor-sensor company-robe skewer-less rainbow-mode skewer-css skewer-mode cache-table js2-imenu-extras js2-mode simple-httpd css-eldoc css-eldoc-hash-table less-css-mode company-dabbrev-code company-dabbrev company-capf company pcase flycheck-color-mode-line disp-table rspec-mode cap-words superword subword robe counsel esh-util swiper ivy flx ivy-overlay ffap rainbow-delimiters symbol-overlay diff-hl vc-dir ewoc vc vc-dispatcher bug-reference paredit-everywhere paredit goto-addr origami origami-parsers haml-mode js markdown-mode noutline outline textile-mode css-mode tagedit sgml-mode color eww mm-url gnus nnheader wid-edit url-queue shr svg dom browse-url guide-key popwin projectile-rails rake f inflections inf-ruby ruby-mode smie projectile grep ibuffer-vc ibuf-ext ibuffer ibuffer-loaddefs immortal-scratch uptimes init init-locales init-local nyan-mode session sanityinc-tomorrow-eighties-theme color-theme-sanityinc-tomorrow server init-ledger init-dash init-folding init-misc init-common-lisp init-clojure-cider init-clojure init-slime init-lisp flycheck-package package-lint imenu finder jka-compr cl-lib-highlight auto-compile packed ipretty pp init-paredit init-docker init-yaml init-toml init-rust init-sql init-rails init-ruby-mode init-elm init-haskell init-python-mode init-haml init-css init-html init-nxml init-org init-php init-javascript ido etags xref project cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-darcs xml init-erlang erlang-start init-csv init-markdown init-textile init-compile init-projectile init-github init-git init-darcs init-vc init-fci init-whitespace whitespace-cleanup-mode whitespace init-editing-utils highlight-escape-sequences whole-line-or-region page-break-lines delsel cua-base paren warnings diminish undo-tree diff autorevert filenotify init-mmm mmm-auto mmm-vars mmm-compat init-fonts init-sessions savehist desktop frameset init-windows windmove init-company init-hippie-expand init-ivy init-smex init-recentf init-flycheck face-remap flycheck cl-extra find-func compile comint ansi-color ring vc-git diff-mode elec-pair autoload radix-tree lisp-mnt mm-archive message dired-sort help-mode easy-mmode dired+ image-dired image-mode image-file dired-x dired-aux dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils network-stream starttls url-http tls gnutls mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm subr-x puny url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap init-ibuffer ibuf-macs init-uniquify init-grep init-isearch anzu thingatpt init-dired init-gui-frames init-osx-keys init-themes init-xterm init-frame-hooks init-exec-path exec-path-from-shell init-elpa fullframe finder-inf gh-common gh-profile s marshal eieio-compat ht json map dash rx edmacro kmacro slime-autoloads info package easymenu epg-config url-handlers url-parse auth-source eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt bytecomp byte-compile cconv init-site-lisp cl-seq cl gv cl-loaddefs cl-lib init-utils init-benchmarking advice time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 2446021 562415) (symbols 48 70844 553) (miscs 40 21329 16611) (strings 32 336099 37699) (string-bytes 1 8869981) (vectors 16 137781) (vector-slots 8 2754255 184771) (floats 8 1171 8093) (intervals 56 165629 14869) (buffers 992 196))