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: How to pre-load compile command history? Date: Wed, 16 Nov 2011 09:54:52 -0800 Message-ID: <3135048E86744BFC9C3BAFA295F56AED@us.oracle.com> 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 1321466114 23380 80.91.229.12 (16 Nov 2011 17:55:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 Nov 2011 17:55:14 +0000 (UTC) To: "'Roy Smith'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 16 18:55:10 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 1RQjhS-0001Bl-VK for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Nov 2011 18:55:07 +0100 Original-Received: from localhost ([::1]:47724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQjhS-0001tv-Gc for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Nov 2011 12:55:06 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQjhN-0001sW-5S for help-gnu-emacs@gnu.org; Wed, 16 Nov 2011 12:55:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQjhM-0001dC-86 for help-gnu-emacs@gnu.org; Wed, 16 Nov 2011 12:55:01 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:22300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQjhM-0001cu-33 for help-gnu-emacs@gnu.org; Wed, 16 Nov 2011 12:55:00 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pAGHswY0018704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Nov 2011 17:54:58 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pAGHsvFi019152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Nov 2011 17:54:57 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pAGHspJ6016103; Wed, 16 Nov 2011 11:54:51 -0600 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 Nov 2011 09:54:51 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acykhb+oVa4fh2orTQ+Xrv/PzpQLJwAAoM3A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 In-Reply-To: <1DC1329F-218F-4086-9C0C-3A2A4D56289A@panix.com> X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-CT-RefId: str=0001.0A090201.4EC3F8F3.0045,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:82929 Archived-At: > (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? If option `compilation-read-command' is non-nil then you are prompted with completion for the compilation command to use. You can set the history variable `compile-history' ahead of time, so you can then use `M-n', `M-p', `M-s', and `M-r' to access the commands on your list. (This is according to what I see in the code in `compile.el'. I don't often use `compile' myself.)