Function: ispell-begin-skip-region-regexp
ispell-begin-skip-region-regexp is a byte-compiled function defined in
ispell.el.gz.
Signature
(ispell-begin-skip-region-regexp)
Documentation
Return a regexp of the search keys for region skipping.
Includes ispell-skip-region-alist plus tex, tib, html, and comment keys.
Must be called after ispell-buffer-local-parsing due to dependence on mode.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/ispell.el.gz
(defun ispell-begin-skip-region-regexp ()
"Return a regexp of the search keys for region skipping.
Includes `ispell-skip-region-alist' plus tex, tib, html, and comment keys.
Must be called after `ispell-buffer-local-parsing' due to dependence on mode."
(mapconcat
#'identity
(delq nil
(list
;; messages
(if (and ispell-checking-message
(not (eq t ispell-checking-message)))
(mapconcat #'car ispell-checking-message "\\|"))
;; tex
(if (eq ispell-parser 'tex)
(ispell-begin-tex-skip-regexp))
;; html stuff
(if ispell-skip-html
(ispell-begin-skip-region ispell-html-skip-alists))
;; tib
(if ispell-skip-tib ispell-tib-ref-beginning)
;; Comments
(if (and (eq 'exclusive ispell-check-comments) comment-start)
;; search from end of current comment to start of next comment.
(if (string= "" comment-end) "^" (regexp-quote comment-end)))
(if (and (null ispell-check-comments) comment-start)
(regexp-quote comment-start))
;; If they set ispell-skip-region-alist to nil, mapconcat
;; will produce an empty string, which will then match
;; anything without moving point, something
;; ispell-skip-region doesn't expect. Perhaps we should be
;; more defensive and delq "" above as well, in addition to
;; deleting nil elements.
(if ispell-skip-region-alist
(ispell-begin-skip-region ispell-skip-region-alist))
(ispell--make-filename-or-URL-re)))
"\\|"))