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 --- tests/README-DEBUG-TESTS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/README-DEBUG-TESTS.md') diff --git a/tests/README-DEBUG-TESTS.md b/tests/README-DEBUG-TESTS.md index 7310123..c1abd52 100644 --- a/tests/README-DEBUG-TESTS.md +++ b/tests/README-DEBUG-TESTS.md @@ -55,7 +55,7 @@ M-x debug-wttrin-enable ### View Debug Log ```emacs-lisp -M-x wttrin--debug-show-log +M-x wttrin-debug-show-log ``` This opens a buffer showing all debug events with timestamps. @@ -63,7 +63,7 @@ This opens a buffer showing all debug events with timestamps. ### Clear Debug Log ```emacs-lisp -M-x wttrin--debug-clear-log +M-x wttrin-debug-clear-log ``` ## Test Fixtures @@ -76,7 +76,7 @@ If wttrin isn't loading in your configuration: 1. **Enable debug mode** (set `wttrin-debug` to `t` before loading) 2. **Check dependencies**: Run `M-x package-list-packages` and ensure `xterm-color` is installed -3. **View debug log**: Run `M-x wttrin--debug-show-log` after trying to use wttrin +3. **View debug log**: Run `M-x wttrin-debug-show-log` after trying to use wttrin 4. **Check for errors**: Look in `*Messages*` buffer for any error messages The debug log will show you exactly where the process stops or fails. -- cgit v1.2.3