From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Radey Shouman Newsgroups: gmane.emacs.bugs Subject: bug#37820: 25.2; xref using etags incorrect case fold during completion Date: Sat, 19 Oct 2019 13:34:10 -0400 Message-ID: <23979.18706.640623.17645@mothra.home> References: <23978.21803.951348.841457@mothra.home> <83wod16xa0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="199427"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37820@debbugs.gnu.org, Radey Shouman To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 19 20:28:22 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iLtSe-000pl1-NS for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Oct 2019 20:28:21 +0200 Original-Received: from localhost ([::1]:33802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLtSd-0003Jl-1J for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Oct 2019 14:28:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38701) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLtSO-0003Iy-O6 for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 14:28:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLtSM-0002BI-EK for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 14:28:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLtSM-0002BE-BO for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 14:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLtSM-0005Jy-6I for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2019 14:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Radey Shouman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2019 18:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37820 X-GNU-PR-Package: emacs Original-Received: via spool by 37820-submit@debbugs.gnu.org id=B37820.157150966320422 (code B ref 37820); Sat, 19 Oct 2019 18:28:02 +0000 Original-Received: (at 37820) by debbugs.gnu.org; 19 Oct 2019 18:27:43 +0000 Original-Received: from localhost ([127.0.0.1]:53543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLtS3-0005JH-AZ for submit@debbugs.gnu.org; Sat, 19 Oct 2019 14:27:43 -0400 Original-Received: from resqmta-ch2-12v.sys.comcast.net ([69.252.207.44]:37133) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLscM-0003vE-6F for 37820@debbugs.gnu.org; Sat, 19 Oct 2019 13:34:18 -0400 Original-Received: from resomta-ch2-09v.sys.comcast.net ([69.252.207.105]) by resqmta-ch2-12v.sys.comcast.net with ESMTP id LoruiuxitebCzLscGiVf8Q; Sat, 19 Oct 2019 17:34:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1571506452; bh=DRfbWI/p+eqQHBzGgKdNpAzcxhZP4pbYkt90y0dvKRM=; h=Received:Received:Received:MIME-Version:Content-Type:Message-ID: Date:From:To:Subject; b=qBEk2ZwgSWEzKavZ1+UcqLXMmJwBCF2/orUogZQXRVl2je2Ld2Ivc9Lt16viNTaFA r941fOmpLtGaJAicuNAqlQ2tiAGTR85WlBZCQvB1p1yUp/gP07VKzWnuVed6l5bnlA ng3/dBBs1v5Vd3/0C6Mxm2cIIRIABYiJE5saPPdooWQwk8kBVrSXAVZePMd4ghsMBX ND2RrUHREQslQksuXRUhSAvskgsO2IX1JX3zel/3STtw6esB3gE1zsLos5iUeIdtcS 9p7SPJiV12Er30RX572qX+4t/SIi9cgThjGUFTYCHGUoCv7JeTCjjkrh02fZ8oLwBt GUFEjEchTyV2w== Original-Received: from mothra.home ([IPv6:2601:18c:cd80:eef0:329c:23ff:fea1:8693]) by resomta-ch2-09v.sys.comcast.net with ESMTPA id LscFi6bSV8UGLLscGiCNsQ; Sat, 19 Oct 2019 17:34:12 +0000 X-Xfinity-VMeta: sc=-100;st=legit Original-Received: from localhost ([127.0.0.1] helo=mothra) by mothra.home with esmtp (Exim 4.92) (envelope-from ) id 1iLscE-00009P-Vf; Sat, 19 Oct 2019 13:34:11 -0400 In-Reply-To: <83wod16xa0.fsf@gnu.org> X-Mailer: VM 8.1.2 under 25.2.2 (x86_64-pc-linux-gnu) X-Mailman-Approved-At: Sat, 19 Oct 2019 14:27:42 -0400 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:169753 Archived-At: Eli Zaretskii writes: > > Date: Fri, 18 Oct 2019 20:13:31 -0400 > > From: Radey Shouman > > Cc: shouman@comcast.net > >=20 > > In order to reproduce the bug, set tags-case-fold-search to t, > > completion-ignore-case to nil >=20 > Isn't that a contradiction of sorts=3F How can we know which of the= se > two should have precedence=3F I would expect that you would follow the precedent of find-tag, which uses tags-case-fold-search and case-fold-search to determine whether a tags search is case-sensitive or not. Whether case should be folded during completion seems dependent on the application; I have never been tempted to change the default value of completion-ignore-case -- the note on that variable was included becaus= e setting it to non-nil would prevent observing the bug. From a quick lo= ok at the lisp directory completion-ignore-case is typically used by bindi= ng it during a completion. The info file says: You can control the case-sensitivity of tags search commands by customizing the value of the variable =E2=80=98tags-case-fold-sear= ch=E2=80=99. The default is to use the same setting as the value of =E2=80=98case-f= old-search=E2=80=99 (*note Search Case::). I found it surprising that completion would not follow the tags search itself in folding case, as I have become used to this useful behavior over many years of using find-tag.