aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorStefan Monnier2024-11-23 22:05:33 -0500
committerStefan Monnier2024-11-23 22:08:54 -0500
commitf713258416f224b93e4f25b2db24d5e8797bcbff (patch)
treea9182df1560279c2d1c337c4db0bcec1c7a24afe /src/bytecode.c
parente71d714a815e1088f8cfe946b1e431356ec85b24 (diff)
downloademacs-f713258416f224b93e4f25b2db24d5e8797bcbff.tar.gz
emacs-f713258416f224b93e4f25b2db24d5e8797bcbff.zip
(dir-locals-collect-variables): Don't autoload if not needed (bug#74349)
While dir-local settings for `c-mode` may require (auto)loading `cc-mode.el` to get all the `safe-local-variable` properties, they may not. So before (auto)loading that file, make sure we don't already have all the `safe-local-variable` properties we need. * lisp/files.el (dir-locals--load-mode-if-needed): New function. (hack-one-local-variable): Don't inf-loop if `eval` calls a major mode. (dir-locals-collect-variables): Use `dir-locals--load-mode-if-needed`.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions