GNU bug report logs -
#57003
28.1.90; Can local variables be loaded before loading major mode?
Previous Next
Full log
Message #34 received at 57003 <at> debbugs.gnu.org (full text, mbox):
Ihor Radchenko <yantar92 <at> gmail.com> writes:
> 1. Having a need to do the eval is not expected by users.
> 2. Allowing eval is not safe compared to setting variables. Your
> suggestion about `safe-local-eval-forms' will not work well because
> even in your example it is not just about running
> (org-startup-folded-mode); org-startup-folded has 7 allowed values -
> marking each (org-startup-folded-mode value) form as safe sounds
> awkward.
I'd forgotten that you can just enable minor modes without any of that.
You can just say
((org-mode . ((mode . org-startup-folded-mode))))
Or of there are different types:
((org-mode . ((org-startup-type . foo)
(mode . org-startup-folded-mode))))
> 3. org-startup-folded is just an example. We have numerous variables
> like this. I can recall at least several dozens without looking into
> source code. Creating a minor mode for each and every single possible
> variable like this is not maintainable. We will certainly forget
> creating dedicated modes when adding similar variables in future.
There's dozens of variables that have to be set before `org-mode' is
called? That sounds like an fragile design.
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.