[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 5bd8e67: Support @-mentions
From: |
Tassilo Horn |
Subject: |
[Emacs-diffs] master 5bd8e67: Support @-mentions |
Date: |
Fri, 17 Jul 2015 11:19:41 +0000 |
branch: master
commit 5bd8e67c6e47f672847a9e85a527fe17a0345d01
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Support @-mentions
* rcirc.el (rcirc-completion-at-point): Support completion of
mentions/messages with @nick instead of just nick.
---
lisp/net/rcirc.el | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 852d294..13a7cfa 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -904,7 +904,10 @@ The list is updated automatically by
`defun-rcirc-command'.")
"Function used for `completion-at-point-functions' in `rcirc-mode'."
(and (rcirc-looking-at-input)
(let* ((beg (save-excursion
- (if (re-search-backward " " rcirc-prompt-end-marker t)
+ ;; On some networks it is common to message or
+ ;; mention someone using @nick instead of just
+ ;; nick.
+ (if (re-search-backward "[[:space:address@hidden"
rcirc-prompt-end-marker t)
(1+ (point))
rcirc-prompt-end-marker)))
(table (if (and (= beg rcirc-prompt-end-marker)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 5bd8e67: Support @-mentions,
Tassilo Horn <=