emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-mode-flyspell-verify: Why skip checking the LOGBOOK?


From: Morgan Willcock
Subject: Re: org-mode-flyspell-verify: Why skip checking the LOGBOOK?
Date: Sat, 10 Aug 2024 18:19:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Ihor Radchenko <yantar92@posteo.net> writes:

>> Is there any way to re-enable spell-checking of the notes without adding
>> advice to org-mode-flyspell-verify to hijack the result?
>
> It looks like LOGBOOK drawers should not be ignored by flyspell.
> May you comment out that check locally and see how it goes?

I switch between computers fairly frequently and the Org versions may
not be exactly in sync.  Rather than editing the source code or
redefining the entire function, would it be acceptable to you if I use
the following advice for testing?

  (advice-add 'org-mode-flyspell-verify
              :around (lambda (orig-fun &rest args)
                        (let (org-log-into-drawer)
                          (apply orig-fun args))))

> Ideally, please check things like CLOCK and automatic todo state change
> notes.

Moving over those entries with the advice added, I cannot see any
obvious issues, although I imagine some people may see a difference if
their todo-keywords are spelled in a way that doesn't match the
dictionary being used by Flyspell, e.g. CANCELED vs. CANCELLED.

-- 
Morgan Willcock



reply via email to

[Prev in Thread] Current Thread [Next in Thread]