GNU bug report logs - #17051
Order of evaluation in .dir-locals.el

Previous Next

Packages: cc-mode, emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Thu, 20 Mar 2014 15:02:01 UTC

Severity: minor

Tags: confirmed

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 17051 <at> debbugs.gnu.org (full text, mbox):

From: Reuben Thomas <rrt <at> sc3d.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 17051 <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> users.sourceforge.net>
Subject: Re: bug#17051: Order of evaluation in .dir-locals.el
Date: Tue, 7 Jun 2016 13:53:11 +0100
[Message part 1 (text/plain, inline)]
On 7 June 2016 at 12:23, Alan Mackenzie <acm <at> muc.de> wrote:

>
> Why are you defining the new style "fontforge" every time a file gets
> visited?


​The idea was to define a per-project style every time that project's
directory was visited.​

  Couldn't you simply define it once, directly in your .emacs,
> before any C files are loaded (e.g., via desktop-save-mode)?
>

I would prefer to keep the per-project style with the project code.​


> ​​
> Would you please try defining your CC Mode style outside of
> .dir-locals.el, as suggested above.
>

​That works fine (I do it for other styles that are more widely
applicable).​

-- 
http://rrt.sc3d.org
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.