From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: reading compile.el, modifying settings Date: Thu, 05 May 2011 12:44:04 +0200 Message-ID: <87wri5jukr.fsf@member.fsf.org> References: <1933055643.48627.1304431423078.JavaMail.root@aksu.oays-ds.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304592278 10961 80.91.229.12 (5 May 2011 10:44:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 May 2011 10:44:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 05 12:44:32 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHw2n-0004ui-HK for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 12:44:29 +0200 Original-Received: from localhost ([::1]:43962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHw2n-00074j-3a for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 06:44:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHw2h-00074e-0H for help-gnu-emacs@gnu.org; Thu, 05 May 2011 06:44:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHw2f-0001W1-Km for help-gnu-emacs@gnu.org; Thu, 05 May 2011 06:44:22 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:49364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHw2f-0001Vs-FM for help-gnu-emacs@gnu.org; Thu, 05 May 2011 06:44:21 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QHw2a-0004py-Ub for help-gnu-emacs@gnu.org; Thu, 05 May 2011 12:44:16 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 12:44:16 +0200 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 12:44:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:flvhzQLSK8R3kQSl2IZqvrLNTbE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80920 Archived-At: Paul Graham writes: Hi Paul, > 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 ... ) That looks good, except one would normally do (require 'compile), but that shouldn't be any different here. > 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. No, `load' shouldn't defer loading. And even if it did, it should do no harm, because `compilation-error-regexp-alist' is a defcustom and like for defvars, the default value is only set if the variable is not already bound. Hm, maybe you should check if there is some other compile.el on your load-path which gets loaded instead of the "real emacs" compile.el. (M-x list-load-path-shadows RET). Bye, Tassilo