aboutsummaryrefslogtreecommitdiff
path: root/modules/system-defaults.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-29 04:19:31 -0400
committerCraig Jennings <c@cjennings.net>2026-06-29 04:19:31 -0400
commit256027866f9ff2cbc3b6155950f21a92b54ea307 (patch)
treee63cd2b63bfbd8f893313e5a900710c353e905e9 /modules/system-defaults.el
parent8c91731f5ba177d9f0f7c078576ddd91c606ed7c (diff)
downloaddotemacs-256027866f9ff2cbc3b6155950f21a92b54ea307.tar.gz
dotemacs-256027866f9ff2cbc3b6155950f21a92b54ea307.zip
refactor: prefix two collision-prone helpers, document naming audit
Two owned helpers carried unprefixed generic names that risk colliding in the single Emacs namespace: car-member (local-repository.el) and unpropertize-kill-ring (system-defaults.el). I renamed them to localrepo--car-member and cj/--unpropertize-kill-ring and updated their callers and tests. Both are non-interactive and contained, so no alias was needed. docs/design/naming-audit.org records the rest of the scan: the allowlist of deliberate module prefixes, the foreign forward-declarations that aren't owned definitions, and a deferred list (keybound commands, the with-timer macro, the ui-theme defcustoms, the user-constants paths) that each want a focused pass rather than an unattended rename.
Diffstat (limited to 'modules/system-defaults.el')
-rw-r--r--modules/system-defaults.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system-defaults.el b/modules/system-defaults.el
index 7230103cc..c63ca0093 100644
--- a/modules/system-defaults.el
+++ b/modules/system-defaults.el
@@ -266,10 +266,10 @@ appears only once per session."
;; ------------------ Unpropertize Kill Ring For Performance -----------------
-(defun unpropertize-kill-ring ()
+(defun cj/--unpropertize-kill-ring ()
(setq kill-ring (mapcar 'substring-no-properties kill-ring)))
-(add-hook 'kill-emacs-hook 'unpropertize-kill-ring)
+(add-hook 'kill-emacs-hook 'cj/--unpropertize-kill-ring)
;; ------------------------------- GNU 'ls' On BSD -------------------------------