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

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

[elpa] externals-release/ement 42a4789b0b 01/10: Tidy: Use custom docstr


From: ELPA Syncer
Subject: [elpa] externals-release/ement 42a4789b0b 01/10: Tidy: Use custom docstring for `ement-room-mode-hook'
Date: Tue, 16 Apr 2024 12:58:10 -0400 (EDT)

branch: externals-release/ement
commit 42a4789b0b189b2fa291c085594d549a2ac9b4f9
Author: Phil Sainty <phil@catalyst.net.nz>
Commit: Phil Sainty <phil@catalyst.net.nz>

    Tidy: Use custom docstring for `ement-room-mode-hook'
    
    There are mode line constructs in the mode-name for `ement-room-mode',
    so this change works around Emacs bug#68600.
    
    Also declare `visual-line-mode' value in the :options list, as that
    value is added to this hook as standard.
---
 ement-room.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/ement-room.el b/ement-room.el
index 6f773225ef..f31969a2a0 100644
--- a/ement-room.el
+++ b/ement-room.el
@@ -2089,6 +2089,14 @@ the previously oldest event."
       ;; We don't really care about the response, I think.
       :then #'ignore)))
 
+;; Due to Emacs bug#68600, define the mode hook separately to avoid the mode
+;; line constructs in the `ement-room-mode' mode name being copied verbatim
+;; into the auto-generated docstring.
+(defcustom ement-room-mode-hook nil
+  "Hook run after entering `ement-room-mode'."
+  :options '(visual-line-mode)
+  :type 'hook)
+
 (define-derived-mode ement-room-mode fundamental-mode
   `("Ement-Room"
     (:eval (unless (map-elt ement-syncs ement-session)



reply via email to

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