From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: Ignore patterns for find-file tab completion?
Date: Sun, 29 Oct 2006 10:38:27 -0800 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICKEEFDJAA.drew.adams@oracle.com> (raw)
In-Reply-To: <20061029175833.GA8389@cspcag2.swan.ac.uk>
.hi files are not something I would ever, ever, want to load into
emacs. Thus, I'd like to ignore them when trying to open a file.
Surely this is a common thing to want to do? Is this a solved
problem?
Yes, it is a common thing to do. You can customize option
`completion-ignored-extensions' so that files with a given extension (e.g.
hi) are ignored for completion. That should do exactly what you want.
FYI - If you use Icicles (http://www.emacswiki.org/cgi-bin/wiki/Icicles),
you can, in addition, exclude completion candidates in a few additional
ways.
1. You can use `C-~' on the fly to complement the current set of completion
candidates (file names, buffer names, etc.). For example, type `C-x b foo'
and then `C-~' to match all buffers that do not start with `foo' (or do not
contain `foo', if you complete with `S-TAB').
2. You can exclude any number of different patterns by combining `C-~' with
`M-*', which lets you match against additional patterns. For example, to
exclude all completion candidates that match `toto', `titi', or `foobar',
you would type this:
`toto C-~ M-* titi C-~ M-* foobar'
This is useful for apropos completion (`S-TAB'), where your input is matched
against any part of a candidate name (actually, your input is taken as a
regexp).
3. If you often want to exclude certain buffers as candidates, you can
create and save a buffer configuration that uses variable
`icicle-no-match-regexp' to exclude those buffers whenever that
configuration is used. See commands `icicle-add-buffer-config' and
`icicle-buffer-config'.
next prev parent reply other threads:[~2006-10-29 18:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-29 17:58 Ignore patterns for find-file tab completion? Andy Gimblett
2006-10-29 18:04 ` Leo
2006-10-29 18:38 ` Drew Adams [this message]
2006-10-29 19:44 ` Andy Gimblett
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=DNEMKBNJBGPAOPIJOOICKEEFDJAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/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.