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:
parent
ae296d762b
commit
c7a0e4faa2
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user