From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: How do I use compilation mode?
Date: Sun, 5 Feb 2012 15:07:31 +0000 [thread overview]
Message-ID: <20120205150731.GA4131@acm.acm> (raw)
Hi, Emacs.
I'd like to use compilation mode. In particular, I have a log file and
extracted lines like this into a separate buffer from it with grep:
cc-mode.acm 47446:[^2012-01-26: mackenzie]: Enable ">>" as double template ender.
I'd like to go to line 47446 in the log file by pressing CR on that line.
The instructions on how to do this are not optimal. I've basically
tried pushing elements onto the documented variables
compilation-error-regexp-alist\\(-alist\\)? in the form that they're in
those lists for other modes.
In particular, I pushed 'acm onto compilation-error-regexp-alist and
((acm "\\(cc-mode.acm\\) \\([0-9]+\\):\\[\\^[0-9]+-[0-9]+-[0-9?]+:[^]]*\\]:"
1 2 nil))
onto compilation-error-regexp-alist. On typing CR in the pertinent
buffer, I get the ironic error message "No error here".
I've tried edebugging through compile.el, and just got lost in the
complexity.
Would somebody please help me out here.
--
Alan Mackenzie (Nuremberg, Germany).
next reply other threads:[~2012-02-05 15:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-05 15:07 Alan Mackenzie [this message]
2012-02-05 15:20 ` How do I use compilation mode? Óscar Fuentes
2012-02-05 17:53 ` Alan Mackenzie
2012-02-06 14:34 ` Stefan Monnier
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=20120205150731.GA4131@acm.acm \
--to=acm@muc.de \
--cc=emacs-devel@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.