]> git.eshelyaron.com Git - emacs.git/commit
* lisp/man.el (Man-fit-to-window): Don't update on tty with MANWIDTH.
authorJuri Linkov <juri@linkov.net>
Thu, 9 Jan 2025 18:33:03 +0000 (20:33 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 11 Jan 2025 11:18:28 +0000 (12:18 +0100)
commit15658f11c9e177c1bff1886d0da7895507c7d49f
tree181e0c0c0e704526bc14841886310a54b1c5fd8f
parent50832cb581f71a3b68dfd3f869cfbf7a69257a4b
* lisp/man.el (Man-fit-to-window): Don't update on tty with MANWIDTH.

Check if 'Man-columns' is non-nil before trying to reformat
the manpage buffer.  The value of the varible 'Man-columns'
is nil on a non-window system where "MANWIDTH" or "COLUMNS"
is defined.  And the return value of the function 'Man-columns'
is meaningless in this case anyway.  So no need to react
to changes in window width (bug#74924).

(cherry picked from commit 351b6ac16d29459c5800bd980d428e61ee43cb7d)
lisp/man.el