From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#28962: A workaround to this issue is available in cperl-mode Date: Thu, 27 Aug 2020 02:36:56 -0700 Message-ID: References: <5bbbe7e1-9d77-277a-cf7c-86ea2b134de8@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6496"; mail-complaints-to="usenet@ciao.gmane.io" To: Harald =?UTF-8?Q?J=C3=B6rg?= , 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:39:03 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 1kBEN5-0001Zw-PN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Aug 2020 11:39:03 +0200 Original-Received: from localhost ([::1]:57204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBEN4-00032p-Nq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Aug 2020 05:39:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBEM6-0001u0-FT for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2020 05:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBEM6-0005AA-61 for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2020 05:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBEM6-0003qk-2O for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2020 05:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Aug 2020 09:38:02 +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.159852102414709 (code B ref 28962); Thu, 27 Aug 2020 09:38:02 +0000 Original-Received: (at 28962) by debbugs.gnu.org; 27 Aug 2020 09:37:04 +0000 Original-Received: from localhost ([127.0.0.1]:41626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBELA-0003pA-7x for submit@debbugs.gnu.org; Thu, 27 Aug 2020 05:37:04 -0400 Original-Received: from mail-yb1-f182.google.com ([209.85.219.182]:40791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBEL8-0003oX-KR for 28962@debbugs.gnu.org; Thu, 27 Aug 2020 05:37:03 -0400 Original-Received: by mail-yb1-f182.google.com with SMTP id q3so2595968ybp.7 for <28962@debbugs.gnu.org>; Thu, 27 Aug 2020 02:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :content-transfer-encoding; bh=vDDAmYABcPn5uyaiytW+rMN7sYaYsaQTWlArxLX6frg=; b=gg5+o2yn2eXB8ByjH6QWy/7yACcWNzS/QI72qRLb7Od0PNnFXWe5bwFSuhPPKzCY1f gTZCwDp/RCQpRGyRji2QRDK6L73P4+RcgO9g4EzhOjHsLHazQj6Yfb/GigtBzCdWpnhj jUwEOnyOcI712bjdMUoh3mgvr8FzTF37HSK6ga19+LhD4FIYU7tkwM15puIDNis8lfco 6ZH333ZDP+R+X3/ScbXnpH+vxDXTm1F8UOUmol+IssSijhlLXCstUIYNtr3Lu7TUaD4p k8Wu2eA6Wv/2D1fp1GgoMpBTztsHJwfIdFoA2eVbvy5/sdZAyP14c8SIe//l+D/KJven NcmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:content-transfer-encoding; bh=vDDAmYABcPn5uyaiytW+rMN7sYaYsaQTWlArxLX6frg=; b=eVk9JittnKTn7jKAIHwCKM0DU25U8c33Fl1k5y/40hm8Dpxu5ZrZEzGF8izF6JyvM9 ziC7ZG4fORK4vb1L9fxBz1KgiBFw7jzSXelMGAqYEIR+e34S6wSwfungNzUNaAwaiqAu QQ5POGnM9wx2p/HeBcSiSXultOMWwN7Tq5O20RC5xu9u7IdXicF/blpc9h6vCw2mf2zI cUER65rOB+OLWQz9uJu0flMVWYYJZC86DrPnAvvLS+7yZecnzNZyBHfoKVCxPhrr3uNx cCwuIQ8qyaNx1e8PlrjALPewP1T6U2lo83LctjOzOY0JWvtqY2R7BmAJvUlg0m90eUCO gVuw== X-Gm-Message-State: AOAM531a0D+4td3m/hu+r9mXTL8iHDsoska1OlNsK9uOzQ9Y4IsBUm3m 40A69mw7hdwdzgGWwHSLbHWL7hcZFzKQILZt+i4QfH0CYLM= X-Google-Smtp-Source: ABdhPJzRHq9b9rBvEOhw4rSvRSSk7wIPxhrIp45DhZyNw2nabt8B31BfCaIuT0Prl0Ohfivb11J3UzfP81XTMt/i270= X-Received: by 2002:a25:7007:: with SMTP id l7mr26449374ybc.85.1598521017150; Thu, 27 Aug 2020 02:36:57 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 27 Aug 2020 02:36:56 -0700 In-Reply-To: <5bbbe7e1-9d77-277a-cf7c-86ea2b134de8@posteo.de> 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:186514 Archived-At: Harald J=C3=B6rg 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.