Function: picture-mode-exit
picture-mode-exit is an interactive and byte-compiled function defined
in picture.el.gz.
Signature
(picture-mode-exit &optional NOSTRIP)
Documentation
Undo picture-mode and return to previous major mode.
With NOSTRIP omitted or nil, strip whitespace from end of every line
in Picture buffer; otherwise, just return to previous mode.
Interactively, NOSTRIP is the prefix argument, and defaults to nil.
Runs picture-mode-exit-hook at the end.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/picture.el.gz
(defun picture-mode-exit (&optional nostrip)
"Undo `picture-mode' and return to previous major mode.
With NOSTRIP omitted or nil, strip whitespace from end of every line
in Picture buffer; otherwise, just return to previous mode.
Interactively, NOSTRIP is the prefix argument, and defaults to nil.
Runs `picture-mode-exit-hook' at the end."
(interactive "P")
(if (not (eq major-mode 'picture-mode))
(error "You aren't editing a Picture")
(if (not nostrip) (delete-trailing-whitespace))
(setq mode-name picture-mode-old-mode-name)
(use-local-map picture-mode-old-local-map)
(setq major-mode picture-mode-old-major-mode)
(kill-local-variable 'tab-stop-list)
(setq truncate-lines picture-mode-old-truncate-lines)
(force-mode-line-update)
(run-hooks 'picture-mode-exit-hook)))