From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: roy@panix.com (Roy Smith) Newsgroups: gmane.emacs.help Subject: Making M-X compile cache compile command across sessions? Date: 27 Jan 2006 09:22:20 -0500 Organization: PANIX -- Public Access Networks Corp. Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1138381905 11251 80.91.229.2 (27 Jan 2006 17:11:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Jan 2006 17:11:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 27 18:11:42 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 1F2X7s-0000tx-Lb for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Jan 2006 18:11:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F2Wbb-0000XA-Tl for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Jan 2006 11:37:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!panix!panix2.panix.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader2.panix.com 1138371740 28813 166.84.1.2 (27 Jan 2006 14:22:20 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Fri, 27 Jan 2006 14:22:20 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:137246 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:32870 Archived-At: 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=SUFFIX=V65". 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.