From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kidologie Newsgroups: gmane.emacs.help Subject: Re: Converting from compile-internal to compilation-start Date: Thu, 8 Jan 2009 12:38:55 -0800 (PST) Organization: http://groups.google.com Message-ID: <6aed703c-e4b2-4d29-b0c1-39566f33196f@n33g2000pri.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1231474722 21937 80.91.229.12 (9 Jan 2009 04:18:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2009 04:18:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 09 05:19:54 2009 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 1LL8qb-0008AF-CY for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Jan 2009 05:19:49 +0100 Original-Received: from localhost ([127.0.0.1]:44071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LL8pL-0004Gk-Eb for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jan 2009 23:18:31 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n33g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 64.102.48.249 Original-X-Trace: posting.google.com 1231447135 32314 127.0.0.1 (8 Jan 2009 20:38:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 8 Jan 2009 20:38:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n33g2000pri.googlegroups.com; posting-host=64.102.48.249; posting-account=rKOZvgoAAACXuKh1uLk5HCu7Xwj27Egq User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165858 X-Mailman-Approved-At: Thu, 08 Jan 2009 23:16:36 -0500 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:61199 Archived-At: On Jan 8, 10:24=A0am, Kevin Rodgers wrote: > kidologie wrote: > > Hello - after upgrading to emacs22, I see that compile-internal is now > > obsolete - I need to use compilation-start. > > > What is the correct way to do this: > > > =A0(compile-internal (concat "nits -emacs" command) > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"All done" "rt-nits" nil grep-regexp-ali= st) > > > using compilation-start? > > Try > > (compilation-start (concat "nits -emacs" command) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'grep-mode (lambda () "rt-nits")) > > -- > Kevin Rodgers > Denver, Colorado, USA Hmm had problems: compilation-buffer-name: Wrong number of arguments: #[nil "=C0=87" ["rt- nits"] 1 "rt-nits"], 1 I did: (compilation-start (concat "/auto/eigrp/bin/nits -emacs " command) nil #'(lambda (mode-name) "*rt-nits*")) And that worked fine - I just pulled it as an example from the emacs source - without understanding why it's happy. Which brings me to another point with the new compilation-start - why am I forced to enter a mode - as in your example - 'grep-mode? In my cases I'm just kicking off a unix script under the covers and it doesn't below to any particular mode.. Thanks!