Variable: kfill:prefix-table

kfill:prefix-table is a variable defined in kfill.el.

Value

((" *(?\\([0-9][0-9a-z.]*\\|[a-z][0-9a-z.]\\)) +" . kfill:hanging-list)
 (" *\\([0-9]+[a-z.]+[0-9a-z.]*\\|[0-9]+\\|[a-z]\\)\\([.>] +\\|  +\\)"
  . kfill:hanging-list)
 ("[    ]*\\(>+ *\\)+" . kfill:normal-included-text)
 ("[    ]*[A-Za-z0-9][^'`\"<         \n
]*>[     ]*"
  . kfill:supercite-included-text)
 ("[    ]*\\(;+[        ]*\\)+" . kfill:lisp-comment)
 ("[    ]*\\(#+[        ]*\\)+" . kfill:sh-comment)
 ("[    ]*\\(%+[        ]*\\)+" . kfill:postscript-comment)
 ("[    ]*//[/  ]*" . kfill:c++-comment)
 ("[?!~*+ -]+ " . kfill:hanging-list)
 ("[^   /#%?!~*+-]" . kfill:normal))

Documentation

Value is an alist of the form ((REGEXP . FUNCTION) ...).

When fill-paragraph is called, the REGEXP of each alist element is compared with the beginning of the current line. If a match is found the corresponding FUNCTION is called. FUNCTION is called with one argument, which is non-nil when invoked on the behalf of fill-paragraph. It is the job of FUNCTION to set the values of the paragraph-* variables (or set a clipping region, if paragraph-start and paragraph-separate cannot be made discerning enough) so that fill-paragraph works correctly in various contexts.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kfill.el
;;; ************************************************************************
;;; Public variables
;;; ************************************************************************

(defvar kfill:prefix-table
  '(
    ;; Lists with hanging indents, e.g.
    ;; 1. xxxxx   or   1)  xxxxx   etc.
    ;;    xxxxx            xxx
    ;;
    ;; Be sure pattern does not match to:  (last word in parens starts
    ;; newline)
    (" *(?\\([0-9][0-9a-z.]*\\|[a-z][0-9a-z.]\\)) +" . kfill:hanging-list)
    (" *\\([0-9]+[a-z.]+[0-9a-z.]*\\|[0-9]+\\|[a-z]\\)\\([.>] +\\|  +\\)"
     . kfill:hanging-list)
    ;; Included text in news or mail replies
    ("[ \t]*\\(>+ *\\)+" . kfill:normal-included-text)
    ;; Included text generated by SUPERCITE.  We can't hope to match all
    ;; the possible variations, your mileage may vary.
    ("[ \t]*[A-Za-z0-9][^'`\"< \t\n\r]*>[ \t]*" . kfill:supercite-included-text)
    ;; Lisp comments
    ("[ \t]*\\(;+[ \t]*\\)+" . kfill:lisp-comment)
    ;; UNIX shell comments
    ("[ \t]*\\(#+[ \t]*\\)+" . kfill:sh-comment)
    ;; Postscript comments
    ("[ \t]*\\(%+[ \t]*\\)+" . kfill:postscript-comment)
    ;; C++ comments
    ("[ \t]*//[/ \t]*" . kfill:c++-comment)
    ("[?!~*+ -]+ " . kfill:hanging-list)
    ;; This keeps normal paragraphs from interacting unpleasantly with
    ;; the types given above.
    ("[^ \t/#%?!~*+-]" . kfill:normal))
  "Value is an alist of the form ((REGEXP . FUNCTION) ...).

When `fill-paragraph' is called, the REGEXP of each alist element is compared
with the beginning of the current line.  If a match is found the corresponding
FUNCTION is called.  FUNCTION is called with one argument, which is non-nil
when invoked on the behalf of `fill-paragraph'.  It is the job of FUNCTION to
set the values of the paragraph-* variables (or set a clipping region, if
paragraph-start and paragraph-separate cannot be made discerning enough) so
that `fill-paragraph' works correctly in various contexts.")