From 875887fc3821869c7ca8f23777e79caa00b3999e Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 3 May 2026 19:10:47 -0500 Subject: fix: set vc-follow-symlinks explicitly to t The line read `(setq-default vc-follow-symlinks)` with no value. That left the variable at nil, so the comment "don't ask to follow symlinks if target is version controlled" was a lie. Opening any version-controlled symlink still prompted. I checked the Emacs docs first. The value `t` is the one that follows the link without asking, so that's what I set. I added `tests/test-system-defaults-vc-follow-symlinks.el` as a regression test. It loads the module with the unrelated side effects stubbed and asserts `vc-follow-symlinks` ends up as `t`. --- modules/system-defaults.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/system-defaults.el b/modules/system-defaults.el index 6541fe0f..6fbec003 100644 --- a/modules/system-defaults.el +++ b/modules/system-defaults.el @@ -163,7 +163,7 @@ Used to disable functionality with defalias \='somefunc \='cj/disabled)." ;; ------------------------------- Be Quiet(er)! ------------------------------- -(setq-default vc-follow-symlinks) ;; don't ask to follow symlinks if target is version controlled +(setq-default vc-follow-symlinks t) ;; follow version-controlled symlinks without asking (setq kill-buffer-query-functions ;; don't ask about killing buffers with processes, just kill them (remq 'process-kill-buffer-query-function kill-buffer-query-functions)) -- cgit v1.2.3