diff options
| author | Stefan Monnier | 2024-04-05 17:37:32 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-04-13 09:43:11 -0400 |
| commit | d7a83e23d47ca9e3e6ca70078e956e31301e5e6d (patch) | |
| tree | 837781513617ce2dd14618d76f5bd9870b861c5a /java | |
| parent | dd6b9c9426c5d7dde66974c5790815c3520a755b (diff) | |
| download | emacs-d7a83e23d47ca9e3e6ca70078e956e31301e5e6d.tar.gz emacs-d7a83e23d47ca9e3e6ca70078e956e31301e5e6d.zip | |
lisp/emacs-lisp/track-changes.el: New file (bug#70077)
This new package provides an API that is easier to use right than
our `*-change-functions` hooks.
The patch includes changes to `diff-mode.el` and `eglot.el` to
make use of this new package.
* lisp/emacs-lisp/track-changes.el: New file.
* test/lisp/emacs-lisp/track-changes-tests.el: New file.
* doc/lispref/text.texi (Tracking changes): New subsection.
* lisp/progmodes/eglot.el: Require `track-changes`.
(eglot--virtual-pos-to-lsp-position): New function.
(eglot--track-changes): New var.
(eglot--managed-mode): Use `track-changes-register` i.s.o
`after/before-change-functions` when available.
(eglot--track-changes-signal): New function, partly extracted from
`eglot--after-change`.
(eglot--after-change): Use it.
(eglot--track-changes-fetch): New function.
(eglot--signal-textDocument/didChange): Use it.
* lisp/vc/diff-mode.el: Require `track-changes`.
Also require `easy-mmode` before the `eval-when-compile`s.
(diff-unhandled-changes): Delete variable.
(diff-after-change-function): Delete function.
(diff--track-changes-function): Rename from `diff-post-command-hook`
and adjust to new calling convention.
(diff--track-changes): New variable.
(diff--track-changes-signal): New function.
(diff-mode, diff-minor-mode): Use it with `track-changes-register`.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions