From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Restore minibuffer history, e.g. for compile commands, after restart? Date: Sat, 8 Dec 2007 21:22:01 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197177813 12307 80.91.229.12 (9 Dec 2007 05:23:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Dec 2007 05:23:33 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 09 06:23:43 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J1Edj-0000iR-0h for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Dec 2007 06:23:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1EdR-0002NJ-L1 for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Dec 2007 00:23:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J1EdB-0002Mr-7w for help-gnu-emacs@gnu.org; Sun, 09 Dec 2007 00:23:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J1Ed9-0002Md-MP for help-gnu-emacs@gnu.org; Sun, 09 Dec 2007 00:23:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1Ed9-0002Ma-Go for help-gnu-emacs@gnu.org; Sun, 09 Dec 2007 00:23:07 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J1Ed9-0008RL-A4 for help-gnu-emacs@gnu.org; Sun, 09 Dec 2007 00:23:07 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id lB95N4cf027996 for ; Sat, 8 Dec 2007 23:23:04 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id lB94GLMx017191 for ; Sat, 8 Dec 2007 22:23:04 -0700 Original-Received: from 141.144.89.114 by acsmt350.oracle.com with ESMTP id 3422133361197177691; Sat, 08 Dec 2007 21:21:31 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:49947 Archived-At: > > How can I keep the history of minibuffer commands, e.g. the compile > > commands? > > The package is called `savehist'. > Emacs-22 bundles it so you can just add (savehist-mode 1) to your .emacs. And here is the same thing (CVS from 2007-11-28), but fixed so it also works with Emacs versions prior to 22.1, if you should need that: http://www.emacswiki.org/cgi-bin/wiki/savehist-20%2b.el