GNU bug report logs -
#16920
24.3; fix eldoc-message to clear own message only
Previous Next
Reported by: Leo Liu <sdl.web <at> gmail.com>
Date: Sun, 2 Mar 2014 07:19:02 UTC
Severity: minor
Found in version 24.3
Done: Leo Liu <sdl.web <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
I would like to fix eldoc-message for the upcoming release. Now that
eldoc can be used in the minibuffer there is one issue that can be
really annoying.
1. M-x eval-expression
2. type in (+ 1 1 |) ; | is the cursor
3. quickly pressing SPC repeatedly and then RET
The value 2 is shown and then cleared by eldoc (when eldoc-idle-delay is
short enough one may not see the value at all). The proposed fix is in
the following patch. Comments or objections?
=== modified file 'lisp/emacs-lisp/eldoc.el'
--- lisp/emacs-lisp/eldoc.el 2014-01-30 07:54:28 +0000
+++ lisp/emacs-lisp/eldoc.el 2014-03-02 07:14:45 +0000
@@ -255,7 +255,8 @@
(let ((message-log-max nil))
(cond (eldoc-last-message
(funcall eldoc-message-function "%s" eldoc-last-message))
- (omessage (funcall eldoc-message-function nil)))))
+ (omessage (and (equal omessage (current-message))
+ (funcall eldoc-message-function nil))))))
eldoc-last-message)
(defun eldoc--message-command-p (command)
This bug report was last modified 11 years and 132 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.