]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: re-rename eglot-upgrade to eglot-upgrade-eglot
authorJoão Távora <joaotavora@gmail.com>
Fri, 5 May 2023 13:51:09 +0000 (14:51 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 5 May 2023 13:58:17 +0000 (14:58 +0100)
* 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.

doc/misc/eglot.texi
etc/EGLOT-NEWS
lisp/progmodes/eglot.el

index 8ac14372e365b1345622a36244ce0ab5b34c369d..962e6c914ce2156e4a4c2201f2b117a566364f05 100644 (file)
@@ -1307,8 +1307,8 @@ Eglot, use @kbd{M-x package-install}.
 Often, a newer Eglot version exists that has fixed a longstanding bug,
 has more LSP features, or just better supports a particular language
 server.  Recent Eglot versions can self-update via the command
-@kbd{M-x eglot-upgrade}.  This will replace any currently installed
-version with the newest one available from the ELPA archives
+@kbd{M-x eglot-upgrade-eglot}.  This will replace any currently
+installed version with the newest one available from the ELPA archives
 configured in @code{package-archives}.
 
 You can also update Eglot through other methods, such as
index d2d84c5ff9e84c11da9ab96a876d6c1dd1392f44..fd0d9a245685de5d474961da581b4054d4a54fc7 100644 (file)
@@ -18,7 +18,14 @@ That is, to look up issue github#1234, go to
 https://github.com/joaotavora/eglot/issues/1234.
 
 \f
-* Changes in Eglot bundled with Emacs 29
+* Changes in Eglot 1.12.29 (Eglot bundled with Emacs 29.1)
+
+** Eglot can upgrade itself to the latest version.
+
+The new command 'eglot-upgrade-eglot' works around behaviour in the
+existing 'package-install' command and the new 'package-upgrade'
+command which would prevent the user from easily grabbing the latest
+version as usual.
 
 ** LSP inlay hints are now supported.
 Inlay hints are small text annotations not unlike diagnostics, but
index 6d1d010eb9a55fd0f5e2d1d4beff9fc728f90b61..df8f5f64829fedc3e5a9aad87bf142a9bb43c4e7 100644 (file)
@@ -1967,7 +1967,7 @@ If it is activated, also signal textDocument/didOpen."
        (interactive) (info "(eglot)"))
 
 ;;;###autoload
-(defun eglot-upgrade (&rest _) "Update Eglot."
+(defun eglot-upgrade-eglot (&rest _) "Update Eglot to latest version."
   (interactive)
   (with-no-warnings
     (require 'package)
@@ -1976,6 +1976,9 @@ If it is activated, also signal textDocument/didOpen."
       (package-delete existing t))
     (package-install (cadr (assoc 'eglot package-archive-contents)))))
 
+;;;###autoload
+(define-obsolete-function-alias 'eglot-update 'eglot-upgrade-eglot "29.1")
+
 (easy-menu-define eglot-menu nil "Eglot"
   `("Eglot"
     ;; Commands for getting information and customization.