* What's the exact time that buffer/file/directory local variables is evaluated in Emacs?
@ 2013-07-19 3:13 Hongxu Chen
0 siblings, 0 replies; only message in thread
From: Hongxu Chen @ 2013-07-19 3:13 UTC (permalink / raw)
To: help-gnu-emacs
Hi guys,
I have often been confused with the time when some local variables are
evaluated in Emacs, especially when I am customizing some settings for
C/C++ mode.
For instance, I added (flymake-mode-on) to `c-mode-hook', however the
specified flymake tool `clang' is dependent on the dir-local variable
`ac-clang-flags'. So whenever I open a c file which requires some
additional flags(such as includes, definition of macros, etc) Flymake
would emit false error/warning messages since it still uses the old
value of `ac-clang-flags'; and only after some changes have been made I
can occasionally see the update of the value. Is there any way to make
it work just right?
Presently I guess the command `normal-mode' may have some effects on the
local variables, but I just cannot figure out the exact time when these
variables are set.
--
Thanks,
Hongxu Chen
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-19 3:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-19 3:13 What's the exact time that buffer/file/directory local variables is evaluated in Emacs? Hongxu Chen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.