GNU bug report logs -
#34513
display-line-numbers in term mode
Previous Next
Reported by: Ergus <spacibba <at> aol.com>
Date: Sun, 17 Feb 2019 14:21:02 UTC
Severity: normal
Tags: fixed
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #77 received at 34513 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: monnier <at> IRO.UMontreal.CA, 34513 <at> debbugs.gnu.org, spacibba <at> aol.com
> Date: Sun, 20 Sep 2020 21:56:54 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Not even if you call line-number-display-width with arg of 'columns'?
>
> Yes, this works -- the Emacs-in-Emacs displays perfectly with this patch:
>
> diff --git a/lisp/window.el b/lisp/window.el
> index f1ee87aad2..72957d846a 100644
> --- a/lisp/window.el
> +++ b/lisp/window.el
> @@ -2172,7 +2172,8 @@ window-max-chars-per-line
> (with-selected-window (window-normalize-window window t)
> (let* ((window-width (window-body-width window t))
> (font-width (window-font-width window face))
> - (ncols (/ window-width font-width)))
> + (ncols (- (/ window-width font-width)
> + (line-number-display-width 'columns))))
> (if (and (display-graphic-p)
> overflow-newline-into-fringe
> (not
Great, then please install, and thanks.
This bug report was last modified 4 years and 244 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.