Mercurial > emacs
changeset 105742:97655a0c7e67
(pcomplete-erc-all-nicks): Autoload it, to silence compiler.
(pcomplete/erc-mode/DCC): Replace cl-function remove-duplicates with
erc-delete-dups.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 24 Oct 2009 03:54:50 +0000 |
parents | 90bde63d7310 |
children | f8478bbd8ebe |
files | lisp/erc/erc-dcc.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/erc/erc-dcc.el Sat Oct 24 03:51:51 2009 +0000 +++ b/lisp/erc/erc-dcc.el Sat Oct 24 03:54:50 2009 +0000 @@ -426,6 +426,8 @@ (apropos "erc-dcc-do-.*-command") t)))) +(autoload 'pcomplete-erc-all-nicks "erc-pcomplete") + ;;;###autoload (defun pcomplete/erc-mode/DCC () "Provides completion for the /DCC command." @@ -438,9 +440,9 @@ #'(lambda (elt) (eq (plist-get elt :type) 'CHAT)) erc-dcc-list))) - (close (remove-duplicates + (close (erc-delete-dups (mapcar (lambda (elt) (symbol-name (plist-get elt :type))) - erc-dcc-list) :test 'string=)) + erc-dcc-list))) (get (mapcar #'erc-dcc-nick (erc-remove-if-not #'(lambda (elt)