unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28248: 26.0.50; display-line-numbers does not affect window-width / window-text-width
@ 2017-08-27  5:40 Steve Purcell
  2017-08-27  9:15 ` Stephen Berman
  2017-08-27 14:32 ` Eli Zaretskii
  0 siblings, 2 replies; 17+ messages in thread
From: Steve Purcell @ 2017-08-27  5:40 UTC (permalink / raw)
  To: 28248



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))





^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-10-20  9:44 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).