aboutsummaryrefslogtreecommitdiff
path: root/sx.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-21 15:29:53 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-21 16:45:16 -0200
commit0b8a09dadb3f90303e7c77ac0e644bc393c00700 (patch)
treeaeddf664e9e8861c889fe71345087b423aba1f08 /sx.el
parent4788ac7655a93fbcc423feaf60eb1e887b2f41c2 (diff)
Don't print deleted posts.
Diffstat (limited to 'sx.el')
-rw-r--r--sx.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/sx.el b/sx.el
index 33b36b6..9ad9744 100644
--- a/sx.el
+++ b/sx.el
@@ -335,6 +335,10 @@ GET-FUNC and performs the actual comparison."
"Return STRING with consecutive whitespace squashed together."
(replace-regexp-in-string "[ \r\n]+" " " string))
+(defun sx--deleted-p (data)
+ "Return non-nil if DATA represents a deleted object."
+ (eq (car data) 'deleted))
+
;;; Printing request data
(defvar sx--overlays nil