aboutsummaryrefslogtreecommitdiff
path: root/sx.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-11-15 00:18:35 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-11-15 00:18:35 +0000
commit3565241b2afcf81741c631bfba45304815ce847f (patch)
treeb103a91db3a46fe20a6576ff0897f8092e71e153 /sx.el
parente0f0a3af45d5a264ab06bb709bd4c8a6f2da82ad (diff)
Several navigation improvements.
Diffstat (limited to 'sx.el')
-rw-r--r--sx.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/sx.el b/sx.el
index 7ed56d3..058230c 100644
--- a/sx.el
+++ b/sx.el
@@ -31,6 +31,11 @@
"Display a message"
(message "[stack] %s" (apply #'format format-string args)))
+(defun sx-message-help-echo ()
+ "If there's a 'help-echo property under point, message it."
+ (let ((echo (get-text-property (point) 'help-echo)))
+ (when echo (message "%s" echo))))
+
(defun sx--thing-as-string (thing &optional sequence-sep)
"Return a string representation of THING. If THING is already
a string, just return it."