* 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).
This commit is contained in:
parent
4077bb9867
commit
b782491630
1 changed files with 1 additions and 1 deletions
|
@ -1202,8 +1202,8 @@ Return the buffer in which the manpage will appear."
|
|||
(Man-notify-when-ready buffer)
|
||||
(message "Invoking %s %s in the background" manual-program man-args)
|
||||
(setq buffer (generate-new-buffer bufname))
|
||||
(Man-notify-when-ready buffer)
|
||||
(with-current-buffer buffer
|
||||
(Man-notify-when-ready buffer)
|
||||
(setq buffer-undo-list t)
|
||||
(setq Man-original-frame (selected-frame))
|
||||
(setq Man-arguments man-args)
|
||||
|
|
Loading…
Add table
Reference in a new issue