aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Stephani2021-05-30 22:38:48 +0200
committerPhilipp Stephani2021-05-30 22:38:48 +0200
commit3988411f6c6a1170bca0831874233ff4b739009c (patch)
tree0a9d10bc2456be49a82f1e0bd47f5bca862be714
parenta5b57fc6af7ec87c59d00a7631576f9f4bf99841 (diff)
downloademacs-3988411f6c6a1170bca0831874233ff4b739009c.tar.gz
emacs-3988411f6c6a1170bca0831874233ff4b739009c.zip
Give 'syntax-propertize-wholelines' a docstring.
This function is generally useful. * lisp/emacs-lisp/syntax.el (syntax-propertize-wholelines): Add docstring.
-rw-r--r--lisp/emacs-lisp/syntax.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index 6d5b04b83bb..0bb1b8916b1 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -125,6 +125,10 @@ otherwise nil. That construct can be a two character comment
125delimiter or an Escaped or Char-quoted character.")) 125delimiter or an Escaped or Char-quoted character."))
126 126
127(defun syntax-propertize-wholelines (start end) 127(defun syntax-propertize-wholelines (start end)
128 "Extend the region delimited by START and END to whole lines.
129This function is useful for
130`syntax-propertize-extend-region-functions';
131see Info node `(elisp) Syntax Properties'."
128 (goto-char start) 132 (goto-char start)
129 (cons (line-beginning-position) 133 (cons (line-beginning-position)
130 (progn (goto-char end) 134 (progn (goto-char end)