summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/generate-lisp-file.el
diff options
context:
space:
mode:
authorTheodor Thornhill <theo@thornhill.no>2023-01-08 20:28:02 +0100
committerTheodor Thornhill <theo@thornhill.no>2023-01-11 16:26:00 +0100
commit37d93975780f294fd7b3fefe6281a0a36638192f (patch)
treebedee2dea254e5d0af68bcdc710d61b7e7154b0d /lisp/emacs-lisp/generate-lisp-file.el
parent033f2cc6140d03e78403f37689b9f54b64bded01 (diff)
downloademacs-37d93975780f294fd7b3fefe6281a0a36638192f.tar.gz
emacs-37d93975780f294fd7b3fefe6281a0a36638192f.tar.bz2
emacs-37d93975780f294fd7b3fefe6281a0a36638192f.zip
Add forward-sentence with tree sitter support (bug#60623)
* etc/NEWS: Mention the new changes. * lisp/textmodes/paragraphs.el (forward-sentence-default-function): Move old implementation to its own function. (forward-sentence-function): New defvar defaulting to old behavior. (forward-sentence): Use the variable in this function unconditionally. * lisp/treesit.el (treesit-sentence-type-regexp): New defvar. (treesit-forward-sentence): New defun. (treesit-major-mode-setup): Conditionally set forward-sentence-function. * doc/emacs/programs.texi (Defuns): Add new subsection. (Moving by Sentences): Add some documentation with xrefs to the elisp manual and related nodes. * doc/lispref/positions.texi (List Motion): Mention treesit-sentence-type-regexp and describe how to enable this functionality.
Diffstat (limited to 'lisp/emacs-lisp/generate-lisp-file.el')
0 files changed, 0 insertions, 0 deletions