[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 11 Sep 2014 16:58:13 -0300
Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux)
I've been debugging a bit. Below is a fix for the case inconsistency
The case inconsistency is due to the fact that users are hashed into
erc-server-users using (erc-downcase nick). But then
pcomplete-erc-all-nicks builds the completion list from the hash
keys. This is wrong because the keys are the downcased nicks, not the
real nicks themselves. This is also inconsistent with the way
pcomplete-erc-nicks works (this one does use the real nick).
Changing (erc-server-user-nickname user) for nick in
pcomplete-erc-all-nicks will fix this one:
(defun pcomplete-erc-all-nicks (&optional postfix)
"Returns a list of all nicks on the current server."
(maphash (lambda (nick user)
(setq nicks (cons
(concat (erc-server-user-nickname user) postfix)
Carlos Pita <address@hidden> writes:
> I'm having the same problem with the latest pretest.
> Even worst, when using bitlbee, tab completion on an empty line gives:
> But tab completion after /query gives:
> This is not only visually inconsistent but, as the completion is case
> sensitive, then that a given prefix successfully completes depends on
> where the completion was triggered.
> Best regards