]> git.eshelyaron.com Git - emacs.git/commitdiff
Support @-mentions
authorTassilo Horn <tsdh@gnu.org>
Fri, 17 Jul 2015 11:18:38 +0000 (13:18 +0200)
committerTassilo Horn <tsdh@gnu.org>
Fri, 17 Jul 2015 11:18:38 +0000 (13:18 +0200)
* rcirc.el (rcirc-completion-at-point): Support completion of
mentions/messages with @nick instead of just nick.

lisp/net/rcirc.el

index 852d2941f0bec64cbb6d3d68fc86a4ccad30e6e0..13a7cfa611277e875302b3d63747adc99a5f0d25 100644 (file)
@@ -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))
                       rcirc-prompt-end-marker)))
              (table (if (and (= beg rcirc-prompt-end-marker)