Function: font-lock-extend-region-wholelines
font-lock-extend-region-wholelines is a byte-compiled function defined
in font-lock.el.gz.
Signature
(font-lock-extend-region-wholelines)
Documentation
Move fontification boundaries to beginning of lines.
Source Code
;; Defined in /usr/src/emacs/lisp/font-lock.el.gz
(defun font-lock-extend-region-wholelines ()
"Move fontification boundaries to beginning of lines."
(let ((changed nil))
(goto-char font-lock-beg)
(unless (bolp)
(setq changed t font-lock-beg
(let ((inhibit-field-text-motion t))
(line-beginning-position))))
(goto-char font-lock-end)
(unless (bolp)
(unless (eq font-lock-end
(setq font-lock-end (line-beginning-position 2)))
(setq changed t)))
changed))