From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: Re: Making M-X compile cache compile command across sessions? Date: Sat, 28 Jan 2006 20:48:42 -0800 (PST) Message-ID: <87k6cjmyfq.fsf@gmail.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138523723 5349 80.91.229.2 (29 Jan 2006 08:35:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 08:35:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 09:35:20 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 1F381k-0006xY-9r for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 09:35:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F384e-0003pa-4o for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 03:38:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F34XT-0002cy-3M for help-gnu-emacs@gnu.org; Sat, 28 Jan 2006 23:51:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F34XQ-0002bx-Ui for help-gnu-emacs@gnu.org; Sat, 28 Jan 2006 23:51:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F34XQ-0002bV-8P for help-gnu-emacs@gnu.org; Sat, 28 Jan 2006 23:51:44 -0500 Original-Received: from [66.249.82.193] (helo=xproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F34VU-0006sE-N6 for help-gnu-emacs@gnu.org; Sat, 28 Jan 2006 23:49:44 -0500 Original-Received: by xproxy.gmail.com with SMTP id t11so583316wxc for ; Sat, 28 Jan 2006 20:48:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:subject:references:from:in-reply-to:message-id:lines:user-agent:mime-version:content-type:date; b=J/hMScaHHIy0JWeQLPI1lmhZFeBX4RGceaYbSpeDYRYuNnLhMfMfvelZuFUOoRy0b3DSzM0syHrYCaoUhv+2IMMVnvLw6gdcX/07q83VE86ulSk1q6mY/SXFuKevwyhxgZn6ohT/7w6aCcCLA+E5CxIerUni2DTDc2Wnk8y8j8I= Original-Received: by 10.70.74.19 with SMTP id w19mr5531742wxa; Sat, 28 Jan 2006 20:48:43 -0800 (PST) Original-Received: from unicorn ( [72.60.106.112]) by mx.gmail.com with ESMTP id h37sm6768628wxd.2006.01.28.20.48.42; Sat, 28 Jan 2006 20:48:42 -0800 (PST) Original-Received: from itz by unicorn with local (Exim 4.60) (envelope-from ) id 1F34UT-0000Sg-Pq; Sat, 28 Jan 2006 23:48:41 -0500 Original-To: help-gnu-emacs@gnu.org In-Reply-To: Original-Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 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:32893 Archived-At: Roy> It's a pain to type all this every time I start up a new emacs Roy> session. I know I can setq compile-command in my .emacs file, but Roy> that's a little too static. It would be cool if emacs wrote the Roy> last compile command I used out to a file so it has a persistant Roy> cache across emacs sessions. Any way to make it do that? Use the desktop module and (add-to-list 'desktop-globals-to-save '(compile-history . 20)) or something similar. -- A true pessimist won't be discouraged by a little success.