diff options
author | Sean Allred <code@seanallred.com> | 2014-11-25 21:55:46 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-25 21:55:46 -0500 |
commit | 07a1456fe7a91d1589f689d40ac4391f35e695b9 (patch) | |
tree | 1c79f7808dc280e29ca2ca93dc57792ba8286d4f /sx.el | |
parent | 56c95d4670f97c66e9cfcf52b6209f954a284b21 (diff) | |
parent | 977182943de4e3824a9178f3f3c114648b227265 (diff) |
Merge pull request #95 from vermiculus/commenting
Commenting
Diffstat (limited to 'sx.el')
-rw-r--r-- | sx.el | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -56,6 +56,7 @@ question.link question.upvoted question.downvoted + question.question_id user.display_name comment.owner comment.body_markdown @@ -65,6 +66,10 @@ comment.creation_date comment.upvoted comment.score + comment.post_type + comment.post_id + comment.comment_id + answer.answer_id answer.last_editor answer.link answer.owner @@ -193,6 +198,13 @@ Return the result of BODY." (add-text-properties p (point) ,properties) result)) +(defun sx--user-@name (user) + "Get the `display_name' of USER prepended with @." + (sx-assoc-let user + (when (stringp .display_name) + (concat "@" .display_name)))) + + ;;; Assoc-let (defun sx--site (data) "Get the site in which DATA belongs. |