Function: format-decode-buffer

format-decode-buffer is an interactive and byte-compiled function defined in format.el.gz.

Signature

(format-decode-buffer &optional FORMAT)

Documentation

Translate the buffer from some FORMAT.

If the format is not specified, attempt a regexp-based guess. Set buffer-file-format to the format used, and call any format-specific mode functions.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/format.el.gz
;;;
;;; Interactive functions & entry points
;;;

(defun format-decode-buffer (&optional format)
  "Translate the buffer from some FORMAT.
If the format is not specified, attempt a regexp-based guess.
Set `buffer-file-format' to the format used, and call any
format-specific mode functions."
  (interactive
   (list (format-read "Translate buffer from format (default guess): ")))
  (save-excursion
    (goto-char (point-min))
    (format-decode format (buffer-size) t)))