Re: How is default-directory a safe variable?
Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]> Sat, 11 Jul 2026 03:34:09 +0200
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]> writes: > Good question. Here is some history (I just searched in the > repository): And here is the discussion behind these commits: https://lists.gnu.org/r/emacs-pretest-bug/2007-03/msg00267.html I was not able to find out why the commit that removed the 'safe' property from `default-directory' had been reverted, though. Let's assume that it's not trivial. Maybe it would be "safer" if a file local binding of `default-directory' would only be considered as safe if that directory is not something on a different machine? OTOH, (info "(elisp) File Local Variables") | Since the value of ‘safe-local-variable’ is consulted when loading | files, the function should be efficient and should ideally not lead to | loading any libraries to determine the safeness (e.g., it should not be | an autoloaded function). So... I dunno. Michael.