Subject: bug#4387 closed by Juri Linkov <[email-masked]> (Re: bug#4387: read-file-name-completion-ignore-case has no effect in find-name-arg)

From: [email-masked] (Emacs bug Tracking System)
Date: Thu, 19 Nov 2009 17:55:12 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#4387: read-file-name-completion-ignore-case has no effect in find-name-arg

It has been closed by Juri Linkov <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Juri Linkov <[email-masked]> by
replying to this email.

-- 
4387: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4387
Emacs Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#4387: read-file-name-completion-ignore-case has no effect in find-name-arg
From: Juri Linkov <[email-masked]>
To: Stefan Monnier <[email-masked]>
Cc: [email-masked]
Date: Thu, 19 Nov 2009 19:45:14 +0200

>>> But there is no way to use "-iname" when
>>> `read-file-name-completion-ignore-case' is customized to t because
>>> `find-name-arg' is autoloaded with the value "-name" before
>
> Don't autoload it.

Done according to
http://lists.gnu.org/archive/html/emacs-devel/2009-11/msg00633.html

-- 
Juri Linkov
http://www.jurta.org/emacs/

Subject: read-file-name-completion-ignore-case has no effect in find-name-arg
From: Juri Linkov <[email-masked]>
To: [email-masked]
Date: Thu, 10 Sep 2009 04:12:28 +0300

The docstring of `find-name-arg' says that `read-file-name-completion-ignore-case'
defines its default value:

  ;;;###autoload
  (defcustom find-name-arg
    (if read-file-name-completion-ignore-case
        "-iname"
      "-name")
    "Argument used to specify file name pattern.
  If `read-file-name-completion-ignore-case' is non-nil, -iname is used so that
  find also ignores case. Otherwise, -name is used."
    :type 'string
    :group 'find-dired
    :version "22.2")

But there is no way to use "-iname" when `read-file-name-completion-ignore-case'
is customized to t because `find-name-arg' is autoloaded with the value "-name"
before

  (custom-set-variables
   '(read-file-name-completion-ignore-case t))

from .emacs sets the value of `read-file-name-completion-ignore-case'.

This also precludes from using -iname in `rgrep' that relies on `find-name-arg'.

-- 
Juri Linkov
http://www.jurta.org/emacs/