Commit 595521d7 authored by Glenn Morris's avatar Glenn Morris
Browse files

(pcomplete-erc-all-nicks): Autoload it, to silence compiler.

(pcomplete/erc-mode/DCC): Replace cl-function remove-duplicates with
erc-delete-dups.
parent ae732337
......@@ -426,6 +426,8 @@ where FOO is one of CLOSE, GET, SEND, LIST, CHAT, etc."
(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 @@ where FOO is one of CLOSE, GET, SEND, LIST, CHAT, etc."
#'(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)
......
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