Looks like the fixes will be needed in major modes?
For instance, by adding the following debug statement in elisp--highlight-function-argument function in elisp-mode.el,
=====
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index f360791..16365dd 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1481,6 +1481,7 @@ elisp--highlight-function-argument
(setq doc (copy-sequence args))
(add-text-properties start end (list 'face argument-face) doc))
(setq doc (eldoc-docstring-format-sym-doc prefix doc))
+ (message "debug: doc = %S" doc)
doc)))
;; Return a string containing a brief (one-line) documentation string for
=====
I get the below when the cursor is after a defun:
debug: doc = #("defun: (NAME ARGLIST &optional DOCSTRING DECL &rest BODY)" 0 5 (face font-lock-keyword-face))
I get the same debug output in both emacs-25 and master builds. So I am wondering if this doc output needs to be adjusted to the change in the format function then ..
Also, I can see if debug of incorrect face display in both mode-line (when I am using the minibuffer to eval stuff using M-: binding) and echo area.