From 04b11059b831c94b4e5ba901b735fcc888cbbe1a Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 8 Nov 2025 12:12:52 -0600 Subject: refactor: make debug functions public (single hyphen naming) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- wttrin-debug.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wttrin-debug.el') 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*") -- cgit v1.2.3