]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove unnecessary compatibility code
authorStefan Kangas <stefankangas@gmail.com>
Sat, 15 Jan 2022 23:12:05 +0000 (00:12 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 15 Jan 2022 23:12:36 +0000 (00:12 +0100)
* eglot.el (eglot-mode-map): Remove unnecessary compatibility
code.  We already depend on eldoc 0.11.0.

lisp/progmodes/eglot.el

index 72a0103c815c582fb046b86e17ce98c0a369e530..0cc317fa7a29bb4e788a37cbacbf5dcac226fb25 100644 (file)
@@ -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