aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Távora2023-05-05 14:51:09 +0100
committerJoão Távora2023-05-05 14:58:17 +0100
commitc0ab4e9ca9326c472ff1d9d01a0e3966f20fda27 (patch)
tree936a9677cde6787754d5fad15f6089363ab420bf
parentb4e90070f965316ba647dde7a5d37821e4f4c793 (diff)
downloademacs-c0ab4e9ca9326c472ff1d9d01a0e3966f20fda27.tar.gz
emacs-c0ab4e9ca9326c472ff1d9d01a0e3966f20fda27.zip
Eglot: re-rename eglot-upgrade to eglot-upgrade-eglot
* doc/misc/eglot.texi (Getting the latest version): Mention eglot-upgrade-eglot. * etc/EGLOT-NEWS: Mention eglot-upgrade-eglot. * lisp/progmodes/eglot.el (eglot-upgrade-eglot): Rename from eglot-update. (eglot-update): New compatibility alias.
-rw-r--r--doc/misc/eglot.texi4
-rw-r--r--etc/EGLOT-NEWS9
-rw-r--r--lisp/progmodes/eglot.el5
3 files changed, 14 insertions, 4 deletions
diff --git a/doc/misc/eglot.texi b/doc/misc/eglot.texi
index 8ac14372e36..962e6c914ce 100644
--- a/doc/misc/eglot.texi
+++ b/doc/misc/eglot.texi
@@ -1307,8 +1307,8 @@ Eglot, use @kbd{M-x package-install}.
1307Often, a newer Eglot version exists that has fixed a longstanding bug, 1307Often, a newer Eglot version exists that has fixed a longstanding bug,
1308has more LSP features, or just better supports a particular language 1308has more LSP features, or just better supports a particular language
1309server. Recent Eglot versions can self-update via the command 1309server. Recent Eglot versions can self-update via the command
1310@kbd{M-x eglot-upgrade}. This will replace any currently installed 1310@kbd{M-x eglot-upgrade-eglot}. This will replace any currently
1311version with the newest one available from the ELPA archives 1311installed version with the newest one available from the ELPA archives
1312configured in @code{package-archives}. 1312configured in @code{package-archives}.
1313 1313
1314You can also update Eglot through other methods, such as 1314You can also update Eglot through other methods, such as
diff --git a/etc/EGLOT-NEWS b/etc/EGLOT-NEWS
index d2d84c5ff9e..fd0d9a24568 100644
--- a/etc/EGLOT-NEWS
+++ b/etc/EGLOT-NEWS
@@ -18,7 +18,14 @@ That is, to look up issue github#1234, go to
18https://github.com/joaotavora/eglot/issues/1234. 18https://github.com/joaotavora/eglot/issues/1234.
19 19
20 20
21* Changes in Eglot bundled with Emacs 29 21* Changes in Eglot 1.12.29 (Eglot bundled with Emacs 29.1)
22
23** Eglot can upgrade itself to the latest version.
24
25The new command 'eglot-upgrade-eglot' works around behaviour in the
26existing 'package-install' command and the new 'package-upgrade'
27command which would prevent the user from easily grabbing the latest
28version as usual.
22 29
23** LSP inlay hints are now supported. 30** LSP inlay hints are now supported.
24Inlay hints are small text annotations not unlike diagnostics, but 31Inlay hints are small text annotations not unlike diagnostics, but
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 6d1d010eb9a..df8f5f64829 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1967,7 +1967,7 @@ If it is activated, also signal textDocument/didOpen."
1967 (interactive) (info "(eglot)")) 1967 (interactive) (info "(eglot)"))
1968 1968
1969;;;###autoload 1969;;;###autoload
1970(defun eglot-upgrade (&rest _) "Update Eglot." 1970(defun eglot-upgrade-eglot (&rest _) "Update Eglot to latest version."
1971 (interactive) 1971 (interactive)
1972 (with-no-warnings 1972 (with-no-warnings
1973 (require 'package) 1973 (require 'package)
@@ -1976,6 +1976,9 @@ If it is activated, also signal textDocument/didOpen."
1976 (package-delete existing t)) 1976 (package-delete existing t))
1977 (package-install (cadr (assoc 'eglot package-archive-contents))))) 1977 (package-install (cadr (assoc 'eglot package-archive-contents)))))
1978 1978
1979;;;###autoload
1980(define-obsolete-function-alias 'eglot-update 'eglot-upgrade-eglot "29.1")
1981
1979(easy-menu-define eglot-menu nil "Eglot" 1982(easy-menu-define eglot-menu nil "Eglot"
1980 `("Eglot" 1983 `("Eglot"
1981 ;; Commands for getting information and customization. 1984 ;; Commands for getting information and customization.