From 77c0fa3803d3f6827dd6287fdbee70405c7a146a Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Wed, 7 Jan 2015 14:21:49 -0200 Subject: Change deleted-user to fallback-user --- sx-question-print.el | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'sx-question-print.el') 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 -- cgit v1.2.3