From: Mark Elston <m.elston@advantest-ard.com>
To: help-gnu-emacs@gnu.org
Subject: Re: find certain files
Date: Tue, 12 Jun 2007 14:05:24 -0700 [thread overview]
Message-ID: <136u2klbdc2ssd0@corp.supernews.com> (raw)
In-Reply-To: <mailman.2048.1181678085.32220.help-gnu-emacs@gnu.org>
* Drew Adams wrote (on 6/12/2007 12:54 PM):
>> I use Ctrl-f to find files in a directory, but...I want to
>> limit it to certain files...for example, only sas files, *.sas.
>> If if do Ctrl-f /projects/a/*.sas, it will open all the sas files.
>> I want to do Ctrl-f /projects/a/, and only display .sas files,
>> so I can choose one. How do I do that?
>
> Use Icicles apropos completion:
>
> C-x C-f \.sas$ S-TAB, if the current directory is /projects/a, or
>
> C-x C-f /projects/a/.*\.sas$ S-TAB, otherwise.
>
Drew,
I tried this (I have icicles installed) and got the following traceback:
Debugger entered--Lisp error: (error "Bad format environment-variable
substitution")
read-file-name-internal(".*\\.el$" "~/site-lisp-22/" t)
all-completions(".*\\.el$" read-file-name-internal "~/site-lisp-22/" nil)
icicle-unsorted-file-name-prefix-candidates(".*\\.el$")
icicle-file-name-prefix-candidates("~/site-lisp-22/.*\\.el$")
icicle-prefix-complete-1()
icicle-prefix-complete()
icicle-call-then-update-Completions(self-insert-command 1)
icicle-self-insert(1)
call-interactively(icicle-self-insert)
old-read-file-name(#("+ File or directory: " 0 1 nil 1 2 (face
icicle-completing-prompt-prefix) 2 3 nil 3 22 (face minibuffer-prompt))
nil "~/" nil nil nil)
byte-code(<...> [icicle-prompt dir default-filename require-match
initial-input predicate old-read-file-name] 7)] 2)
read-file-name("File or directory: " nil "~/" nil nil nil)
byte-code(<...> [emacs-major-version major-mode default-directory
icicle-find-file-w-wildcards 21 read-file-name "File or directory: " nil
dired-mode fboundp diredp-find-a-file (byte-code <...>
[abbreviate-file-name dired-get-file-for-visit] 2) ((error
default-directory))] 8)
icicle-find-file()
call-interactively(icicle-find-file)
This was while trying to open a number of files in a subdirectory.
I did
C-x C-f /site-lisp-22/.*\.el$
and, before I got the chance to try the S-tab I got the above traceback.
It seems to work OK with files in the current directory, though.
This is NT Emacs 22.0.50.1 with icicles Version 22.
Mark
next parent reply other threads:[~2007-06-12 21:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2048.1181678085.32220.help-gnu-emacs@gnu.org>
2007-06-12 21:05 ` Mark Elston [this message]
2007-06-12 22:51 ` find certain files Drew Adams
[not found] <mailman.2060.1181681757.32220.help-gnu-emacs@gnu.org>
2007-06-25 8:39 ` Mathias Dahl
2007-06-12 18:19 econfreerider
2007-06-12 19:54 ` Drew Adams
2007-06-12 20:37 ` econfreerider
2007-06-12 20:54 ` Drew Adams
2007-06-12 19:57 ` Eli Zaretskii
2007-06-12 20:24 ` econfreerider
[not found] ` <mailman.2056.1181679859.32220.help-gnu-emacs@gnu.org>
2007-06-12 20:38 ` Stefan Monnier
2007-06-12 20:02 ` Dieter Wilhelm
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=136u2klbdc2ssd0@corp.supernews.com \
--to=m.elston@advantest-ard.com \
--cc=help-gnu-emacs@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.