GNU bug report logs -
#57003
28.1.90; Can local variables be loaded before loading major mode?
Previous Next
Full log
Message #8 received at 57003 <at> debbugs.gnu.org (full text, mbox):
Ihor Radchenko <yantar92 <at> gmail.com> writes:
> Some user settings in Org mode need to be set before loading the major mode.
> Further, some people want to set such settings in individual files
> using file-local variables.
>
> However, Emacs loads file-local variables only _after_ major mode is
> being loaded.
> As a result, we are getting user requests like
> https://list.orgmode.org/587be554-906c-5370-2cf2-f08b14fa58ff <at> gmail.com/T/#u
Is the problem here that there are defvars in the major-mode file being
loaded that depend on one another? (I'm not sure I understand the
explanation in that bug report.)
If that's the case, then this is inherently fragile, since the user may
have already loaded the .el file otherwise. So visiting files in a
different order will lead to other results, and eval-ing local variables
before loading the files won't really help, in general.
This bug report was last modified 1 year and 288 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.