Function: syntax-propertize-wholelines
syntax-propertize-wholelines is a byte-compiled function defined in
syntax.el.gz.
Signature
(syntax-propertize-wholelines START END)
Documentation
Extend the region delimited by START and END to whole lines.
This function is useful for
syntax-propertize-extend-region-functions;
see Info node (elisp) Syntax Properties.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/syntax.el.gz
(defun syntax-propertize-wholelines (start end)
"Extend the region delimited by START and END to whole lines.
This function is useful for
`syntax-propertize-extend-region-functions';
see Info node `(elisp) Syntax Properties'."
(goto-char start)
(cons (line-beginning-position)
(progn (goto-char end)
(if (bolp) (point) (line-beginning-position 2)))))