]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove fboundp check in eglot--connect
authorJoão Távora <joaotavora@gmail.com>
Thu, 24 Nov 2022 14:48:35 +0000 (14:48 +0000)
committerJoão Távora <jatav@vestas.com>
Thu, 24 Nov 2022 15:24:10 +0000 (15:24 +0000)
project.el is a GNU ELPA :core package, so this kind of trick isn't
needed.

* lisp/progmodes/eglot.el (eglot--connect): Don't fboundp
project-name.

lisp/progmodes/eglot.el

index 94f718c865d54d3193933d1b91fe50e4dc8b9f50..d05b5ee33566b2c880efce602ceb2c0da20ada70 100644 (file)
@@ -1185,9 +1185,7 @@ Each function is passed the server as an argument")
   "Connect to MANAGED-MODES, LANGUAGE-ID, PROJECT, CLASS and CONTACT.
 This docstring appeases checkdoc, that's all."
   (let* ((default-directory (project-root project))
-         (nickname (if (fboundp 'project-name)
-                       (project-name project)
-                     (file-name-base (directory-file-name default-directory))))
+         (nickname (project-name project))
          (readable-name (format "EGLOT (%s/%s)" nickname managed-modes))
          autostart-inferior-process
          server-info