Article View: gnu.emacs.help
Article #188961Directory Files
From: Anil Joshi
Date: Tue, 21 May 1991 21:31
Date: Tue, 21 May 1991 21:31
29 lines
1378 bytes
1378 bytes
I am doing the following (in the scratch buffer): (directory-files default-directory nil "*.[ch]") and am getting back nil where as there are files that match the reg-exp. What am I doing wrong? I need the above for a macro which I want to write - 'Replace all occurences of word "float" with word "double" in all the *.c and *.h files in the current dirctory' Is there a elisp macro which I can run in batch? Thanks in advance. Anil joshi@cs.uiuc.edu -- "Whatever we wish ourselves to be, we have the power to make ourselves. If what we are now has been the result of our own past actions,then it certainly follows that whatever we wish to be in the future, can be produced by our own present actions." - Vivekananda, Late Nineteenth Century Indian Philosopher
Technical Details
Message-ID:
<1991May21.213101.22515@m.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!m.cs.uiuc.edu!joshiShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,47d8d87ddf6099a4,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-05-22 02:21:24 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!m.cs.uiuc.edu!joshi From: joshi@m.cs.uiuc.edu (Anil Joshi) Newsgroups: gnu.emacs.help Subject: Directory Files Summary: What I am doing wrong? Keywords: directory-files, match-regexp Message-ID: <1991May21.213101.22515@m.cs.uiuc.edu> Date: 21 May 91 21:31:01 GMT Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL Lines: 29