aboutsummaryrefslogtreecommitdiff
path: root/hcel-utils.el
diff options
context:
space:
mode:
Diffstat (limited to 'hcel-utils.el')
-rw-r--r--hcel-utils.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/hcel-utils.el b/hcel-utils.el
index 18e1062..e5a82e7 100644
--- a/hcel-utils.el
+++ b/hcel-utils.el
@@ -166,4 +166,9 @@ Example of an idSrcSpan:
(shr-render-region (point-min) (point-max))
(buffer-string))))
+(defun hcel-text-property-near-point (prop)
+ "Find property prop at point, or just before point."
+ (or (get-text-property (point) prop)
+ (get-text-property (1- (point)) prop)))
+
(provide 'hcel-utils)