From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Harald =?UTF-8?Q?J=C3=B6rg?= Newsgroups: gmane.emacs.bugs Subject: bug#28962: A workaround to this issue is available in cperl-mode Date: Thu, 27 Aug 2020 10:58:51 +0200 Message-ID: <5bbbe7e1-9d77-277a-cf7c-86ea2b134de8@posteo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31799"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 To: Stefan Kangas , 28962@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 27 11:00:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kBDlT-00088j-T9 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Aug 2020 11:00:12 +0200 Original-Received: from localhost ([::1]:47598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBDlS-00058P-HR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Aug 2020 05:00:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBDlK-000584-NA for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2020 05:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBDlK-0000DK-60 for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2020 05:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBDlK-0000ip-2g for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2020 05:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Harald =?UTF-8?Q?J=C3=B6rg?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Aug 2020 09:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28962 X-GNU-PR-Package: emacs Original-Received: via spool by 28962-submit@debbugs.gnu.org id=B28962.15985187422679 (code B ref 28962); Thu, 27 Aug 2020 09:00:01 +0000 Original-Received: (at 28962) by debbugs.gnu.org; 27 Aug 2020 08:59:02 +0000 Original-Received: from localhost ([127.0.0.1]:41587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBDkM-0000h8-5R for submit@debbugs.gnu.org; Thu, 27 Aug 2020 04:59:02 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:35659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBDkI-0000gc-Oq for 28962@debbugs.gnu.org; Thu, 27 Aug 2020 04:59:01 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4857B240101 for <28962@debbugs.gnu.org>; Thu, 27 Aug 2020 10:58:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1598518732; bh=lqZsDKlBJgMy89tr28PG3Vnl6qysl3BKZeKnSEOTbZk=; h=From:Subject:To:Autocrypt:Date:From; b=SMmopyspqFfMu5NSydJ+OkfKEHM3cWeJxEeDNsKArciUAsnAUYBOi9WGVjAg25eF/ JFUvI2nNzlJvMkAj9PykzIyZ1Mi//z+xfmrDZy+dr/YcSkP1CJLBvSHpy+MKSrwXxS QYqxOCKEXeKpzKunobgD8sesPSgu6cDDIYywWyU7myyF1Ocaq77WP589PbSqOrUjK8 Kgu9MguTgJAMDfrbZjIOpMmbju/Lt2DdnnLfmQdJtJ0voa3UHo5FmXjWp3tvjJgUjM lnvLAMaznQomGskrrbdap+3rjjpmCv7H0vQYFEHI5JU1DpMbOhDJ3/tddJGJeCc9lJ QSi2UR3GSIGSQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Bcc8q60NQz9rxD; Thu, 27 Aug 2020 10:58:51 +0200 (CEST) Autocrypt: addr=haj@posteo.de; keydata= mQINBF0DVrIBEAC7TRlIilBg/5Dx7R2rV4FBDEavbyMT2cS2wWyksh7JA8e17LNmTdakf+Bm u6C2m6+frolteYRlkreoyAg0fj/5tDw/s5dJDw3tM0b+m/pj2HcwTSRpQSEy5lBiCg11E6Mt F9UngCfkGtJzu8PBWXc1RDQVBwRn5MZbpMZZatE8NOq9AA3Yg6sY11Ez3xIvYU2R7a4OSxmc RJV2+dhdQ4oOTBIGQ2urQSU81kyRtkx+/Yh8WefMrk9nF3nzYziLS53euCAXyzklwYmD6Li3 XSu7wYp5fISky9DK6DPFK7h4RXEL4GFAhy31ehrVnNTcGRohM1Dm9BV9dwXkwlaeT3q0X+nE SXVqPDHtv748bXNIg2WVCZ0WgShcA46XVlSE9Fm+w0HI/1m1L4BaMmQ7gyK5dEchbhxohkk0 AqC3hEJ4ULRidrsCoCWGMFKiOIb9rjeC00vhrUkVJDkPWEGLXjhnRQykb6cESko0rPrSDLqX 9YqaNQ6KO9Un6uogE7YnXYg35EXJ8ORdX257IbXNbFVpgM8FFsl48WV3Pl9WNdADhnnOrz3O wzyK58i/BTsnjVX8ghbWkQcPQ2Kprt+4YR2trEi7TM5Uqzzrg0vp7Oe/9KZBxdxCE67thV7h ElW3CHb4q6o31b4cFmLbtFesSy+hnUU4UymgHgi/hvhxioBxIQARAQABtBxIYXJhbGQgSsO2 cmcgPGhhakBwb3N0ZW8uZGU+iQJOBBMBCAA4FiEEIpYEZLQynxF8Q17KN4XzzzqAcpsFAl0D VrICGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQN In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186505 Archived-At: On 8/26/20 10:21 PM, Stefan Kangas wrote: > Harald Jörg writes: > >> The root cause is that within HERE documents and PODs there's no >> syntax re-checking for every character inserted. >> >> To recover from such a situation, cperl-mode offers a >> command `cperl-find-pods-heres', also available from the menu >> 'Perl' -> 'Refresh "hard" constructions'. A function which inserts >> text in a POD or HERE document should call cperl-find-pods-heres >> afterwards to avoid the issue. > > Is that something we should work on improving, or does that mean that we > should close this as wontfix? 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. -- Cheers, haj