Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!bbn.com!mesard From: mesard@bbn.com (Wayne Mesard) Newsgroups: comp.emacs Subject: Re: Selective Dired Summary: Dired's filename parsing is only as good as your shell's. Message-ID: <35981@bbn.COM> Date: 14 Feb 89 14:39:23 GMT References: <5318@lifia.imag.fr> Sender: news@bbn.COM Reply-To: mesard@BBN.COM (Wayne Mesard) Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 29 In article <5318@lifia.imag.fr> phs@lifia.imag.fr (Philippe Schnoebelen) writes: > >Is there any hook, regexp, alist or whatever trick available to tell Dired >not to list files such and such ? How about the more straight-forward approach: ask and you shall receive. > [ For example, I can imagine situations >where I would like the *.c and *.h files to be displayed (with also core >and Makefile :-) but not the *.o. M-x dired {core,Makefile,*.[ch]} If you looked in dired.el, you'd see that dired calls the shell specified in the variable shell-file-name to expand the specified file name(s) and then invoke ls(1) on them. So if your usual shell is the C-shell or one of its derivatives, the above will work. If you use a dain-bramaged shell like /bin/sh [[oh no, not another shell war, "They're shelling us from being those Vaxen, sir!" That was a Korny joke, I must say.]] you can tell Emacs to use the C-shell by putting the following line in your ~/.emacs [[uh, sorry, that's $HOME/.emacs]] file: (setq shell-file-name "/bin/csh") -- unsigned *Wayne_Mesard(); MESARD@BBN.COM BBN, Cambridge, MA