diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-15 23:00:59 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-15 23:00:59 -0500 |
| commit | 2dd56761df8e6b6d7b5f99c5c7c6d20f5b2d6447 (patch) | |
| tree | 503a9863e8177d514b41ef9a534bb0217cea63e2 /modules | |
| parent | 769cacb7d2719374df88626792914f240f74dbed (diff) | |
| download | dotemacs-2dd56761df8e6b6d7b5f99c5c7c6d20f5b2d6447.tar.gz dotemacs-2dd56761df8e6b6d7b5f99c5c7c6d20f5b2d6447.zip | |
fix(flycheck): correct abbrev-mode no-arg toggle in cj/prose-helpers-on
The shape (if (not (abbrev-mode)) (abbrev-mode)) calls abbrev-mode with
no argument -- that's the toggle signature, not a query. When the mode
was already on the function flipped it off then on instead of being a
no-op. Replaced with (unless (bound-and-true-p VAR) (MODE 1)) for both
abbrev-mode and flycheck-mode. 4 ERT tests cover both-off, both-on, and
the two mixed states.
Also ran the module hardening pass across 24 newly-added modules,
renamed the six completed Review sub-tasks to Harden, filed 11 new
findings under their Harden parents, and broke three design specs
(EMMS-free music, dev F-keys, dev-setup-project) into 20
dependency-ordered sub-tasks via parallel subagents. Verified the
sqlite finalizer bug from 2026-04-26 is gone and closed its tracking
entry.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/flycheck-config.el | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/flycheck-config.el b/modules/flycheck-config.el index e2e8abe9..8c3e2a7b 100644 --- a/modules/flycheck-config.el +++ b/modules/flycheck-config.el @@ -34,13 +34,12 @@ ;;; Code: (defun cj/prose-helpers-on () - "Ensure that abbrev, flyspell, and flycheck are all on." + "Ensure that `abbrev-mode' and `flycheck-mode' are on in the current buffer." (interactive) - (if (not (abbrev-mode)) - (abbrev-mode)) - ;; (flyspell-on-for-buffer-type) - (if (not (flycheck-mode)) - (flycheck-mode))) + (unless (bound-and-true-p abbrev-mode) + (abbrev-mode 1)) + (unless (bound-and-true-p flycheck-mode) + (flycheck-mode 1))) ;; ---------------------------------- Linting ---------------------------------- |
