Variable: ispell-skip-region-alist

ispell-skip-region-alist is a variable defined in ispell.el.gz.

Value

((ispell-words-keyword forward-line)
 (ispell-dictionary-keyword forward-line)
 (ispell-pdict-keyword forward-line)
 (ispell-parsing-keyword forward-line)
 ("^---*BEGIN PGP [A-Z ]*--*" . "^---*END PGP [A-Z ]*--*")
 ("^begin [0-9][0-9][0-9] [^    ]+$" . "\nend\n")
 ("^%!PS-Adobe-[123].0" . "\n%%EOF\n")
 ("^---* \\(Start of \\)?[Ff]orwarded [Mm]essage"
  . "^---* End of [Ff]orwarded [Mm]essage"))

Documentation

Alist expressing beginning and end of regions not to spell check.

The alist key must be a regular expression. Valid forms include:
  (KEY) - just skip the key.
  (KEY . REGEXP) - skip to the end of REGEXP. REGEXP may be string or symbol.
  (KEY REGEXP) - skip to end of REGEXP. REGEXP must be a string.
  (KEY FUNCTION ARGS) - FUNCTION called with ARGS returns end of region.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/ispell.el.gz
;;;###autoload
(defvar ispell-skip-region-alist
  '((ispell-words-keyword	   forward-line)
    (ispell-dictionary-keyword	   forward-line)
    (ispell-pdict-keyword	   forward-line)
    (ispell-parsing-keyword	   forward-line)
    ("^---*BEGIN PGP [A-Z ]*--*"
     . "^---*END PGP [A-Z ]*--*")
    ;; assume multiline uuencoded file? "\nM.*$"?
    ("^begin [0-9][0-9][0-9] [^ \t]+$" . "\nend\n")
    ("^%!PS-Adobe-[123].0" . "\n%%EOF\n")
    ("^---* \\(Start of \\)?[Ff]orwarded [Mm]essage"
     . "^---* End of [Ff]orwarded [Mm]essage")
    ;; Matches e-mail addresses, file names, http addresses, etc.  The
    ;; `-+' `_+' patterns are necessary for performance reasons when
    ;; `-' or `_' part of word syntax.
;    ("\\(--+\\|_+\\|\\(/\\w\\|\\(\\(\\w\\|[-_]\\)+[.:@]\\)\\)\\(\\w\\|[-_]\\)*\\([.:/@]+\\(\\w\\|[-_~=?&]\\)+\\)+\\)")
    ;; above checks /.\w sequences
    ;;("\\(--+\\|\\(/\\|\\(\\(\\w\\|[-_]\\)+[.:@]\\)\\)\\(\\w\\|[-_]\\)*\\([.:/@]+\\(\\w\\|[-_~=?&]\\)+\\)+\\)")
    ;; This is a pretty complex regexp.  It can be simplified to the following:
    ;; "\\(\\w\\|[-_]\\)*\\([.:/@]+\\(\\w\\|[-_]\\|~\\)+\\)+"
    ;; but some valid text will be skipped, e.g. "his/her".  This could be
    ;; fixed up (at the expense of a moderately more complex regexp)
    ;; by not allowing "/" to be the character which triggers the
    ;; identification of the computer name, e.g.:
    ;; "\\(\\w\\|[-_]\\)+[.:@]\\(\\w\\|[-_]\\)*\\([.:/@]+\\(\\w\\|[-_]\\|~\\)+\\)+"
    )
  "Alist expressing beginning and end of regions not to spell check.
The alist key must be a regular expression.
Valid forms include:
  (KEY) - just skip the key.
  (KEY . REGEXP) - skip to the end of REGEXP.  REGEXP may be string or symbol.
  (KEY REGEXP) - skip to end of REGEXP.  REGEXP must be a string.
  (KEY FUNCTION ARGS) - FUNCTION called with ARGS returns end of region.")