]> git.eshelyaron.com Git - emacs.git/commit
* lisp/man.el (Man-getpage-in-background): Don't set buffer before display.
authorJuri Linkov <juri@linkov.net>
Fri, 31 May 2024 06:25:52 +0000 (09:25 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 1 Jun 2024 17:04:58 +0000 (19:04 +0200)
commit1838ecb16592ab4b3a2af4fca6874f92d84e2860
treed32d9b620308625171ea5d321533e3d45312f708
parent6485d07e86e6b1e7d3b57835a0de0dbeffd67e4b
* lisp/man.el (Man-getpage-in-background): Don't set buffer before display.

Call 'Man-notify-when-ready' before switching the current buffer.
This will avoid possible messing with the current buffer by
'Man-notify-when-ready' where display-buffer functions might change
the current buffer, thus breaking the subsequent setting of buffer-local
variables like Man-arguments in the wrong buffer (bug#71271).

(cherry picked from commit b7824916300e63e7352d2e268c72894b68937553)
lisp/man.el