[comp.emacs] Limiting file-completion choices

rustcat@csli.Stanford.EDU (Vallury Prabhakar) (05/24/89)

Is there any way in Gnuemacs of limiting the choices of filenames during
file-completion?  For example, I use TeX a lot and typically there are a 
set of .dvi and .log files corresponding to the source TeX files.  Obvi-
ously, I don't wish to edit either of these two files, and would like to
use the <TAB> key to complete only the .tex filename.  

Any ideas?  Thanks in advance.

							-- Vallury

mlm@cs.brown.edu (Moises Lejter) (05/25/89)

	There is a variable called "completion-ignored-extensions"
	that allows you to specify which extensions should not be
	considered.

	For example, to avoid considering ".dvi" files during
	filename completion, you could add the following line to your
	.emacs :

	(setq completion-ignored-extensions
	      (cons ".dvi" completion-ignored-extensions))


						Moises

-----------------------------------------------------------------------------
Internet/CSnet:   mlm@cs.brown.edu		BITNET:  mlm@browncs.BITNET
UUCP:    ...!uunet!brunix!mlm			Phone:	 (401)863-7664
USmail:  Moises Lejter, Box 1910 Brown University, Providence RI 02912