Function: te-set-output-log
te-set-output-log is an interactive and byte-compiled function defined
in terminal.el.gz.
Signature
(te-set-output-log NAME)
Documentation
Record output from the terminal emulator in a buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/terminal.el.gz
(defun te-set-output-log (name)
"Record output from the terminal emulator in a buffer."
(interactive (list (if te-log-buffer
nil
(read-buffer "Record output in buffer: "
(format "%s output-log"
(buffer-name (current-buffer)))
nil))))
(if (or (null name) (equal name ""))
(progn (setq te-log-buffer nil)
(message "Output logging off."))
(if (get-buffer name)
nil
(with-current-buffer (get-buffer-create name)
(fundamental-mode)
(buffer-disable-undo (current-buffer))
(erase-buffer)))
(setq te-log-buffer (get-buffer name))
(message "Recording terminal emulator output into buffer \"%s\""
(buffer-name te-log-buffer))))