diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-15 22:31:08 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-15 22:31:08 -0200 |
commit | 33746908e639e53320fe1412ae01b01854a98605 (patch) | |
tree | 113fb25b9a604c138d75400bcb8bde42420fc400 /sx-tag.el | |
parent | faddde5ff2c4f41c4844ee4ae88819dcfab5d8c8 (diff) |
Define sx-tag--insert
Diffstat (limited to 'sx-tag.el')
-rw-r--r-- | sx-tag.el | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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 |