Function: master-says

master-says is an interactive and byte-compiled function defined in master.el.gz.

Signature

(master-says &optional COMMAND ARG)

Documentation

Display slave buffer and execute COMMAND with ARG in its window.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/master.el.gz
;; The master function doing the stuff.

(defun master-says (&optional command arg)
  "Display slave buffer and execute COMMAND with ARG in its window."
  (interactive)
  (if (null (buffer-live-p (get-buffer master-of)))
      (error "Slave buffer has disappeared")
    (let ((window  (selected-window)))
      (if (not (eq (window-buffer window) (get-buffer master-of)))
	  (switch-to-buffer-other-window master-of))
      (if command (condition-case nil (apply command arg) (error nil)))
      (select-window window))))