diff --git a/doc/misc/eglot.texi b/doc/misc/eglot.texi index 542a4259d66..8ac14372e36 100644 --- a/doc/misc/eglot.texi +++ b/doc/misc/eglot.texi @@ -1307,7 +1307,7 @@ 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-update}. This will replace any currently installed +@kbd{M-x eglot-upgrade}. This will replace any currently installed version with the newest one available from the ELPA archives configured in @code{package-archives}. diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index f005c4858e7..6d1d010eb9a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1967,7 +1967,7 @@ If it is activated, also signal textDocument/didOpen." (interactive) (info "(eglot)")) ;;;###autoload -(defun eglot-update (&rest _) "Update Eglot." +(defun eglot-upgrade (&rest _) "Update Eglot." (interactive) (with-no-warnings (require 'package)