]> git.eshelyaron.com Git - emacs.git/commitdiff
; Avoid byte-compiler warning in eglot.el
authorEli Zaretskii <eliz@gnu.org>
Mon, 16 Jan 2023 14:52:48 +0000 (16:52 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 16 Jan 2023 14:52:48 +0000 (16:52 +0200)
* lisp/progmodes/eglot.el (eglot): Rename INTERACTIVE to avoid
byte-compiler warning.  Update the doc string.  (Bug#60557)

lisp/progmodes/eglot.el

index 10512633181c5c0dc5e0637b2acfa895a4fe91c0..dc73152f5abc41e4feda2614e11df3ef923c8a72 100644 (file)
@@ -1075,7 +1075,7 @@ suitable root directory for a given LSP server's purposes."
 
 ;;;###autoload
 (defun eglot (managed-major-mode project class contact language-id
-                                 &optional interactive)
+                                 &optional _interactive)
   "Start LSP server in support of PROJECT's buffers under MANAGED-MAJOR-MODE.
 
 This starts a Language Server Protocol (LSP) server suitable for the
@@ -1112,7 +1112,7 @@ described in `eglot-server-programs', which see.
 LANGUAGE-ID is the language ID string to send to the server for
 MANAGED-MAJOR-MODE, which matters to a minority of servers.
 
-INTERACTIVE is t if called interactively."
+INTERACTIVE is ignored and provided for backward compatibility."
   (interactive
    (let ((current-server (eglot-current-server)))
      (unless (or (null current-server)