GNU bug report logs -
#7767
23.2.91; file-local-variables-alist should have the permanent-local property
Previous Next
Reported by: Alex Harsanyi <harsanyi <at> mac.com>
Date: Sat, 1 Jan 2011 04:43:02 UTC
Severity: normal
Found in version 23.2.91
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 7767 <at> debbugs.gnu.org (full text, mbox):
> I tried to debug the problem and it seems that `hack-local-variables'
> will collect the local variables into `file-local-variables-alist' than
> run the hook `before-hack-local-variables-hook' which containts the
> function `c-before-hack-hook'.
> `c-before-hack-hook' will see the `mode' variable and call `c++-mode'
> which than will call `kill-all-local-variables' setting
> `file-local-variables-alist' to nil so that the remaining variables are
> not processed.
It sounds like cc-mode does something odd here.
> Adding the `permanent-local' property to `file-local-variables-alist'
> seems to fix the problem.
My first impression is rather that this would work around the problem
introduced by cc-mode. So I'd first want to make sure that cc-mode has
a good reason to call c++-mode from before-hack-local-variables-hook.
> This happens both on the trunk and on the emacs-23 branch.
Alan, could you enlighten us?
Stefan
This bug report was last modified 14 years and 140 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.