ledger-mode icon indicating copy to clipboard operation
ledger-mode copied to clipboard

highlight-regexp doesn't work in ledger-mode ?

Open simonmichael opened this issue 8 years ago • 2 comments

I just tried using highlight-regexp to highlight "TODO" in yellow, but it doesn't work unless I turn off font-lock-mode. That's a pity, and as far as I know unusual, that they won't coexist ?

simonmichael avatar Oct 14 '17 17:10 simonmichael

The "TODO" was placed in comments, presumably?

purcell avatar Oct 20 '17 21:10 purcell

It can also be in description or account names, eg.

simonmichael avatar Oct 20 '17 21:10 simonmichael

This behavior isn't happening for me (6 years later).

I came across this issue while submitting a pull-request for fixing the comment highlighting for postings.

When I use highlight-regexp (with font-lock-mode of course) to highlight all occurences of TODO, it successfully highlights them all, regardless of where they are. If TODO is found anywhere in the file, it gets highlighted over the fontification specified by ledger-mode. I've tried it in tags, in directives, in transaction lines, in posting lines, globally, etc.

Running Emacs version 29.1, and the latest ledger-mode version from MELPA (version 4.0.0?)

jstamant avatar Sep 19 '23 22:09 jstamant

If @simonmichael can confirm then I think we can close this issue.

doolio avatar Jan 04 '24 13:01 doolio

Thank you, yes I can't reproduce in emacs 30.0.50 with a recent ledger-mode.

simonmichael avatar Jan 04 '24 16:01 simonmichael