diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-15 14:08:47 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-15 14:08:47 -0600 |
| commit | 8e8152e13b455021e604ea8cb989028bda1c9f5a (patch) | |
| tree | 068b55cf2a65909e2b513f3f3f31bbd8177afd72 /modules/org-agenda-config-debug.el | |
| parent | 2c5d93ec6a157fb84a701c9a82b0086051bb5a58 (diff) | |
| download | dotemacs-8e8152e13b455021e604ea8cb989028bda1c9f5a.tar.gz dotemacs-8e8152e13b455021e604ea8cb989028bda1c9f5a.zip | |
fix(tests): Move cj/log-silently to system-lib.el, fix all test failures
Consolidated cj/log-silently function to system-lib.el as the canonical
location for low-level utility functions. This fixes 4 failing tests in
video-audio-recording that couldn't find the function.
Changes:
- Move cj/log-silently to system-lib.el (from system-utils.el)
- Remove duplicate definition from org-agenda-config-debug.el
- Remove duplicate definition from system-utils.el
- Add (require 'system-lib) to all modules using cj/log-silently:
- video-audio-recording.el
- org-agenda-config-debug.el
- media-utils.el (also removed declare-function)
- elfeed-config.el (replaced system-utils with system-lib)
- wrap-up.el
Test Results:
- Before: 112/113 passing (4 video-audio-recording tests failing)
- After: 113/113 passing ✓
All tests now pass with zero failures.
Fixes TODO #809-895 (move cj/log-silently to system-lib.el)
Diffstat (limited to 'modules/org-agenda-config-debug.el')
| -rw-r--r-- | modules/org-agenda-config-debug.el | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/modules/org-agenda-config-debug.el b/modules/org-agenda-config-debug.el index aded3b6a..a9c713a1 100644 --- a/modules/org-agenda-config-debug.el +++ b/modules/org-agenda-config-debug.el @@ -16,19 +16,7 @@ ;;; Code: (require 'user-constants) - -;; ---------------------------- Helper Functions ------------------------------- - -(defun cj/log-silently (format-string &rest args) - "Append formatted message to *Messages* buffer without echoing. -FORMAT-STRING and ARGS are passed to `format'. -This is a local copy of the pattern from system-utils.el." - (let ((inhibit-read-only t)) - (with-current-buffer (get-buffer-create "*Messages*") - (goto-char (point-max)) - (unless (bolp) (insert "\n")) - (insert (apply #'format format-string args)) - (unless (bolp) (insert "\n"))))) +(require 'system-lib) ;; ---------------------------- Debug Functions -------------------------------- |
