[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57003: 28.1.90; Can local variables be loaded before loading major m
From: |
Lars Ingebrigtsen |
Subject: |
bug#57003: 28.1.90; Can local variables be loaded before loading major mode? |
Date: |
Sun, 07 Aug 2022 14:44:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Ihor Radchenko <yantar92@gmail.com> writes:
> We have a variable org-startup-folded:
>
> Non-nil means entering Org mode will switch to OVERVIEW.
>
> This variable controls the initial state of the Org buffer.
> When, non-nil, headings will be folded at the end of Org initialization.
> This folding happens inside org-mode specification and hence setting the
> variable after Org mode is loaded makes no difference.
I see. In that case, it does seem attractive to allow file-local
variables to set the variables before running the mode. However, as
Visuwesh points out, a major mode clears buffer-local variables, so just
setting them before running the mode won't do anything.
So I think the interface here is just a bit confused and confusing. It
would make more sense to allow users to do these things via mode
hooks/interface functions instead of variables.
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Ihor Radchenko, 2022/08/05
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Lars Ingebrigtsen, 2022/08/06
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Ihor Radchenko, 2022/08/06
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?,
Lars Ingebrigtsen <=
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Ihor Radchenko, 2022/08/07
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Lars Ingebrigtsen, 2022/08/07
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Ihor Radchenko, 2022/08/07
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Lars Ingebrigtsen, 2022/08/08
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Ihor Radchenko, 2022/08/08
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Lars Ingebrigtsen, 2022/08/08
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Ihor Radchenko, 2022/08/08
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Lars Ingebrigtsen, 2022/08/08
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Ihor Radchenko, 2022/08/09
- bug#57003: 28.1.90; Can local variables be loaded before loading major mode?, Lars Ingebrigtsen, 2022/08/12