all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: completion-regexp-list and case-fold-search
Date: Sun, 04 Jan 2004 22:41:06 -0500	[thread overview]
Message-ID: <E1AdLc2-00051M-FE@fencepost.gnu.org> (raw)
In-Reply-To: <200401010317.i013H4Q00357@raven.dms.auburn.edu> (message from Luc Teirlinck on Wed, 31 Dec 2003 21:17:04 -0600 (CST))

      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?

  reply	other threads:[~2004-01-05  3:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-01  3:17 completion-regexp-list and case-fold-search Luc Teirlinck
2004-01-05  3:41 ` Richard Stallman [this message]
2004-01-05  4:17   ` Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1AdLc2-00051M-FE@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.