[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ement eb73bf2775: Fix: (ement--event-mentions-room-p) R
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ement eb73bf2775: Fix: (ement--event-mentions-room-p) Regexp |
Date: |
Fri, 7 Oct 2022 17:57:47 -0400 (EDT) |
branch: externals/ement
commit eb73bf27750e14d0ce0f9d7c6c4875955c7d9874
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Fix: (ement--event-mentions-room-p) Regexp
---
README.org | 1 +
ement-lib.el | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index 28da922b64..87503537b3 100644
--- a/README.org
+++ b/README.org
@@ -302,6 +302,7 @@ Note that, while ~matrix-client~ remains usable, and
probably will for some time
*Fixes*
+ Binding of command ~ement-forget-room~ in room buffers.
++ Highlighting of ~@room~ mentions.
** 0.3.1
diff --git a/ement-lib.el b/ement-lib.el
index a6fccec088..098b30de9c 100644
--- a/ement-lib.el
+++ b/ement-lib.el
@@ -922,7 +922,7 @@ period, anywhere in the body."
"Return non-nil if EVENT mentions \"@room\"."
(pcase-let (((cl-struct ement-event (content (map body))) event))
(when body
- (string-match-p (rx bow "@room" (or ":" (1+ blank))) body))))
+ (string-match-p (rx (or space bos) "@room" eow) body))))
(cl-defun ement-complete-room (&key session predicate
(prompt "Room: ") (suggest t))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/ement eb73bf2775: Fix: (ement--event-mentions-room-p) Regexp,
ELPA Syncer <=