From: Ian Zimmerman <itz@buug.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Buffer-local compilation-error-regexp-alist
Date: Thu, 22 Sep 2011 13:49:48 -0700 [thread overview]
Message-ID: <871uv8gv4j.fsf@foolinux.dyndns.org> (raw)
In-Reply-To: <CADdV=Mt_w71_pNF+ra_4m3_Zahm5Ut4jJOzBwj_ZewyMnv7Rjw@mail.gmail.com> (Nikolai Weibull's message of "Thu, 22 Sep 2011 19:32:15 +0200")
Nikolai> Hi! How can I set up a buffer-local
Nikolai> compilation-error-regexp-alist?
>> Why?
Nikolai> Because otherwise rules for other languages get in the way.
Nikolai> The gnu definition tends to match way too much, at least for
Nikolai> the output that I am dealing with in one of my modes. Still,
Nikolai> the gnu definition makes sense for some other modes.
So, why not globally prepend the match for your very special compiler?
The matching is from head to tail ...
That's what lisp packages for some exotic languages do. If this is not
good enough, here's what I would do: define your own nikolai-compile and
nikolai-next-error functions that just call the normal versions, but
with compilation-error-regexp-alist bound locally (with a let). Then
you can either replace the normal keybindings with your functions or add
separate keybindings.
--
Ian Zimmerman
gpg public key: 1024D/C6FF61AD
fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD
Rule 420: All persons more than eight miles high to leave the court.
prev parent reply other threads:[~2011-09-22 20:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-21 16:26 Buffer-local compilation-error-regexp-alist Nikolai Weibull
2011-09-22 17:05 ` Ian Zimmerman
2011-09-22 17:32 ` Nikolai Weibull
2011-09-22 20:49 ` Ian Zimmerman [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871uv8gv4j.fsf@foolinux.dyndns.org \
--to=itz@buug.org \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.