From: "Andreas Röhler" <andreas.roehler@online.de>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: [ra5ul@comcast.net: case-insensitive partial-completion-mode issue]
Date: Mon, 10 Dec 2007 18:17:38 +0100 [thread overview]
Message-ID: <200712101817.39652.andreas.roehler@online.de> (raw)
In-Reply-To: <E1J1kPV-0005cG-76@fencepost.gnu.org>
Am Montag, 10. Dezember 2007 16:19 schrieb Richard Stallman:
> (defun my-directory-files ()
> " "
> (interactive)
> (setq case-fold-search nil)
> (message "%s" (directory-files default-directory t "f*"))
> (setq case-fold-search t)
> (message "%s" (directory-files default-directory t "f*"))
> (setq case-fold-search nil)
> (message "%s" (directory-files default-directory t "F*"))
> (setq case-fold-search t)
> (message "%s" (directory-files default-directory t "F*")))
>
> directory-files is supposed to ignore case
> if the system treats file names as case-insensitive.
> It does not obey case-fold-search.
>
> ;;; ==> (MY-PATH/DIRECTORY/DIRECTORY/. MY-PATH/DIRECTORY/DIRECTORY/..
> MY-PATH/DIRECTORY/DIRECTORY/FILE.TXT) [4 times]
>
> What system are you using?
>
Suse 10.2, GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of
2007-12-09
> Perhaps we need something like directory-files which does obey
> case-fold-search. Is that the issue?
>
As said in other thread: it's nothing to
do. Case-sensitivenes is TRT here, case-fold would lead
into never ending trouble because of
multiplied--factorizing--calculations.
Think someone want to partial-complete not just one
~/DIRECTORY/FILE.TXT
but ~/d/d/d/d/f
with maybe several hundred files starting with [dD] in
the directories. Emacs wouldn't return from that task.
Here I see a soure of never ending bug reports.
Better to tell: partial-completion-mode works
case-sensitive. (As is, fine!)
Andreas Röhler
next prev parent reply other threads:[~2007-12-10 17:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 1:03 [ra5ul@comcast.net: case-insensitive partial-completion-mode issue] Richard Stallman
2007-12-06 8:02 ` Andreas Röhler
2007-12-06 21:43 ` Richard Stallman
2007-12-07 15:07 ` Andreas Röhler
2007-12-06 8:49 ` Andreas Röhler
2007-12-06 21:43 ` Richard Stallman
2007-12-07 13:04 ` Andreas Röhler
2007-12-08 0:04 ` Richard Stallman
2007-12-08 12:12 ` Andreas Röhler
2007-12-09 12:37 ` Richard Stallman
2007-12-10 6:37 ` Andreas Röhler
2007-12-10 15:18 ` Richard Stallman
2007-12-10 17:03 ` Andreas Röhler
2007-12-09 12:37 ` Richard Stallman
2007-12-10 7:34 ` Andreas Röhler
2007-12-10 15:19 ` Richard Stallman
2007-12-10 17:17 ` Andreas Röhler [this message]
2007-12-11 19:00 ` Richard Stallman
2007-12-12 7:11 ` Andreas Röhler
2007-12-12 22:52 ` Richard Stallman
2007-12-14 21:28 ` Andreas Röhler
2007-12-16 19:35 ` Richard Stallman
2007-12-14 21:52 ` Sven Joachim
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=200712101817.39652.andreas.roehler@online.de \
--to=andreas.roehler@online.de \
--cc=emacs-devel@gnu.org \
--cc=rms@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.