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

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

[elpa] externals/ement cb95f5e0e8 5/6: Fix: (ement-room-init-compose-buf


From: ELPA Syncer
Subject: [elpa] externals/ement cb95f5e0e8 5/6: Fix: (ement-room-init-compose-buffer) Enable member/room completion
Date: Sun, 14 May 2023 00:58:06 -0400 (EDT)

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

    Fix: (ement-room-init-compose-buffer) Enable member/room completion
    
    Fixes #115.  Thanks to Justus Piater (@piater) and Caleb
    Chase (@chasecaleb) for reporting.
---
 README.org    | 1 +
 ement-room.el | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/README.org b/README.org
index 6f1835c093..cf1c411507 100644
--- a/README.org
+++ b/README.org
@@ -313,6 +313,7 @@ Note that, while ~matrix-client~ remains usable, and 
probably will for some time
 + Recognition of certain MXID or displayname forms in outgoing messages when 
linkifying (aka "pilling") them.
 + Unreadable room avatar images no longer cause errors.  (Fixes 
[[https://github.com/alphapapa/ement.el/issues/147][#147]].  Thanks to 
[[https://github.com/jgarte][@jgarte]] for reporting.)
 + Don't error in ~ement-room-list~ when no rooms are joined.  (Fixes 
[[https://github.com/alphapapa/ement.el/issues/123][#123]].  Thanks to 
[[https://github.com/Kabouik][@Kabouik]] and 
[[https://github.com/oantolin][Omar AntolĂ­n Camarena]] for reporting.)
++ Enable member/room completion in compose buffers.  (Fixes 
[[https://github.com/alphapapa/ement.el/issues/115][#115]].  Thanks to Thanks 
to [[https://github.com/piater][Justus Piater]] and 
[[https://github.com/chasecaleb][Caleb Chase]] for reporting.)
 
 ** 0.8.3
 
diff --git a/ement-room.el b/ement-room.el
index 5dbbbcd099..2436167c86 100644
--- a/ement-room.el
+++ b/ement-room.el
@@ -3660,6 +3660,9 @@ a copy of the local keymap, and sets 
`header-line-format'."
   (setq-local ement-room room)
   (setq-local ement-session session)
   (setf ement-room-compose-buffer t)
+  (setq-local completion-at-point-functions
+              (append '(ement-room--complete-members-at-point 
ement-room--complete-rooms-at-point)
+                      completion-at-point-functions))
   ;; FIXME: Compose with local map?
   (use-local-map (if (current-local-map)
                      (copy-keymap (current-local-map))



reply via email to

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