1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

* lisp/master.el (master-says): Check nil argument (bug#70230).

This commit is contained in:
Lin Sun 2024-04-05 06:58:07 +00:00 committed by Eli Zaretskii
parent ae296d762b
commit c7a0e4faa2

View File

@ -136,6 +136,8 @@ See `recenter'."
(defun master-says (&optional command arg)
"Display slave buffer and execute COMMAND with ARG in its window."
(interactive)
(unless master-of
(error "Current buffer is not a master of any other buffer"))
(if (null (buffer-live-p (get-buffer master-of)))
(error "Slave buffer has disappeared")
(let ((window (selected-window)))