From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Newsgroups: gmane.emacs.bugs Subject: bug#28962: (no subject) Date: Mon, 23 Aug 2021 10:50:20 +0000 Message-ID: <87sfz0305v.fsf@hajtower> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38402"; mail-complaints-to="usenet@ciao.gmane.io" To: 28962@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 23 12:51:13 2021 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 1mI7Xr-0009gQ-OJ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Aug 2021 12:51:11 +0200 Original-Received: from localhost ([::1]:53022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mI7Xp-0001T2-Pt for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Aug 2021 06:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mI7Xj-0001RS-3N for bug-gnu-emacs@gnu.org; Mon, 23 Aug 2021 06:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mI7Xi-00023o-Rt for bug-gnu-emacs@gnu.org; Mon, 23 Aug 2021 06:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mI7Xi-0008H2-HP for bug-gnu-emacs@gnu.org; Mon, 23 Aug 2021 06:51:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Aug 2021 10:51: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.162971583731760 (code B ref 28962); Mon, 23 Aug 2021 10:51:02 +0000 Original-Received: (at 28962) by debbugs.gnu.org; 23 Aug 2021 10:50:37 +0000 Original-Received: from localhost ([127.0.0.1]:40598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mI7XF-0008G5-Oe for submit@debbugs.gnu.org; Mon, 23 Aug 2021 06:50:37 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:57275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mI7XA-0008Fj-BK for 28962@debbugs.gnu.org; Mon, 23 Aug 2021 06:50:32 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id BA4E924002E for <28962@debbugs.gnu.org>; Mon, 23 Aug 2021 12:50:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1629715822; bh=XwZHZ9mBWfP4qSyluQsUK2UNTDgj5ZzeOxdUhhvnbUY=; h=From:To:Date:From; b=rzabAvWJaRdI3edKoi63AKyU3lh9zH/Ww79i8lfemzOSEtW49S9WzriPly012keec OxJZOK8YfedVvrmlbngq8c/L31nDXghIv15yMxzutEpa1CmBUyfNyOspNw/ss2BPC7 Z74YcW1jOb1a6nRAlf0X9BBKWQDe5YT7EaTxhzEeFjBcceI1nRNgKIOivTVRTw7icz LPSuD04oOBRuQSjy+ewAOPk96kXe0UFccIAMQ9/Rt/Q/bqZVr//q1oVXt1rEh+LnXu YDa35ecDrpOxtJY/Z1SuuQW2MpipjyQRbTz7+dBVuAyIRWR2JETlBG9qE7ovhEmEsC CPrti1snLdXJw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GtTXs1ynhz9rxb; Mon, 23 Aug 2021 12:50:20 +0200 (CEST) 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:212469 Archived-At: merge 28962 14343 thanks After some more digging, I'm merging this bug with Bug#14343. The root cause of both bugs is the same: Here-documents in CPerl mode are marked with text properties. Normal editing (in Emacs: via `self-insert-command' will make new characters inherit from their surroundings, so all is fine. If, however, text is entered with another elisp function, then no automatic inheritance takes place. Examples are `insert' (this bug report), `yank' (Bug#14343), but also `replace-string' if the first character of the here-document gets replaced. I am confident that this can be fixed if CPerl mode "steals" from Perl mode and marks here-documents as c-style comments for fontification. I am going to prepare a patch for this. -- Cheers, haj