unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Respecting FIGNORE
@ 2011-02-24  8:10 Gary
  0 siblings, 0 replies; 2+ messages in thread
From: Gary @ 2011-02-24  8:10 UTC (permalink / raw)
  To: help-gnu-emacs

Is there any way to configure emacs so that the completion for find-file,
find-file-at-point, and others respect the FIGNORE environment variable,
and so ignore "undesired" files?

-- 
Gary        Please do NOT send me 'courtesy' replies off-list.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Respecting FIGNORE
       [not found] <mailman.0.1298537225.21381.help-gnu-emacs@gnu.org>
@ 2011-02-24 17:02 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2011-02-24 17:02 UTC (permalink / raw)
  To: help-gnu-emacs

> Is there any way to configure Emacs so that the completion for find-file,
> find-file-at-point, and others respect the FIGNORE environment variable,
> and so ignore "undesired" files?

You can do something like

  (dolist (ext (split-string (getenv "FIGNORE") ":"))
    (add-to-list 'completion-ignored-extensions ext))


-- Stefan "guaranteed untested"


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-24 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24  8:10 Respecting FIGNORE Gary
     [not found] <mailman.0.1298537225.21381.help-gnu-emacs@gnu.org>
2011-02-24 17:02 ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).