Article View: gnu.emacs.help
Article #189128Re: Grabbing filename with doing M-x compile
From: Dylan Kaufman
Date: Wed, 24 Apr 1991 17:24
Date: Wed, 24 Apr 1991 17:24
35 lines
2222 bytes
2222 bytes
In article <JC.91Apr21010147@condor.bu.edu> jc@condor.bu.edu (James Cameron) writes: From: jc@condor.bu.edu (James Cameron) Date: 21 Apr 91 05:01:47 GMT Does anyone have any lisp code which implements both grab-file-name and/or file-completetion when doing M-x compile? Basically, if I am in Buffer foo.c and hit M-x compile and in my startup file I have: (setq compile-command "gcc ") Then I want to see: Compile command: gcc foo.c Anyone have any suggestions or pointers? If you look in the elisp archives on tut.cis.ohio-state.edu (in ~/pub/gnu/emacs/elisp-archive), you will find (if nothing else), a small package which I wrote which will determine the command line to use. It does not prompt the user, and it does not (obviously) allow filename completion, but it will take the filename from the buffer, and (an optional) comment from the code and use those things to make up the command line... then it runs it with compile... -- -<>Dylan<>- MA EMT-M, CA EMT-1A, BEMCo 107 Dylan Kaufman Major in Computer Science morgan@chaos.cs.brandeis.edu Brandeis University, Waltham, MA ------<< Support your local Emergency Medical Services >>------- One can never have too much RAM or too much disk space. -- Ancient American Proverb, c. 1980
Technical Details
Message-ID:
<MORGAN.91Apr24132428@chaos.cs.brandeis.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!wrdis01!nstn.ns.ca!clyde.concordia.ca!altitude!matrox!uvm-gen!kira!nic!news.cs.brandeis.edu!news!morganReferences:
<JC.91Apr21010147@condor.bu.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,c20840b6081e9682 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-04-25 18:40:03 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!caen!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!wrdis01!nstn.ns.ca!clyde.concordia.ca!altitude!matrox!uvm-gen!kira!nic!news.cs.brandeis.edu!news!morgan From: morgan@chaos.cs.brandeis.edu (Dylan Kaufman) Newsgroups: gnu.emacs.help Subject: Re: Grabbing filename with doing M-x compile Message-ID: <MORGAN.91Apr24132428@chaos.cs.brandeis.edu> Date: 24 Apr 91 17:24:28 GMT References: <JC.91Apr21010147@condor.bu.edu> Sender: usenet@news.cs.brandeis.edu Distribution: gnu Organization: Computer Science, Brandeis University, Waltham, MA, USA Lines: 35 In-Reply-To: jc@condor.bu.edu's message of 21 Apr 91 05:01:47 GMT