diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-01 10:30:08 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-01 10:30:08 +0000 |
commit | 39f2ae05597edd902610764b9b402111d33a8fe7 (patch) | |
tree | fae6ec6be775b85f1858e3845b490bf8d894742e /sx-question-print.el | |
parent | 6f87989747e066e7949c4fb2b72b768428e09346 (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-question-print.el')
-rw-r--r-- | sx-question-print.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sx-question-print.el b/sx-question-print.el index f49346b..45124c4 100644 --- a/sx-question-print.el +++ b/sx-question-print.el @@ -185,7 +185,7 @@ QUESTION must be a data structure returned by `json-read'." DATA can represent a question or an answer." ;; This makes `data' accessible through `sx--data-here'. (sx-assoc-let data - (sx--wrap-in-text-property + (sx--wrap-in-overlay (list 'sx--data-here data) (insert sx-question-mode-header-title) (insert-text-button @@ -270,7 +270,7 @@ DATA can represent a question or an answer." "Print the comment described by alist COMMENT-DATA. The comment is indented, filled, and then printed according to `sx-question-mode-comments-format'." - (sx--wrap-in-text-property + (sx--wrap-in-overlay (list 'sx--data-here comment-data) (sx-assoc-let comment-data (insert |