Skip to content

Commit

Permalink
Give 'syntax-propertize-wholelines' a docstring.
Browse files Browse the repository at this point in the history
This function is generally useful.

* lisp/emacs-lisp/syntax.el (syntax-propertize-wholelines): Add
docstring.
  • Loading branch information
phst committed May 30, 2021
1 parent a5b57fc commit 3988411
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lisp/emacs-lisp/syntax.el
Expand Up @@ -125,6 +125,10 @@ otherwise nil. That construct can be a two character comment
delimiter or an Escaped or Char-quoted character."))

(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)
Expand Down

0 comments on commit 3988411

Please sign in to comment.