mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +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)
|
(defun master-says (&optional command arg)
|
||||||
"Display slave buffer and execute COMMAND with ARG in its window."
|
"Display slave buffer and execute COMMAND with ARG in its window."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(unless master-of
|
||||||
|
(error "Current buffer is not a master of any other buffer"))
|
||||||
(if (null (buffer-live-p (get-buffer master-of)))
|
(if (null (buffer-live-p (get-buffer master-of)))
|
||||||
(error "Slave buffer has disappeared")
|
(error "Slave buffer has disappeared")
|
||||||
(let ((window (selected-window)))
|
(let ((window (selected-window)))
|
||||||
|
Loading…
Reference in New Issue
Block a user