From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: completion-regexp-list and case-fold-search Date: Sun, 04 Jan 2004 22:41:06 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200401010317.i013H4Q00357@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1073274604 32569 80.91.224.253 (5 Jan 2004 03:50:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2004 03:50:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jan 05 04:50:02 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdLkg-0007dy-00 for ; Mon, 05 Jan 2004 04:50:02 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdLkf-0001V5-00 for ; Mon, 05 Jan 2004 04:50:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdMhg-0007tG-UY for emacs-devel@quimby.gnus.org; Sun, 04 Jan 2004 23:51:00 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AdMh3-0007kn-5j for emacs-devel@gnu.org; Sun, 04 Jan 2004 23:50:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AdMfc-0006Yb-QQ for emacs-devel@gnu.org; Sun, 04 Jan 2004 23:49:24 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AdMds-0005az-7r for emacs-devel@gnu.org; Sun, 04 Jan 2004 23:47:04 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1AdLc2-00051M-FE; Sun, 04 Jan 2004 22:41:06 -0500 Original-To: Luc Teirlinck In-reply-to: <200401010317.i013H4Q00357@raven.dms.auburn.edu> (message from Luc Teirlinck on Wed, 31 Dec 2003 21:17:04 -0600 (CST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19007 Whether something is a valid completion for the minibuffer completion functions has nothing to do with whether the user prefers _interactive regexp searches_ to be case-sensitive or not. Hence, `case-fold-search' should be bound around all calls to `{try,test}-completion' and `all-completions'. I agree. 2. More radically, make `{try,test}-completion' and `all-completions' _themselves_ bind `case-fold-search' to the value of `completion-ignore-case', thereby effectively making the case-sensitivity of `completion-regexp-list' entirely determined by `completion-ignore-case'. I think that is the correct fix. 1. Make all the basic minibuffer completion functions bind `case-fold-search' to the value of `completion-ignore-case' around all calls to `{try,test}-completion' and `all-completions', as `partial-completion-mode' already does. That would be incorrect, since it would distort the behavior of many user commands in the minibuffer. Do we want to go for (1) or (2)? With (1) we are absolutely certain that we do not break any code that was not already broken. (Because all we do is make both values of `partial-completion-mode' consistent.) Are you saying that partial-completion-mode does something analogous to #1? If so, I think that is a bug, and we should replace that with something analogous to #2. Would you like to do that?