all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: haj@posteo.de (Harald Jörg)
To: Vincent Lefevre <vincent@vinc17.net>
Cc: 14343@debbugs.gnu.org
Subject: bug#14343: cperl-mode: Inserting text into here-documents now works
Date: Tue, 31 Aug 2021 11:56:55 +0000	[thread overview]
Message-ID: <87pmttn7y0.fsf@hajtower> (raw)
In-Reply-To: <20210831091229.GJ22410@zira.vinc17.org> (Vincent Lefevre's message of "Tue, 31 Aug 2021 11:12:29 +0200")

Hello,

> On 2021-08-31 07:04:31 +0000, Harald Jörg wrote:
>> The bug which made CPerl mode mistreat changes to here-documents has
>> been fixed in the repository, for the cases of (insert "\n") (Bug#28962)
>> and yanking (Bug#14343) in particular, and in general for changes by
>> elisp code.
>> 
>> cperl-mode.el from the repository can be used with Emacs 26.1 or newer.
>
> Concerning my bug #14343, I had noted 4 years ago in the associated
> Debian bug that I could no longer reproduce the issue in Emacs 25:
>
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=706701#17

Thanks for that info!  I admit that I haven't checked the fate of the
Debian bug report when I started testing, but I can confirm that with
your particular recipe, the bug does not appear.

> So it seems that there had already been some fixes in the past...

The bug was still open in the Emacs bugtracker, so I did some tests and
found that when I yank a region from regions _outside_ of a here-doc
text, then fontification still wasn't correct (without that fix).  For a
colorful example, triple-click the line "print <<EOF;" and paste
with the middle mouse button.

So, the fix in Emacs 25 was only partial.  As of now, whatever you paste
into the here-document, should be fontified correctly, so eventually
I've closed the bug in the Emacs bugtracker.
-- 
Cheers, and thanks for reporting back,
haj





  reply	other threads:[~2021-08-31 11:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-23 23:13 bug#28962: inserting newline at start of line in HERE doc breaks syntax highlighting Troy Hinckley
2020-08-26 16:26 ` bug#28962: A workaround to this issue is available in cperl-mode Harald Jörg
2020-08-26 20:21   ` Stefan Kangas
2020-08-27  8:58     ` Harald Jörg
2020-08-27  9:36       ` Stefan Kangas
2021-08-23 10:50 ` bug#28962: (no subject) Harald Jörg
2021-08-31  7:04 ` bug#28962: cperl-mode: Inserting text into here-documents now works Harald Jörg
2021-08-31  9:12   ` Vincent Lefevre
2021-08-31 11:56     ` Harald Jörg [this message]
2021-08-31 12:08       ` bug#14343: " Vincent Lefevre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmttn7y0.fsf@hajtower \
    --to=haj@posteo.de \
    --cc=14343@debbugs.gnu.org \
    --cc=vincent@vinc17.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.