aboutsummaryrefslogtreecommitdiff
path: root/sx-interaction.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-01 10:30:08 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-01 10:30:08 +0000
commit39f2ae05597edd902610764b9b402111d33a8fe7 (patch)
treefae6ec6be775b85f1858e3845b490bf8d894742e /sx-interaction.el
parent6f87989747e066e7949c4fb2b72b768428e09346 (diff)
question-mod now uses overlays to store the sx--data-here property
This lets us stack one inside each other (comments inside questions) without overwriting them.
Diffstat (limited to 'sx-interaction.el')
-rw-r--r--sx-interaction.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/sx-interaction.el b/sx-interaction.el
index 92b062b..b6113a2 100644
--- a/sx-interaction.el
+++ b/sx-interaction.el
@@ -31,11 +31,11 @@
;;; Using data in buffer
(defun sx--data-here ()
"Get the text property `sx--data-here'."
- (or (get-text-property (point) 'sx--data-here)
+ (or (get-pos-property (point) 'sx--data-here)
(and (derived-mode-p 'sx-question-list-mode)
(tabulated-list-get-id))
- (or (derived-mode-p 'sx-question-mode)
- sx-question-mode--data)))
+ (and (derived-mode-p 'sx-question-mode)
+ sx-question-mode--data)))
(defun sx--maybe-update-display ()
"Refresh the question list if we're inside it."