Commit 5bd8e67c authored by Tassilo Horn's avatar Tassilo Horn

Support @-mentions

* rcirc.el (rcirc-completion-at-point): Support completion of
mentions/messages with @nick instead of just nick.
parent fa5a880f
......@@ -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:]@]" rcirc-prompt-end-marker t)
(1+ (point))
(table (if (and (= beg rcirc-prompt-end-marker)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment