aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-07 14:21:49 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-07 15:48:31 -0200
commit77c0fa3803d3f6827dd6287fdbee70405c7a146a (patch)
tree3a6a0b634bd230e61096f7afa472d2b69c145c60
parent2fed944ba8c3bbf85b4c9eb225ff8a785597521b (diff)
Change deleted-user to fallback-user
-rw-r--r--sx-question-print.el14
1 files changed, 10 insertions, 4 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index d2c5249..0bf5479 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -41,10 +41,16 @@
;;; Faces and Variables
-(defcustom sx-question-mode-deleted-user
- '((display_name . "(deleted user)"))
+(defconst sx-question-mode-fallback-user
+ '((display_name . "(unknown user)")
+ (link . "")
+ (reputation . -1)
+ (accept_rate . -1))
"The structure used to represent a deleted account."
- :type '(alist :options ((display_name string)))
+ :type '(alist :options ((display_name string)
+ (link string)
+ (reputation integer)
+ (accept_rate integer)))
:group 'sx-question-mode)
(defface sx-question-mode-header
@@ -217,7 +223,7 @@ DATA can represent a question or an answer."
(format sx-question-mode-last-edit-format
(sx-time-since .last_edit_date)
(sx-question-mode--propertize-display-name
- (or .last_editor sx-question-mode-deleted-user)))))
+ (or .last_editor sx-question-mode-fallback-user)))))
'sx-question-mode-date)
(sx-question-mode--insert-header
sx-question-mode-header-score