GNU bug report logs - #37820
25.2; xref using etags incorrect case fold during completion

Previous Next

Package: emacs;

Reported by: Radey Shouman <shouman <at> comcast.net>

Date: Sat, 19 Oct 2019 04:54:04 UTC

Severity: normal

Found in version 25.2

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 37820 <at> debbugs.gnu.org (full text, mbox):

From: Radey Shouman <shouman <at> comcast.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 37820 <at> debbugs.gnu.org, Radey Shouman <shouman <at> comcast.net>
Subject: Re: bug#37820: 25.2;
 xref using etags incorrect case fold during completion
Date: Sat, 19 Oct 2019 13:34:10 -0400
Eli Zaretskii writes:
 > > Date: Fri, 18 Oct 2019 20:13:31 -0400
 > > From: Radey Shouman <shouman <at> comcast.net>
 > > Cc: shouman <at> comcast.net
 > > 
 > > In order to reproduce the bug, set tags-case-fold-search to t,
 > > completion-ignore-case to nil
 > 
 > Isn't that a contradiction of sorts?  How can we know which of these
 > two should have precedence?

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 because
setting it to non-nil would prevent observing the bug.  From a quick look
at the lisp directory completion-ignore-case is typically used by binding
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 ‘tags-case-fold-search’.  The
     default is to use the same setting as the value of ‘case-fold-search’
     (*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.




This bug report was last modified 5 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.