From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#11360: none Date: Thu, 11 Sep 2014 16:58:13 -0300 Message-ID: <8738byrktm.fsf@gmail.com> References: <87a966rm2r.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410465569 19342 80.91.229.3 (11 Sep 2014 19:59:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2014 19:59:29 +0000 (UTC) To: 11360@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 21:59:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XSAWW-0007gO-MU for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 21:59:20 +0200 Original-Received: from localhost ([::1]:41011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSAWW-0003Uj-8p for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 15:59:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSAWL-0003SN-QY for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2014 15:59:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSAWE-0007Vo-BN for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2014 15:59:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSAWE-0007Vk-7r for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2014 15:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XSAWD-0000fM-VY for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2014 15:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Sep 2014 19:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11360 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11360-submit@debbugs.gnu.org id=B11360.14104655052493 (code B ref 11360); Thu, 11 Sep 2014 19:59:01 +0000 Original-Received: (at 11360) by debbugs.gnu.org; 11 Sep 2014 19:58:25 +0000 Original-Received: from localhost ([127.0.0.1]:38488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XSAVc-0000e7-Al for submit@debbugs.gnu.org; Thu, 11 Sep 2014 15:58:24 -0400 Original-Received: from mail-qa0-f43.google.com ([209.85.216.43]:41045) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XSAVa-0000dz-Dz for 11360@debbugs.gnu.org; Thu, 11 Sep 2014 15:58:23 -0400 Original-Received: by mail-qa0-f43.google.com with SMTP id cm18so19361489qab.2 for <11360@debbugs.gnu.org>; Thu, 11 Sep 2014 12:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=wOESqqyyHXt3IXTPT6IZcsRJA5fVg9x2a8VCxsASlHE=; b=oc3F/dnMxPM/rgY7bZVldkpM7Octh9zn2snkAzliXV4xjkju5Be8gFZaNxjswlLLev 0cHExkvSObrT5BE+bAE7+XmeFQLH9O4qHRuP8wYvNXxmYXoomNjI/R/DVqjsLFuVWN82 S/RTwihwdzxtLrzVNSKZgWkaicP+T1UrfPfF8GLlLmWI8TenitfjVeotRFqIyNgcPwTB L/z5/X+7LECbh83nsANYoWZ3nZzNHpVk1mjCWN8cfrmO0lBWjXrqa6pYsHkZd+EDtS+l l/6O1FfCfBEaYwTf5A17TSnKi6+Gbn0gN8Faw9Bs4LuVyEkMSlw/+G26DsC7OvI88gnG qhaA== X-Received: by 10.224.74.67 with SMTP id t3mr5086580qaj.100.1410465499969; Thu, 11 Sep 2014 12:58:19 -0700 (PDT) Original-Received: from carlos-jampp ([190.18.155.203]) by mx.google.com with ESMTPSA id t4sm1369300qae.24.2014.09.11.12.58.17 for <11360@debbugs.gnu.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Sep 2014 12:58:19 -0700 (PDT) In-Reply-To: <87a966rm2r.fsf@gmail.com> (Carlos Pita's message of "Thu, 11 Sep 2014 16:31:08 -0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93275 Archived-At: I've been debugging a bit. Below is a fix for the case inconsistency issue. 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." (let (nicks) (erc-with-server-buffer (maphash (lambda (nick user) (setq nicks (cons (concat (erc-server-user-nickname user) postfix) nicks))) erc-server-users)) nicks)) Best regards -- Carlos Carlos Pita writes: > I'm having the same problem with the latest pretest. > > Even worst, when using bitlbee, tab completion on an empty line gives: > > FirstName > SecondName > .... > > But tab completion after /query gives: > > firstname > secondname > .... > > 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 > -- > Carlos