Make complection in erc use consistent casing

* lisp/erc/erc-pcomplete.el (pcomplete-erc-all-nicks): Make
case in the complection consistent (bug#18509).

Copyright-paperwork-exempt: Yes
This commit is contained in:
Carlos Pita 2016-02-04 17:03:34 +11:00 committed by Lars Ingebrigtsen
parent 8c562b2d7f
commit 66c462005c

View file

@ -238,10 +238,12 @@ If optional argument IGNORE-SELF is non-nil, don't return the current nick."
"Returns a list of all nicks on the current server."
(let (nicks)
(erc-with-server-buffer
(maphash (lambda (nick _user)
(setq nicks (cons (concat nick postfix) nicks)))
(maphash (lambda (_nick user)
(setq nicks (cons
(concat (erc-server-user-nickname user) postfix)
nicks)))
erc-server-users))
nicks))
nicks))
(defun pcomplete-erc-channels ()
"Returns a list of channels associated with the current server."