From: Stephen Leake Date: Tue, 22 Nov 2022 19:43:22 +0000 (-0800) Subject: * lisp/progmodes/eglot.el (eglot--connect): Use project-name X-Git-Tag: emacs-29.0.90~1589 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f39da3098a2a4cec9985e6db934ed14b7b522b7;p=emacs.git * lisp/progmodes/eglot.el (eglot--connect): Use project-name As discussed in bug#48747. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index bbd902c1c7d..e057b12e0ee 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1181,7 +1181,9 @@ 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 (file-name-base (directory-file-name default-directory))) + (nickname (if (fboundp 'project-name) + (project-name project) + (file-name-base (directory-file-name default-directory)))) (readable-name (format "EGLOT (%s/%s)" nickname managed-modes)) autostart-inferior-process server-info