branch: externals/ement
commit 2e6bb2e4e12e4e18d07b22fc07200a0717d2b98b
Author: Adam Porter <[email protected]>
Commit: Adam Porter <[email protected]>

    Change: (ement-room-list-avatar-generation) Rename option
---
 README.org         | 2 +-
 ement-room-list.el | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.org b/README.org
index de555fe2ad..8e009bea39 100644
--- a/README.org
+++ b/README.org
@@ -304,7 +304,7 @@ Ement.el doesn't support encrypted rooms natively, but it 
can be used transparen
 + Command ~ement-room-download-file~, which downloads the file in the event at 
point (for image, audio, video, and file messages).  
([[https://github.com/alphapapa/ement.el/pull/323][#323]].  Thanks to 
[[https://github.com/viiru-][Arto Jantunen]].)
 + Customization groups for faces.  (Thanks to 
[[https://github.com/phil-s][Phil Sainty]].)
 + Option ~ement-room-hide-redacted-message-content~, which hides the content 
of redacted messages by default.  It may be disabled to keep redacted content 
visible with a strikethrough face, which may be useful for room moderators, but 
users should keep in mind that doing so will leave unpleasant content visible 
in the current session, even after being redacted by moderators.
-+ Option ~ement-room-list-avatars-generation~: if disabled, SVG-based room 
avatars are not generated.  This option automatically tests whether SVG support 
is available in Emacs, and should allow use with builds of Emacs that lack 
=librsvg= support. 
++ Option ~ement-room-list-avatar-generation~: if disabled, SVG-based room 
avatars are not generated.  This option automatically tests whether SVG support 
is available in Emacs, and should allow use with builds of Emacs that lack 
=librsvg= support. 
 
 *Changes*
 
diff --git a/ement-room-list.el b/ement-room-list.el
index d567fc1ac8..82115fd2fd 100644
--- a/ement-room-list.el
+++ b/ement-room-list.el
@@ -140,7 +140,7 @@ Set automatically when `ement-room-list-mode' is 
activated.")
   "Show room avatars in the room list."
   :type 'boolean)
 
-(defcustom ement-room-list-avatars-generation (image-type-available-p 'svg)
+(defcustom ement-room-list-avatar-generation (image-type-available-p 'svg)
   "Generate SVG-based avatars for rooms that have none."
   :type 'boolean)
 
@@ -421,7 +421,7 @@ from recent to non-recent for rooms updated in the past 
hour."
                                    (ement--resize-image (get-text-property 0 
'display avatar)
                                                         nil 
(frame-char-height)))
                      ;; Room has no avatar.
-                     (if ement-room-list-avatars-generation
+                     (if ement-room-list-avatar-generation
                          (let* ((string (or display-name 
(ement--room-display-name room)))
                                 (ement-room-prism-minimum-contrast 1)
                                 (color (ement--prism-color string 
:contrast-with "white")))

Reply via email to