aboutsummaryrefslogtreecommitdiff
path: root/sx-tag.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-15 22:31:08 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-15 22:31:08 -0200
commit33746908e639e53320fe1412ae01b01854a98605 (patch)
tree113fb25b9a604c138d75400bcb8bde42420fc400 /sx-tag.el
parentfaddde5ff2c4f41c4844ee4ae88819dcfab5d8c8 (diff)
Define sx-tag--insert
Diffstat (limited to 'sx-tag.el')
-rw-r--r--sx-tag.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/sx-tag.el b/sx-tag.el
index d9e2877..009c8b1 100644
--- a/sx-tag.el
+++ b/sx-tag.el
@@ -142,14 +142,18 @@ tags."
;;; Printing
(defun sx-tag--format (tag)
- "Formats TAG for display."
+ "Format and return TAG for display."
(with-temp-buffer
- (insert-text-button (concat "[" tag "]")
- 'sx-button-copy tag
- 'sx-tag tag
- :type 'sx-button-tag)
+ (sx-tag--insert tag)
(buffer-string)))
+(defun sx-tag--insert (tag)
+ "Insert TAG button."
+ (insert-text-button (concat "[" tag "]")
+ 'sx-button-copy tag
+ 'sx-tag tag
+ :type 'sx-button-tag))
+
(provide 'sx-tag)
;;; sx-tag.el ends here