From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: gmane.emacs.bugs Subject: bug#32512: xref--read-identifier using etags backend should honor case-fold-search Date: Thu, 23 Aug 2018 17:11:18 +0100 Message-ID: <4a1f6a0a6772940a66f0efd389535d96@ludovic-brenta.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1535040616 4969 195.159.176.226 (23 Aug 2018 16:10:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2018 16:10:16 +0000 (UTC) User-Agent: Roundcube Webmail/0.5.3 To: 32512@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 23 18:10:12 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fssBW-0001AV-5q for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Aug 2018 18:10:10 +0200 Original-Received: from localhost ([::1]:37609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fssDc-0006zn-Me for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Aug 2018 12:12:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fssDQ-0006yX-TL for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2018 12:12:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fssDL-0005N8-TS for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2018 12:12:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fssDK-0005MK-Ng for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2018 12:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fssDK-0008NT-H2 for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2018 12:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ludovic Brenta Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Aug 2018 16:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32512 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.153504069532161 (code B ref -1); Thu, 23 Aug 2018 16:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Aug 2018 16:11:35 +0000 Original-Received: from localhost ([127.0.0.1]:59046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fssCr-0008Md-J3 for submit@debbugs.gnu.org; Thu, 23 Aug 2018 12:11:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fssCp-0008MO-P7 for submit@debbugs.gnu.org; Thu, 23 Aug 2018 12:11:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fssCj-0004yO-VJ for submit@debbugs.gnu.org; Thu, 23 Aug 2018 12:11:26 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51197) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fssCj-0004y0-RQ for submit@debbugs.gnu.org; Thu, 23 Aug 2018 12:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fssCj-0006UI-0Z for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2018 12:11:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fssCe-0004oh-2g for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2018 12:11:24 -0400 Original-Received: from rmap1.bookmyname.com ([88.191.249.149]:57517 helo=webmail.free.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fssCd-0004nh-P0 for bug-gnu-emacs@gnu.org; Thu, 23 Aug 2018 12:11:19 -0400 Original-Received: by webmail.free.org (Postfix, from userid 5000) id 3199A507A52B; Thu, 23 Aug 2018 18:11:18 +0200 (CEST) X-Sender: ludovic@ludovic-brenta.org Original-X-Complaints-To: abuse_at_bookmyname.com X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Origin-Web-Site: webmail.bookmyname.com X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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" Xref: news.gmane.org gmane.emacs.bugs:149697 Archived-At: Package: emacs Version: 26.1 Severity: wishlist Hello, Suppose I have a file named foo-bar.adb containing: package Foo.Bar is end Foo.Bar; and this has been tagged with etags, which is the backend in use for xref. Now: (a) M-. foo.bar/b => jumps to foo-bar.adb line 1, "package Foo.Bar is". but (b) M-. foo.bar => "no match" In (a), xref-find-definition took whatever my input was and honored case-fold-search, which is t, to find the definition of the package. But when I type asking for possible completions, xref--read-identifier is case-sensitive whether I like it or not. Indeed: (c) M-. Foo.Bar => produces the desired completion Foo.Bar/b The inconsistency between (a) and (b) is anti-ergonomic. I looked for a variable, separate from case-fold-search, that would control the case sensitivity of completion in this case, but I couldn't find one. -- Ludovic Brenta.