GNU bug report logs - #64851
30.0.50; mode-line right align and vertical scroll-bars

Previous Next

Package: emacs;

Reported by: German Pacenza <germanp82 <at> hotmail.com>

Date: Tue, 25 Jul 2023 11:12:02 UTC

Severity: normal

Tags: notabug

Found in version 30.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64851 in the body.
You can then email your comments to 64851 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#64851; Package emacs. (Tue, 25 Jul 2023 11:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to German Pacenza <germanp82 <at> hotmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 25 Jul 2023 11:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: German Pacenza <germanp82 <at> hotmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; mode-line right align and vertical scroll-bars
Date: Tue, 25 Jul 2023 08:06:11 -0300
emacs -Q:
(scroll-bar-mode 0)
(setq-default mode-line-format '(""
                                 mode-line-format-right-align
                                 mode-line-position))
Visit a very large file like xdisp.c and move to eob.
The line number get truncated.



In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.38, cairo version 1.17.8) of 2023-07-19 built on KRONOS
Repository revision: f9f9c95ab578dee680093cf3f1e618c770fc22c3
Repository branch: master
System Description: Manjaro Linux

Configured using:
 'configure --with-pgtk --with-native-compilation --without-libsystemd
 --without-compress-install --prefix=/home/german/.local/emacs'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG
RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER
WEBP XIM GTK3 ZLIB

Important settings:
  value of $LC_MONETARY: es_AR.UTF-8
  value of $LC_NUMERIC: es_AR.UTF-8
  value of $LC_TIME: es_AR.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  savehist-mode: t
  vertico-mode: t
  shackle-mode: t
  meow-global-mode: t
  meow-mode: t
  meow-normal-mode: t
  save-place-mode: t
  minibuffer-depth-indicate-mode: t
  electric-pair-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  window-divider-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/german/.emacs.d/elpa/embark-consult-0.7/embark-org hides /home/german/.emacs.d/elpa/embark-0.22.1/embark-org
/home/german/.emacs.d/elpa/transient-0.4.1/transient hides /home/german/.local/emacs/share/emacs/30.0.50/lisp/transient

Features:
(shadow sort mail-extr compile comint ansi-osc ansi-color ring emacsbug
message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec
password-cache epa derived epg rfc6068 epg-config gnus-util
text-property-search time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr warnings icons
rx savehist vertico compat init shackle trace easy-mmode cl-macs
cl-extra help-mode meow meow-tutor meow-cheatsheet
meow-cheatsheet-layout meow-core meow-shims delsel meow-esc meow-command
array meow-beacon kmacro byte-opt bytecomp byte-compile meow-thing
meow-visual pcase meow-keypad meow-helpers meow-util color subr-x
meow-keymap meow-face meow-var gv saveplace cl-seq cl-loaddefs cl-lib
mb-depth elec-pair g3r-light-theme info aggressive-indent-autoloads
autothemer-autoloads doom-themes-autoloads ef-themes-autoloads
embark-consult-autoloads consult-autoloads embark-autoloads
fontify-face-autoloads kkp-autoloads kurecolor-autoloads
lua-mode-autoloads magit-autoloads git-commit-autoloads
magit-section-autoloads meow-autoloads naysayer-theme-autoloads
orderless-autoloads outshine-autoloads outorg-autoloads popper-autoloads
prism-autoloads dash-autoloads rainbow-mode-autoloads
streamlink-autoloads s-autoloads transient-autoloads
transpose-frame-autoloads vertico-autoloads with-editor-autoloads
compat-autoloads yuck-mode-autoloads early-init rmc iso-transl tooltip
cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting cairo
gtk pgtk lcms2 multi-tty move-toolbar make-network-process
native-compile emacs)

Memory information:
((conses 16 127033 119570) (symbols 48 10364 5)
 (strings 32 32922 11935) (string-bytes 1 1067480) (vectors 16 19305)
 (vector-slots 8 396555 135015) (floats 8 122 301)
 (intervals 56 508 120) (buffers 984 12))

-- 
German Pacenza




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64851; Package emacs. (Tue, 25 Jul 2023 13:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 64851 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: German Pacenza <germanp82 <at> hotmail.com>, Hugo Heagren <hugo <at> heagren.com>
Cc: 64851 <at> debbugs.gnu.org
Subject: Re: bug#64851: 30.0.50; mode-line right align and vertical scroll-bars
Date: Tue, 25 Jul 2023 16:39:40 +0300
> From: German Pacenza <germanp82 <at> hotmail.com>
> Date: Tue, 25 Jul 2023 08:06:11 -0300
> 
> 
> emacs -Q:
> (scroll-bar-mode 0)
> (setq-default mode-line-format '(""
>                                  mode-line-format-right-align
>                                  mode-line-position))
> Visit a very large file like xdisp.c and move to eob.
> The line number get truncated.

Personally, I think the only reasonable response to this report is
"Don't do that".  The value of mode-line-position accounts only for 4
digits in the line number (it uses min-width 5.0, with one character
taken up by the leading "L"), and that is insufficient for buffers
larger that 9999 lines.  So if this is what you want, i.e. you want
mode-line-position to be the last part of the mode line, you need to
redefine mode-line-position to support more digits in the line number.

There seems to be an off-by-one error in the alignment computed by
mode--line-format-right-align, though, because adding one more space
to mode-line-position is insufficient to show the full 5 digits of
xdisp.c's line numbers: one needs two extra place, not one.  I hope
Hugo (CC'ed) will be able to find this minor mistake.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64851; Package emacs. (Tue, 25 Jul 2023 15:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 64851 <at> debbugs.gnu.org (full text, mbox):

From: German Pacenza <germanp82 <at> hotmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Hugo Heagren <hugo <at> heagren.com>, 64851 <at> debbugs.gnu.org
Subject: Re: bug#64851: 30.0.50; mode-line right align and vertical scroll-bars
Date: Tue, 25 Jul 2023 12:16:21 -0300
Eli Zaretskii <eliz <at> gnu.org> writes:

> Personally, I think the only reasonable response to this report is
> "Don't do that".  The value of mode-line-position accounts only for 4
> digits in the line number (it uses min-width 5.0, with one character
> taken up by the leading "L"), and that is insufficient for buffers
> larger that 9999 lines.  So if this is what you want, i.e. you want
> mode-line-position to be the last part of the mode line, you need to
> redefine mode-line-position to support more digits in the line number.

Replacing mode-line-position with "%o   L%l" does the trick.
Thanks.

-- 
German Pacenza




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#64851; Package emacs. (Fri, 01 Sep 2023 20:48:01 GMT) Full text and rfc822 format available.

Message #14 received at 64851 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: German Pacenza <germanp82 <at> hotmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Hugo Heagren <hugo <at> heagren.com>,
 64851 <at> debbugs.gnu.org
Subject: Re: bug#64851: 30.0.50; mode-line right align and vertical scroll-bars
Date: Fri, 1 Sep 2023 22:46:36 +0200
tags 64851 notabug
close 64851
thanks

German Pacenza <germanp82 <at> hotmail.com> writes:
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Personally, I think the only reasonable response to this report is
> > "Don't do that".  The value of mode-line-position accounts only for 4
> > digits in the line number (it uses min-width 5.0, with one character
> > taken up by the leading "L"), and that is insufficient for buffers
> > larger that 9999 lines.  So if this is what you want, i.e. you want
> > mode-line-position to be the last part of the mode line, you need to
> > redefine mode-line-position to support more digits in the line number.
>
> Replacing mode-line-position with "%o   L%l" does the trick.
> Thanks.

Thanks, I'm therefore closing this bug.




Added tag(s) notabug. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 01 Sep 2023 20:48:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 64851 <at> debbugs.gnu.org and German Pacenza <germanp82 <at> hotmail.com> Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 01 Sep 2023 20:48:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 30 Sep 2023 11:24:18 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 224 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.