GNU bug report logs -
#28962
cperl-mode: inserting newline at start of line in HERE
Previous Next
Reported by: Troy Hinckley <troyhinckley <at> gmail.com>
Date: Mon, 23 Oct 2017 23:59:01 UTC
Severity: minor
Tags: confirmed
Merged with 14343
Found in version 24.3
Done: haj <at> posteo.de (Harald Jörg)
Bug is archived. No further changes may be made.
Full log
Message #19 received at 28962 <at> debbugs.gnu.org (full text, mbox):
Harald Jörg <haj <at> 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.
This bug report was last modified 3 years and 342 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.