diff options
| author | Stefan Monnier | 2024-04-05 17:37:32 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-04-09 22:28:11 -0400 |
| commit | 820011a254231d6255b0d7fe07ff4ab1314c3b6e (patch) | |
| tree | ebee7d6bc1170be3a9ed50e6182c287d18292403 /README | |
| parent | dd6b9c9426c5d7dde66974c5790815c3520a755b (diff) | |
| download | emacs-scratch/track-changes.tar.gz emacs-scratch/track-changes.zip | |
lisp/emacs-lisp/track-changes.el: New filescratch/track-changes
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 'README')
0 files changed, 0 insertions, 0 deletions