aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-01 11:14:00 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-01 11:14:00 +0000
commit7d6110a64c3b9e6d95a2976b8423ab26fe312b2c (patch)
treee325c92502bf83180ce7321cf904b97ff3456445
parentf5ca9c6d7629817569c3bd58e5569fee88cd5f2b (diff)
Reimplement deleted-user
-rw-r--r--sx-question-print.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index 0959f36..3200ead 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -43,6 +43,11 @@
;;; Faces and Variables
+(defcustom sx-question-mode-deleted-user
+ '((display_name . "(deleted user)"))
+ "The structure used to represent a deleted account."
+ :type '(alist :options ((display_name string)))
+ :group 'sx-question-mode)
(defface sx-question-mode-header
'((t :inherit font-lock-variable-name-face))
@@ -227,7 +232,8 @@ DATA can represent a question or an answer."
(when .last_edit_date
(format sx-question-mode-last-edit-format
(sx-time-since .last_edit_date)
- (sx-question-mode--propertize-display-name .last_editor))))
+ (sx-question-mode--propertize-display-name
+ (or .last_editor sx-question-mode-deleted-user)))))
'sx-question-mode-date)
(sx-question-mode--insert-header
sx-question-mode-header-score