This patch allows users to trust directories to load dir-local variables from, so they don't have to do something lile this: (defun risky-local-variable-p (sym &optional _ignored) nil) as suggested here: https://emacs.stackexchange.com/questions/10983/remember-permission-to-execute-risky-local-variables It also works over TRAMP if enable-remote-dir-locals is true.