aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-06 20:09:54 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-06 20:10:19 -0200
commit79dd8ab7ea1c6e54fe2ad7e88b13a7990e2ec5be (patch)
treedc8e33bf27e9a54e19da260dc29e7ae73fd03ef2
parent1874b560599f5937c7f9301057a18665a3840150 (diff)
Don't assume .display_name exists. Fix #209
-rw-r--r--sx-question-print.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index e148d5f..e2db76f 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -276,7 +276,7 @@ DATA can represent a question or an answer."
(defun sx-question-mode--propertize-display-name (author)
"Return display_name of AUTHOR with `sx-question-mode-author' face."
(sx-assoc-let author
- (propertize .display_name
+ (propertize (or .display_name "??")
'face 'sx-question-mode-author)))
(defun sx-question-mode--print-comment (comment-data)