bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34513: display-line-numbers in term mode


From: Eli Zaretskii
Subject: bug#34513: display-line-numbers in term mode
Date: Mon, 21 Sep 2020 05:27:40 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: monnier@IRO.UMontreal.CA,  34513@debbugs.gnu.org,  spacibba@aol.com
> Date: Sun, 20 Sep 2020 21:56:54 +0200
> 
> Eli Zaretskii <eliz@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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]