aboutsummaryrefslogtreecommitdiff
path: root/sx.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-15 06:46:38 -0500
committerSean Allred <code@seanallred.com>2014-11-15 06:46:38 -0500
commitec23bfbfe7509757686d2d6f07c30b4f26eb7973 (patch)
treedb29e6b08b42ed9fd8d08273c834ea099e8cc4d0 /sx.el
parent6733365df0eb86eff433a9c8f80b32832c426e53 (diff)
parent5c4f1fe790190d7a6760213d70135d998783bae5 (diff)
Merge pull request #56 from vermiculus/filling-and-fontlocking
Filling and fontlocking
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 33d3415..53aae84 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."