Subject: Re: bug#75996: 31.0.50; occur-edit-mode fails with context lines

From: Juri Linkov <[email-masked]>
Date: Thu, 06 Feb 2025 19:10:06 +0200

> => occur-after-change-function: Wrong type argument: markerp, nil
>
> The broader issue is that edits made to context lines (other than those
> with matches) don't propagate to the buffer after C-c C-c.
>
> I'd be happy to try to fix this, but wanted to check if it's a known
> issue.  I wasn't able to find to find it in the bug tracker.

Thanks for offering help.

In https://debbugs.gnu.org/75530#80 we have more problems
with occur-after-change-function.

We need to revert the workaround for bug#53419,
and find another solution to not allow RET to
insert newlines in the line numbers prefix.

occur-after-change-function already undoes newlines,
but only when RET is typed in the text lines,
not in the line numbers prefix.

The same question is for context lines that instead
of making context lines read-only all edits made
should propagate to the buffer immediately?