diff options
| author | Glenn Morris | 2009-10-24 03:54:50 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-10-24 03:54:50 +0000 |
| commit | 595521d74c841cf70cff075872333fdf3728c4df (patch) | |
| tree | d307f6ea502c58353ba92a8cc8013f0c63eee0bc | |
| parent | ae73233745e1ad53001ead63e31e1f735000e2c0 (diff) | |
| download | emacs-595521d74c841cf70cff075872333fdf3728c4df.tar.gz emacs-595521d74c841cf70cff075872333fdf3728c4df.zip | |
(pcomplete-erc-all-nicks): Autoload it, to silence compiler.
(pcomplete/erc-mode/DCC): Replace cl-function remove-duplicates with
erc-delete-dups.
| -rw-r--r-- | lisp/erc/erc-dcc.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/erc/erc-dcc.el b/lisp/erc/erc-dcc.el index 4dda869315c..8708fb0f447 100644 --- a/lisp/erc/erc-dcc.el +++ b/lisp/erc/erc-dcc.el | |||
| @@ -426,6 +426,8 @@ where FOO is one of CLOSE, GET, SEND, LIST, CHAT, etc." | |||
| 426 | (apropos "erc-dcc-do-.*-command") | 426 | (apropos "erc-dcc-do-.*-command") |
| 427 | t)))) | 427 | t)))) |
| 428 | 428 | ||
| 429 | (autoload 'pcomplete-erc-all-nicks "erc-pcomplete") | ||
| 430 | |||
| 429 | ;;;###autoload | 431 | ;;;###autoload |
| 430 | (defun pcomplete/erc-mode/DCC () | 432 | (defun pcomplete/erc-mode/DCC () |
| 431 | "Provides completion for the /DCC command." | 433 | "Provides completion for the /DCC command." |
| @@ -438,9 +440,9 @@ where FOO is one of CLOSE, GET, SEND, LIST, CHAT, etc." | |||
| 438 | #'(lambda (elt) | 440 | #'(lambda (elt) |
| 439 | (eq (plist-get elt :type) 'CHAT)) | 441 | (eq (plist-get elt :type) 'CHAT)) |
| 440 | erc-dcc-list))) | 442 | erc-dcc-list))) |
| 441 | (close (remove-duplicates | 443 | (close (erc-delete-dups |
| 442 | (mapcar (lambda (elt) (symbol-name (plist-get elt :type))) | 444 | (mapcar (lambda (elt) (symbol-name (plist-get elt :type))) |
| 443 | erc-dcc-list) :test 'string=)) | 445 | erc-dcc-list))) |
| 444 | (get (mapcar #'erc-dcc-nick | 446 | (get (mapcar #'erc-dcc-nick |
| 445 | (erc-remove-if-not | 447 | (erc-remove-if-not |
| 446 | #'(lambda (elt) | 448 | #'(lambda (elt) |