Function: c-guess-buffer

c-guess-buffer is an autoloaded, interactive and byte-compiled function defined in cc-guess.el.gz.

Signature

(c-guess-buffer &optional ACCUMULATE)

Documentation

Guess the style on the whole current buffer, and install it.

The style is given a name based on the file's absolute file name.

If given a prefix argument (or if the optional argument ACCUMULATE is non-nil) then the previous guess is extended, otherwise a new guess is made from scratch.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-guess.el.gz
;;;###autoload
(defun c-guess-buffer (&optional accumulate)
  "Guess the style on the whole current buffer, and install it.

The style is given a name based on the file's absolute file name.

If given a prefix argument (or if the optional argument ACCUMULATE is
non-nil) then the previous guess is extended, otherwise a new guess is
made from scratch."
  (interactive "P")
  (c-guess-region (point-min)
		   (point-max)
		   accumulate))