From: Stefan Kangas Date: Sat, 15 Jan 2022 23:12:05 +0000 (+0100) Subject: Remove unnecessary compatibility code X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~86 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=abfb193201dd064c99a8c869434ffaacc4e0f66b;p=emacs.git Remove unnecessary compatibility code * eglot.el (eglot-mode-map): Remove unnecessary compatibility code. We already depend on eldoc 0.11.0. --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 72a0103c815..0cc317fa7a2 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