emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/eglot2emacs abfb193201 032/120: Remove unnecessary compatibility


From: João Távora
Subject: feature/eglot2emacs abfb193201 032/120: Remove unnecessary compatibility code
Date: Thu, 20 Oct 2022 07:16:47 -0400 (EDT)

branch: feature/eglot2emacs
commit abfb193201dd064c99a8c869434ffaacc4e0f66b
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Remove unnecessary compatibility code
    
    * eglot.el (eglot-mode-map): Remove unnecessary compatibility
    code.  We already depend on eldoc 0.11.0.
---
 lisp/progmodes/eglot.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 72a0103c81..0cc317fa7a 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1519,8 +1519,7 @@ and just return it.  PROMPT shouldn't end with a question 
mark."
 ;;;
 (defvar eglot-mode-map
   (let ((map (make-sparse-keymap)))
-    (when (fboundp 'eldoc-doc-buffer) ; Emacs 28.1 or later
-      (define-key map [remap display-local-help] #'eldoc-doc-buffer))
+    (define-key map [remap display-local-help] #'eldoc-doc-buffer)
     map))
 
 (defvar-local eglot--current-flymake-report-fn nil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]