Function: format-encode-buffer
format-encode-buffer is an interactive and byte-compiled function
defined in format.el.gz.
Signature
(format-encode-buffer &optional FORMAT)
Documentation
Translate the buffer into FORMAT.
FORMAT defaults to buffer-file-format. It is a symbol naming one of the
formats defined in format-alist, or a list of such symbols.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/format.el.gz
(defun format-encode-buffer (&optional format)
"Translate the buffer into FORMAT.
FORMAT defaults to `buffer-file-format'. It is a symbol naming one of the
formats defined in `format-alist', or a list of such symbols."
(interactive
(list (format-read (format-prompt "Translate buffer to format"
buffer-file-format))))
(format-encode-region (point-min) (point-max) format))