help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting from compile-internal to compilation-start


From: kidologie
Subject: Re: Converting from compile-internal to compilation-start
Date: Thu, 8 Jan 2009 12:38:55 -0800 (PST)
User-agent: G2/1.0

On Jan 8, 10:24 am, Kevin Rodgers <address@hidden> 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:
>
> >  (compile-internal (concat "nits -emacs" command)
> >                "All done" "rt-nits" nil grep-regexp-alist)
>
> > using compilation-start?
>
> Try
>
> (compilation-start (concat "nits -emacs" command)
>                    'grep-mode (lambda () "rt-nits"))
>
> --
> Kevin Rodgers
> Denver, Colorado, USA

Hmm had problems:
compilation-buffer-name: Wrong number of arguments: #[nil "À‡" ["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!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]