diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-11 21:12:13 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-11 21:12:13 -0500 |
| commit | 9b906b32b6eccc289aca61b412d828f0daf32f72 (patch) | |
| tree | 630db249faa801b1d01cfacdd5551119a77bbf52 /scripts/theme-studio/sterling.json | |
| parent | 5d8262e7854e43c3a5013d60b8d32fa869bbb924 (diff) | |
| download | dotemacs-9b906b32b6eccc289aca61b412d828f0daf32f72.tar.gz dotemacs-9b906b32b6eccc289aca61b412d828f0daf32f72.zip | |
fix(lorem-optimum): guard empty chain, make cj/lipsum a command
cj/lipsum returned nil when the Markov chain was empty (for example with the training file missing), so cj/lipsum-insert ran (insert nil) and raised a cryptic wrong-type error far from the cause. It now signals a user-error naming the fix: train the chain or restore the file.
The Commentary advertised M-x cj/lipsum, but the function had no interactive spec. I added one, echoing the words interactively while still returning the string for cj/lipsum-insert and cj/lipsum-paragraphs.
Diffstat (limited to 'scripts/theme-studio/sterling.json')
0 files changed, 0 insertions, 0 deletions
