aboutsummaryrefslogtreecommitdiff
path: root/modules/system-defaults.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-03 19:10:47 -0500
committerCraig Jennings <c@cjennings.net>2026-05-03 19:10:47 -0500
commita7e0361e46614ab7fbea11af17158fae0510b02d (patch)
treea877621ac0e0cf89f0224606cdf7984c14f5ee18 /modules/system-defaults.el
parentc63829135e1914d23dec506ff98fa21db28dc9e3 (diff)
downloaddotemacs-a7e0361e46614ab7fbea11af17158fae0510b02d.tar.gz
dotemacs-a7e0361e46614ab7fbea11af17158fae0510b02d.zip
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`.
Diffstat (limited to 'modules/system-defaults.el')
-rw-r--r--modules/system-defaults.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system-defaults.el b/modules/system-defaults.el
index 6541fe0f3..6fbec0032 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))