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 | d5f763d1953ac1a0fcd347a50f3000702d22eb58 (patch) | |
| tree | 3887e50f0c333875207d55927e5cf244e684624f /modules | |
| parent | 982b2f60b025727e58afea0b32358c7d361288e9 (diff) | |
| download | dotemacs-d5f763d1953ac1a0fcd347a50f3000702d22eb58.tar.gz dotemacs-d5f763d1953ac1a0fcd347a50f3000702d22eb58.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 e2e8abe97..8c3e2a7b8 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 ---------------------------------- |
