* lisp/master.el (master-says): Check nil argument (bug#70230).
This commit is contained in:
parent
ae296d762b
commit
c7a0e4faa2
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue