From 314ab24db68f4e24223fa90b06c5e9f3a598df15 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Tue, 8 Apr 2025 21:58:54 +0200 Subject: [PATCH] Fix ElDoc in minibuffer --- lisp/progmodes/elisp-mode.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index a0f86554694..1b0f0f10263 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -2252,6 +2252,8 @@ ARGS is the argument list of function SYM." ;; If we are at the beginning of function name, this will be -1. (when (< argument-index 0) (setq argument-index 0)) + (unless (derived-mode-p 'emacs-lisp-mode) + (throw 'ball (list (elisp--current-symbol) argument-index))) (if (memq (get-text-property (point) 'face) '(elisp-special-form elisp-macro-call elisp-function-call)) (throw 'ball (list (elisp--current-symbol) argument-index)) -- 2.39.5