1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00
emacs/doc/misc
João Távora ed5ccf9da2 Eglot: revamp confirmation model for server-proposed edits
bug#60338

The variable 'eglot-confirm-server-edits' replaces the obsolete
'eglot-confirm-server-initiated-edits' and brings about a new
confirmation model, making it possible to have only certain commands
require user confirmation.  This was achieved careful usage of the
'this-command' and 'last-command' variables.

There are now two types of confirmation: the usual
minibuffer summary and a temporary 'diff-mode' buffer to display the
proposed changes, so the user can apply them one by one.

Thanks to Philip Kaludercic for the diff-mode idea and implementation.

Co-authored-by: Philip Kaludercic <philipk@posteo.net>

* doc/misc/eglot.texi (Eglot Variables): Describe
'eglot-confirm-server-edits'.

* etc/EGLOT-NEWS (latest): Mention change.

* lisp/progmodes/eglot.el (diff-mode): Require it.
(eglot-confirm-server-initiated-edits): Obsolete it.
(eglot-confirm-server-edits): New variable.
(eglot-handle-request workspace/applyEdit): Use 'last-command'
(eglot-execute t t): Use 'this-command'.
(eglot--apply-workspace-edit): Rework.
(eglot-rename): Use 'this-command'.
2023-09-01 01:00:19 +01:00
..
auth.texi Replace duplicate text from epa.texi by a reference 2023-07-13 10:51:50 +03:00
autotype.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bovine.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
calc.texi * doc/misc/calc.texi (Musical Notes): Fix build with Texinfo 4.13. 2023-08-09 09:48:33 +08:00
cc-mode.texi Fontify C, C++, Objective C identifiers containing $ 2023-06-28 18:29:39 +00:00
ChangeLog.1 ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cl.texi Fix the documentation of 'cl-flet' 2023-08-19 11:50:09 +03:00
dbus.texi Fix setting $DBUS_SESSION_BUS_ADDRESS after Emacs has started 2023-06-12 12:45:38 +02:00
dired-x.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
doclicense.texi
ebrowse.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ede.texi Fix some Texinfo markup in manuals 2023-06-13 15:29:06 +01:00
ediff.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
edt.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
efaq-w32.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
efaq.texi ; Minor addition to the Emacs FAQ 2023-04-08 10:41:53 +03:00
eglot.texi Eglot: revamp confirmation model for server-proposed edits 2023-09-01 01:00:19 +01:00
eieio.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-gnutls.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-mime.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
epa.texi Add basic usage information and fix references 2023-07-13 10:51:10 +03:00
erc.texi ; Add example buffer-display option to ERC's manual 2023-07-28 16:34:31 -07:00
ert.texi Fix some Texinfo markup in manuals 2023-06-13 15:29:06 +01:00
eshell.texi Support 'comint-pager' in Eshell 2023-08-23 16:46:25 -07:00
eudc.texi Fix some Texinfo markup in manuals 2023-06-13 15:29:06 +01:00
eww.texi ; Fix documentation of last change 2023-08-20 11:48:03 +03:00
flymake.texi Merge from origin/emacs-29 2023-06-17 05:02:55 -04:00
forms.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gnus-faq.texi Delete redundant question from Gnus FAQ 2023-02-18 13:35:37 +01:00
gnus.texi Fix all my attributions to be correct and consistent... 2023-08-08 20:07:52 -04:00
gpl.texi
htmlfontify.texi ; Fix last change: remove unused @anchor. 2023-01-15 11:52:46 +02:00
idlwave.texi Refer to EWW instead of w3 and w3m 2023-03-16 14:24:45 +01:00
ido.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
info.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mairix-el.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
Makefile.in ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
message.texi Allow X-Message-SMTP-Method to include more MTAs 2023-05-06 09:05:28 +08:00
mh-e.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
modus-themes.org Merge from origin/emacs-29 2023-07-15 05:30:14 -04:00
newsticker.texi Run newsticker's ticker only periodically (bug#59856) 2023-01-16 09:20:11 +01:00
nxml-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
octave-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
org-setup.org ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
org.org ; Fix http/https thinko in org manual 2023-08-04 09:57:27 +02:00
pcl-cvs.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
pgg.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rcirc.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
reftex.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
remember.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sc.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
sem-user.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
semantic.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ses.texi ; Repair an ommission in a previous change to ses.texi 2023-08-24 08:35:02 +08:00
sieve.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
smtpmail.texi ; Improve SMTPmail documentation about OAuth2 2023-08-24 21:06:26 +03:00
speedbar.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
srecode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
texinfo.tex Update from Gnulib by running admin/merge-gnulib 2023-08-12 12:57:35 -07:00
todo-mode.texi Fix and improve setting priority of todo-mode items (bug#64433) 2023-07-03 14:19:41 +02:00
tramp.texi Simplify use of Tramp messages 2023-08-19 10:08:05 +02:00
trampver.texi Sync with Tramp 2.6.2-pre 2023-08-05 18:07:58 +02:00
transient.texi Avoid Unicode quotes within transient.texi 2023-08-29 09:29:20 +08:00
url.texi ; Prefer HTTPS to HTTP in more links 2023-08-02 23:32:28 +02:00
use-package.texi Merge from origin/emacs-29 2023-06-17 05:02:55 -04:00
vhdl-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vip.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
viper.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vtable.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
widget.texi ; Fix copy-paste in Widget Manual (Bug#64610) 2023-07-14 14:54:24 +03:00
wisent.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
woman.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00