From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11360: ERC completion case-sensitive Date: Sat, 06 Feb 2016 09:06:07 -0500 Message-ID: References: <87397ppa5h.fsf@gmail.com> <87zk9n6p9d.fsf@gmail.com> <877fiile7p.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454767645 16807 80.91.229.3 (6 Feb 2016 14:07:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 14:07:25 +0000 (UTC) Cc: 11360@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 06 15:07:14 2016 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 1aS3W6-0006Wt-7G for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 15:07:14 +0100 Original-Received: from localhost ([::1]:53941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS3W2-0002Qd-9Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 09:07:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS3Vy-0002PS-GC for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 09:07:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS3Vu-0001sB-G1 for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 09:07:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS3Vu-0001s3-CP for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 09:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aS3Vu-00028d-2Y for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 09:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Feb 2016 14:07:02 +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: fixed Original-Received: via spool by 11360-submit@debbugs.gnu.org id=B11360.14547675708155 (code B ref 11360); Sat, 06 Feb 2016 14:07:02 +0000 Original-Received: (at 11360) by debbugs.gnu.org; 6 Feb 2016 14:06:10 +0000 Original-Received: from localhost ([127.0.0.1]:35200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS3V3-00027S-QY for submit@debbugs.gnu.org; Sat, 06 Feb 2016 09:06:09 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:33285) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS3V2-00027K-4m for 11360@debbugs.gnu.org; Sat, 06 Feb 2016 09:06:08 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.DIT.UMontreal.CA (8.14.1/8.14.1) with ESMTP id u16E63TM020322; Sat, 6 Feb 2016 09:06:05 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 59D83AE1A5; Sat, 6 Feb 2016 09:06:07 -0500 (EST) In-Reply-To: <877fiile7p.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 06 Feb 2016 14:17:30 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5572=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5572> : inlines <4289> : streams <1583180> : uri <2134868> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:112563 Archived-At: >>> erc-completion-ignore-case or completion-ignore-case is t. A specific >>> setting seems like a good idea because presumably some people will want >>> case-insensitive completion in erc but not elsewhere. >> >> There are 2 notions of "case-sensitivity" when it comes to completion: >> - whether the case is semantically significant in the end result >> (i.e. is "FirstName" another user than "firstname"?). >> - whether the user wants "FirstName" be considered as a valid candidate >> for completion of "fir". >> >> The current completion code somewhat conflates the two, but in terms of >> "what should Emacs do" the difference is important. Of course, the >> second consideration only applies when the first is true. >> >> So: is the case semantically significant, here? > irc retains case, but it doesn't use it to distinguish. That is, if you > have a nick "Larsi", you can't have a nick "larsi". Thanks, so we should indeed use completion-table-case-fold (and make it work). Stefan PS: but in the mean time, setting completion-ignore-case buffer-locally is the better fix for emacs-25.