From 31549b4e5a9e67180ad6a0d0b8b61e17274b54a2 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Wed, 26 Nov 2014 14:58:50 -0500 Subject: Use customizable deleted-user structure --- sx-question-mode.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sx-question-mode.el') diff --git a/sx-question-mode.el b/sx-question-mode.el index 947c35d..a80704c 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -103,6 +103,13 @@ If WINDOW is given, use that to display the buffer." "Face used on the question title in the question buffer." :group 'sx-question-mode-faces) +(defcustom sx-question-mode-deleted-user + '((display_name . "(deleted user)")) + "The structure used to represent a deleted account." + :type '(alist :options (display_name)) + :risky t + :group 'sx-question-mode) + (defcustom sx-question-mode-header-title "\n" "String used before the question title at the header." :type 'string @@ -272,7 +279,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 - (if .last_editor .last_editor .owner))))) + (or .last_editor sx-question-mode-deleted-user))))) 'sx-question-mode-date) (sx-question-mode--insert-header sx-question-mode-header-score -- cgit v1.2.3