summaryrefslogtreecommitdiff
path: root/wttrin-debug.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-08 12:12:52 -0600
committerCraig Jennings <c@cjennings.net>2025-11-08 12:12:52 -0600
commit04b11059b831c94b4e5ba901b735fcc888cbbe1a (patch)
tree06051abaed3c4e1b79f2a0e10447c7c80649d268 /wttrin-debug.el
parent29b559bd1a956a4efdec625f1b5d878503d46a33 (diff)
downloademacs-wttrin-04b11059b831c94b4e5ba901b735fcc888cbbe1a.tar.gz
emacs-wttrin-04b11059b831c94b4e5ba901b735fcc888cbbe1a.zip
refactor: make debug functions public (single hyphen naming)
Renamed private debug functions to public API: - wttrin--debug-show-log → wttrin-debug-show-log - wttrin--debug-clear-log → wttrin-debug-clear-log Added ;;;###autoload to both functions for proper autoloading. Updated all references: - README.org (2 occurrences) - tests/README-DEBUG-TESTS.md (4 occurrences) - tests/test-wttrin-integration-with-debug.el (8 occurrences) These are user-facing commands that should be discoverable via M-x, so they follow the public API naming convention (single hyphen). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'wttrin-debug.el')
-rw-r--r--wttrin-debug.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/wttrin-debug.el b/wttrin-debug.el
index 0ddecab..810f875 100644
--- a/wttrin-debug.el
+++ b/wttrin-debug.el
@@ -115,14 +115,15 @@ FORMAT-STRING and ARGS are passed to `format'."
(push (cons timestamp msg) wttrin--debug-log)
(message "[wttrin-debug %s] %s" timestamp msg))))
-(defun wttrin--debug-clear-log ()
+;;;###autoload
+(defun wttrin-debug-clear-log ()
"Clear the debug log."
(interactive)
(setq wttrin--debug-log nil)
(message "Wttrin debug log cleared"))
;;;###autoload
-(defun wttrin--debug-show-log ()
+(defun wttrin-debug-show-log ()
"Display the wttrin debug log in a buffer."
(interactive)
(with-current-buffer (get-buffer-create "*wttrin-debug-log*")