Function: texinfo-format-buffer

texinfo-format-buffer is an autoloaded, interactive and byte-compiled function defined in texinfmt.el.gz.

Signature

(texinfo-format-buffer &optional NOSPLIT)

Documentation

Process the current buffer as texinfo code, into an Info file.

The Info file output is generated in a buffer visiting the Info file name specified in the @setfilename command.

Non-nil argument (prefix, if interactive) means don't make tag table and don't split the file if large. You can use Info-tagify and Info-split to do these manually.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/texinfmt.el.gz
;;; Top level buffer and region formatting functions

;;;###autoload
(defun texinfo-format-buffer (&optional nosplit)
  "Process the current buffer as texinfo code, into an Info file.
The Info file output is generated in a buffer visiting the Info file
name specified in the @setfilename command.

Non-nil argument (prefix, if interactive) means don't make tag table
and don't split the file if large.  You can use `Info-tagify' and
`Info-split' to do these manually."
  (interactive "P")
  (let ((lastmessage "Formatting Info file...")
	(coding-system-for-write buffer-file-coding-system))
    (message lastmessage)
    (widen)
    (texinfo-format-buffer-1)
    (Info-tagify)
    (if nosplit
        nil
      (if (> (buffer-size) (+ 50000 Info-split-threshold))
          (progn
            (message (setq lastmessage "Splitting Info file..."))
            (Info-split))))
    (message (concat lastmessage
                     (if (called-interactively-p 'interactive)
			 "done.  Now save it." "done.")))))