unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* compilation error patterns, how to add new ones
@ 2015-07-26 23:51 Ian Zimmerman
  0 siblings, 0 replies; only message in thread
From: Ian Zimmerman @ 2015-07-26 23:51 UTC (permalink / raw)
  To: help-gnu-emacs

What is the proper way for an external package (that is, one not
shipping with emacs) to add new error patterns?  Adding patterns
directly to compilation-error-regexp-alist seems a no-no, not only
because it messes up the value to make it unreadable but also because
that variable is a customization item.  So I tried to just add my
pattern to compilation-error-regexp-alist-alist unconditionally and
leave it to the user if she adds the symbol to the customizable list.

But now there is a new problem: if the symbol is in fact added and a
compilation runs before my package is loaded (compiling files in a
different language, for example), emacs throws up because it tries to
use the result of looking up the pattern in
compilation-error-regexp-alist-alist, and that is nil.

It seems like the only way is to give users a snippet of code to run at
init time, beyond just autoloading, and I was trying to avoid that.

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-26 23:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-26 23:51 compilation error patterns, how to add new ones Ian Zimmerman

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).