jit-spell icon indicating copy to clipboard operation
jit-spell copied to clipboard

jit-spell mode does not work in indirect buffers: seems disabled thereafter

Open ericsfraga opened this issue 2 years ago • 5 comments
trafficstars

I really like this package and have been using it for a week or so.

However, I use indirect buffers a lot (org-capture, org-roam). It seems that jit-spell does not work in these:

error in process filter: jit-spell--process-filter: Args out of range: #<buffer CAPTURE-2023-03-10.org>, 1, 125
error in process filter: Args out of range: #<buffer CAPTURE-2023-03-10.org>, 1, 125

Although this limitation is not ideal, the more serious problem is that once jit-spell fails in this way, it seems to be completely disabled thereafter, whether I disable and re-enable it or not.

ericsfraga avatar Mar 10 '23 14:03 ericsfraga

Okay, I use org capture so I should be able to reproduce and figure out what's going on.

astoff avatar Mar 10 '23 15:03 astoff

Are you using the current ELPA version (0.1) or the latest git? I see some glitches in the indirect buffer but not the breakage that you described.

astoff avatar Mar 11 '23 07:03 astoff

I was using 0.1 from ELPA (keeping things simple for me). I'll try 0.2 later today hopefully.

ericsfraga avatar Mar 11 '23 10:03 ericsfraga

It doesn't work on indirect buffers for the same reason that bug-reference-mode doesn't. This means I can only fix the problem if I add workarounds specifically to deal with the indirect buffer case. I think I need to weigh the importance of the problem against the kludginess of a potential solution (I don't have an assessment of either at this point :-)).

astoff avatar Mar 11 '23 10:03 astoff

Ah, okay. Difficult to asses the cost-benefit analysis for this case! No worries and thank you.

ericsfraga avatar Mar 11 '23 14:03 ericsfraga