Function: refill-pre-command-function

refill-pre-command-function is a byte-compiled function defined in refill.el.gz.

Signature

(refill-pre-command-function)

Documentation

Pre-command function to do refilling (conditionally).

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/refill.el.gz
(defun refill-pre-command-function ()
  "Pre-command function to do refilling (conditionally)."
  (when (and refill-doit (not (eq this-command 'self-insert-command)))
    ;; A previous setting of `refill-doit' didn't result in a refill,
    ;; because it was a self-insert-command.  Since the next command is
    ;; something else, do the refill now.
    (refill-fill-paragraph-at refill-doit)
    (setq refill-doit nil)))