From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bhoel@despammed.com (=?utf-8?q?Berthold_H=C3=B6llmann?=) Newsgroups: gmane.emacs.help Subject: Re: Making M-X compile cache compile command across sessions? Date: Sun, 29 Jan 2006 19:30:41 +0100 Organization: Berthold =?utf-8?q?H=C3=B6llmann?= Message-ID: References: Reply-To: berthold@xn--hllmanns-n4a.de NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1138560704 5650 80.91.229.2 (29 Jan 2006 18:51:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 18:51:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 19:51:39 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3Hda-0001M7-M4 for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 19:50:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3HgV-0007TX-Jl for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 13:53:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-X-Trace: news.uni-berlin.de grddKQOZhA+NzC/cPht8YA1w/Z+BQwFhSBpxmO4EBuVQ== X-Orig-Path: bhoel.news.arcor.de!news User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:E/A5RKfCfEDoPz6tWbY4wKmKdm8= Original-Xref: shelby.stanford.edu gnu.emacs.help:137286 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32908 Archived-At: roy@panix.com (Roy Smith) writes: > I'm working in a system which has longish compile commands, for > example, "cd /work/smithr/sandbox/B-IC-6-2/smarts/clsapi; gmake > BV=3DSUFFIX=3DV65". > > It's a pain to type all this every time I start up a new emacs > session. I know I can setq compile-command in my .emacs file, but > that's a little too static. It would be cool if emacs wrote the last > compile command I used out to a file so it has a persistant cache > across emacs sessions. Any way to make it do that? > > I'm using GNU Emacs 21.3.1. I usually solve this via file variables. Usually you call this make command when editin specific files. Let the files end with ;;; Local Variables: *** ;;; compile-command: "cd /work/smithr/sandbox/B-IC-6-2/smarts/clsapi; gma= ke BV=3DSUFFIX=3DV65" *** ;;; End: *** and M-x compile provides you with the wanted default. --=20 berthold@xn--hllmanns-n4a.de / bhoel@web.de /