[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 351b6ac16d2: * lisp/man.el (Man-fit-to-window): Don't update on t
From: |
Juri Linkov |
Subject: |
master 351b6ac16d2: * lisp/man.el (Man-fit-to-window): Don't update on tty with MANWIDTH. |
Date: |
Thu, 9 Jan 2025 13:36:04 -0500 (EST) |
branch: master
commit 351b6ac16d29459c5800bd980d428e61ee43cb7d
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
* 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).
---
lisp/man.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/man.el b/lisp/man.el
index be31d8d2489..a5881f30980 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1291,6 +1291,7 @@ Return the buffer in which the manpage will appear."
(when (window-live-p window)
(with-current-buffer (window-buffer window)
(when (and (derived-mode-p 'Man-mode)
+ Man-columns
(not (eq Man-columns (Man-columns))))
(let ((proc (get-buffer-process (current-buffer))))
(unless (and proc (not (eq (process-status proc) 'exit)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 351b6ac16d2: * lisp/man.el (Man-fit-to-window): Don't update on tty with MANWIDTH.,
Juri Linkov <=