[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#28962: A workaround to this issue is available in cperl-mode
From: |
Stefan Kangas |
Subject: |
bug#28962: A workaround to this issue is available in cperl-mode |
Date: |
Thu, 27 Aug 2020 02:36:56 -0700 |
Harald Jörg <haj@posteo.de> writes:
> After some more digging (my experience with elisp is still limited)
> I found that the problem can be avoided by using `insert-and-inherit'
> instead of `insert'. cperl-mode uses text properties to detect the
> HEREiness of buffer contents - and `insert' just doesn't provide them.
>
> So, the problem only occurs when text is inserted via elisp code. It
> can be avoided by using `insert-and-inherit', or, if one can't modify
> the function, recovered from by calling `cperl-find-pods-heres'. In
> my eyes this is good enough. It seems that the reporter wasn't aware
> of either possibility, so maybe they're happy if we tell them about
> the workarounds - and then close as wontfix.
Makes sense to me. I think you should do that.