aboutsummaryrefslogtreecommitdiff
path: root/sx-question-print.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-06 19:13:52 -0500
committerSean Allred <code@seanallred.com>2015-01-06 19:13:52 -0500
commit5a06503d4ea19075fce281924abd585d1f20dddc (patch)
tree8e8584b04d99b0b2821506e4b12d5f105d136c56 /sx-question-print.el
parent402c2422c3150a192b0da097fb1b14a29a505204 (diff)
parent79dd8ab7ea1c6e54fe2ad7e88b13a7990e2ec5be (diff)
Merge pull request #211 from vermiculus/issue-209-displaying-own-comment
Don't assume .display_name exists. Fix #209
Diffstat (limited to 'sx-question-print.el')
-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)