unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* reading compile.el, modifying settings
@ 2011-05-03 14:03 Paul Graham
  2011-05-05 10:44 ` Tassilo Horn
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Paul Graham @ 2011-05-03 14:03 UTC (permalink / raw)
  To: help-gnu-emacs

Dear emacs experts,

I use compile mode, but I have my own set of compiler 
message regexps.  I try to set them up as follows:

.emacs:

    (load "compile")
    (load-file "~/emacs/compile-settings.el")

compile-settings.el:

    (setq compilation-error-regexp-alist ... )

However, when I compile in emacs, I end up with the
default compiler message regexps.  I then have to
manually eval the load of compile-settings.el to 
get my settings.

I think that when emacs starts up, it picks up my 
setting for compilation-error-regexp-alist, but does 
not immediately load compile.elc.  Then when I do my 
first compile, it loads compile.elc, and overwrites
my settings.

I thought that I could change my .emacs to explicitly 
load compile.elc, but this is not so easy.  The 'load'
function doesn't require an exact path, which makes it 
convenient to use -- it keeps working even when I switch
to a newer version of emacs.  If I use load-file instead,
then I have to give the full path to compile.el or
compile.elc, that is, I would have to duplicate all the
friendly logic in 'load'.

Any suggestions?

Paul



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-12 12:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-03 14:03 reading compile.el, modifying settings Paul Graham
2011-05-05 10:44 ` Tassilo Horn
2011-05-12 12:49   ` Oleksandr Gavenko
2011-05-05 16:31 ` Sam Steingold
2011-05-05 18:15   ` Tassilo Horn
2011-05-05 18:34     ` Sam Steingold
2011-05-05 19:09       ` Tassilo Horn
2011-05-05 21:08         ` Sam Steingold
2011-05-06  7:13           ` Tassilo Horn
2011-05-05 19:48 ` Tassilo Horn

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