From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: How to pre-load compile command history? Date: Wed, 16 Nov 2011 19:58:46 +0000 (UTC) Message-ID: References: <1DC1329F-218F-4086-9C0C-3A2A4D56289A@panix.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1321473568 18348 80.91.229.12 (16 Nov 2011 19:59:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Nov 2011 19:59:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 16 20:59:19 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RQldY-0002KJ-77 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Nov 2011 20:59:12 +0100 Original-Received: from localhost ([::1]:58669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQldX-0007fb-GJ for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Nov 2011 14:59:11 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQldP-0007Tm-7A for help-gnu-emacs@gnu.org; Wed, 16 Nov 2011 14:59:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQldN-0000b9-VE for help-gnu-emacs@gnu.org; Wed, 16 Nov 2011 14:59:03 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:49341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQldN-0000a2-Kd for help-gnu-emacs@gnu.org; Wed, 16 Nov 2011 14:59:01 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RQldM-0002EW-7D for help-gnu-emacs@gnu.org; Wed, 16 Nov 2011 20:59:00 +0100 Original-Received: from 94-21-242-121.pool.digikabel.hu ([94.21.242.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Nov 2011 20:59:00 +0100 Original-Received: from adatgyujto by 94-21-242-121.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Nov 2011 20:59:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.21.242.121 (Opera/9.80 (Windows NT 6.1; U; en) Presto/2.9.168 Version/11.52) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82935 Archived-At: Roy Smith panix.com> writes: > > I'm running GNU Emacs 23.1.1. In my init.el file, I set my default compile command: > > (global-set-key "\C-cm" 'compile) > (setq compile-command "cd /home/roy/songza/code/radio/api/mobile/test; python test_api.py") > > That works fine, but now I've got several different commands that I run often. Is there some way to pre-load > them into the compile history, so I can just do c-c m, then up-arrow though the history to pick the one I want? > The simplest solution is to use savehist mode to save and restore minibuffer histories. This is really useful in case of other history prompts too. http://www.emacswiki.org/emacs/SaveHist