Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
86f0d417
Commit
86f0d417
authored
Mar 31, 2005
by
Kim F. Storm
Browse files
(tooltip-show-help-function): Don't fixup message here.
parent
5dbda518
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
lisp/tooltip.el
lisp/tooltip.el
+1
-21
No files found.
lisp/tooltip.el
View file @
86f0d417
...
@@ -469,27 +469,7 @@ This function must return nil if it doesn't handle EVENT."
...
@@ -469,27 +469,7 @@ This function must return nil if it doesn't handle EVENT."
(defun tooltip-show-help-function (msg)
(defun tooltip-show-help-function (msg)
"Function installed as `show-help-function'.
"Function installed as `show-help-function'.
MSG is either a help string to display, or nil to cancel the display."
MSG is either a help string to display, or nil to cancel the display."
(
let
((
previous-help
tooltip-help-message
)
(let ((previous-help tooltip-help-message))
mp
pos
)
(
if
(
and
mouse-1-click-follows-link
(
stringp
msg
)
(
save-match-data
(
string-match
"^mouse-2"
msg
))
(
setq
mp
(
mouse-pixel-position
))
(
consp
(
setq
pos
(
cdr
mp
)))
(
car
pos
)
(
>=
(
car
pos
)
0
)
(
cdr
pos
)
(
>=
(
cdr
pos
)
0
)
(
setq
pos
(
posn-at-x-y
(
car
pos
)
(
cdr
pos
)
(
car
mp
)))
(
windowp
(
posn-window
pos
)))
(
with-current-buffer
(
window-buffer
(
posn-window
pos
))
(
if
(
mouse-on-link-p
pos
)
(
setq
msg
(
concat
(
cond
((
eq
mouse-1-click-follows-link
'double
)
"double-"
)
((
and
(
integerp
mouse-1-click-follows-link
)
(
<
mouse-1-click-follows-link
0
))
"Long "
)
(
t
""
))
"mouse-1"
(
substring
msg
7
))))))
(setq tooltip-help-message msg)
(setq tooltip-help-message msg)
(cond ((null msg)
(cond ((null msg)
;; Cancel display. This also cancels a delayed tip, if
;; Cancel display. This also cancels a delayed tip, if
...
...
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