Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
707731ee
Commit
707731ee
authored
Apr 06, 2009
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tooltip.el (tooltip-show-help-non-mode): Don't save the last
message if it was also a help message (Bug#2895).
parent
d7ca410a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/tooltip.el
lisp/tooltip.el
+9
-6
No files found.
lisp/ChangeLog
View file @
707731ee
2009-04-06 Chong Yidong <cyd@stupidchicken.com>
* tooltip.el (tooltip-show-help-non-mode): Don't save the last
message if it was also a help message (Bug#2895).
2009-04-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
* textmodes/bibtex.el (bibtex-format-entry)
...
...
lisp/tooltip.el
View file @
707731ee
...
...
@@ -319,7 +319,9 @@ the buffer of PROCESS."
;;; Tooltip help.
(
defvar
tooltip-help-message
nil
"The last help message received via `tooltip-show-help'."
)
"The last help message received via `show-help-function'.
This is used by `tooltip-show-help' and
`tooltip-show-help-non-mode'."
)
(
defvar
tooltip-previous-message
nil
"The previous content of the echo area."
)
...
...
@@ -327,16 +329,17 @@ the buffer of PROCESS."
(
defun
tooltip-show-help-non-mode
(
help
)
"Function installed as `show-help-function' when tooltip is off."
(
when
(
and
(
not
(
window-minibuffer-p
))
;Don't overwrite minibuffer contents.
;; Don't know how to reproduce it in Elisp:
;; Don't overwrite a keystroke echo.
;; (NILP (echo_message_buffer) || ok_to_overwrite_keystroke_echo)
(
not
cursor-in-echo-area
))
;Don't overwrite a prompt.
(
not
cursor-in-echo-area
))
;Don't overwrite a prompt.
(
cond
((
stringp
help
)
(
setq
help
(
replace-regexp-in-string
"\n"
", "
help
))
(
unless
(
or
tooltip-previous-message
(
string-equal
help
(
current-message
)))
(
string-equal
help
(
current-message
))
(
and
(
stringp
tooltip-help-message
)
(
string-equal
tooltip-help-message
(
current-message
))))
(
setq
tooltip-previous-message
(
current-message
)))
(
setq
tooltip-help-message
help
)
(
let
((
message-truncate-lines
t
)
(
message-log-max
nil
))
(
message
"%s"
help
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment