emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ement 63aab1943f 2/8: Fix: (ement-describe-room) Nil to


From: ELPA Syncer
Subject: [elpa] externals/ement 63aab1943f 2/8: Fix: (ement-describe-room) Nil topics
Date: Fri, 23 Sep 2022 14:57:37 -0400 (EDT)

branch: externals/ement
commit 63aab1943f73cb9152ac80dd7d6841c8f8406428
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Fix: (ement-describe-room) Nil topics
---
 README.org   | 3 +++
 ement-lib.el | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index 7861e1a818..834fedba56 100644
--- a/README.org
+++ b/README.org
@@ -287,6 +287,9 @@ Note that, while ~matrix-client~ remains usable, and 
probably will for some time
 + Command ~ement-directory~ shows a server's room directory.
 + Command ~ement-directory-search~ searches a server's room directory.
 
+*Fixes*
++ Command ~ement-describe-room~ for rooms without topics.
+
 ** 0.2.1
 
 *Fixes*
diff --git a/ement-lib.el b/ement-lib.el
index 2818ec7991..78b2f93f62 100644
--- a/ement-lib.el
+++ b/ement-lib.el
@@ -230,7 +230,7 @@ members, show in a new buffer; otherwise show in echo area."
                       (heading "Avatar: ") (or avatar "") "\n\n"
                       (heading "ID: ") "<" (id room-id) ">" "\n"
                       (heading "Alias: ") "<" (id canonical-alias) ">" "\n\n"
-                      (heading "Topic: ") (propertize topic 'face 
'font-lock-comment-face) "\n\n"
+                      (heading "Topic: ") (propertize (or topic "[none]") 
'face 'font-lock-comment-face) "\n\n"
                       (heading "Retrieved events: ") (number-to-string (length 
timeline)) "\n"
                       (heading "  spanning: ")
                       (format-time-string "%Y-%m-%d %H:%M:%S"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]