From: kidologie <richwellum@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Converting from compile-internal to compilation-start
Date: Thu, 8 Jan 2009 07:18:01 -0800 (PST) [thread overview]
Message-ID: <16c4f1b9-6872-4ac4-b473-b6aa6c4d2d90@s1g2000prg.googlegroups.com> (raw)
In-Reply-To: cbc601f7-0da7-4050-83f9-8de8af85e2ea@r40g2000yqj.googlegroups.com
On Jan 7, 4:13 pm, kidologie <richwel...@gmail.com> 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?
>
> Thanks!
Ok this handles both emacs21 and emacs 22 versions:
(defun my-compile-start (command &optional mode buf-name highlight-
regexp)
(if (fboundp 'compilation-start) ; Emacs 22
(compilation-start command mode
#'(lambda (mode-name) (concat "*" buf-name "*"))
highlight-regexp)
; else
(compile-internal command
"No more hits" buf-name nil highlight-regexp)))
next prev parent reply other threads:[~2009-01-08 15:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-07 21:13 Converting from compile-internal to compilation-start kidologie
2009-01-08 15:18 ` kidologie [this message]
2009-01-08 15:24 ` Kevin Rodgers
[not found] ` <mailman.4338.1231428224.26697.help-gnu-emacs@gnu.org>
2009-01-08 20:38 ` kidologie
2009-01-10 3:04 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16c4f1b9-6872-4ac4-b473-b6aa6c4d2d90@s1g2000prg.googlegroups.com \
--to=richwellum@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).