From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?S=C3=A9bastien?= Miquel Newsgroups: gmane.emacs.bugs Subject: bug#46558: Interaction between font-lock-extend-region-wholelines and font-lock-extend-region-multiline Date: Sun, 19 Jun 2022 12:56:24 +0000 Message-ID: References: <877d5f71wn.fsf@gnus.org> Reply-To: sebastien.miquel@posteo.eu Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2OpjxCCLrCv86I9LWcpsyLn1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="678"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46558@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 19 14:57:15 2022 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 1o2uUM-000AXK-A6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 14:57:14 +0200 Original-Received: from localhost ([::1]:47510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2uUL-00062a-6i for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 08:57:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2uUA-00061Y-Nu for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 08:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2uUA-0000R3-Ez for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 08:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o2uUA-0002hk-Ei for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 08:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?S=C3=A9bastien?= Miquel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jun 2022 12:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46558 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 46558-submit@debbugs.gnu.org id=B46558.165564339510319 (code B ref 46558); Sun, 19 Jun 2022 12:57:02 +0000 Original-Received: (at 46558) by debbugs.gnu.org; 19 Jun 2022 12:56:35 +0000 Original-Received: from localhost ([127.0.0.1]:50835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2uTj-0002gL-3M for submit@debbugs.gnu.org; Sun, 19 Jun 2022 08:56:35 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:56683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2uTg-0002g2-DF for 46558@debbugs.gnu.org; Sun, 19 Jun 2022 08:56:33 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2902B240107 for <46558@debbugs.gnu.org>; Sun, 19 Jun 2022 14:56:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1655643386; bh=Z6BbnP4W71PbUYHxFfXqQ3GJv9A3Ytp9aAkgELubE6A=; h=Date:Subject:To:Cc:From:From; b=ShSCGS2A1IcgF8TPeD7KgBUQkEAi7XP0lUw9CZI9nG5e9/DEoJsDJnHIyLNsPLMfX M3keOpPCi6phQi3ewxHWIV2IuhqA9E5Pa9U3wZgA1+7jGHm5BKyoegPlDV4i/OlgsD hRgzkK+Mrt8/YGhVkvxx1zoezQhbvIINrqI8/NBbX+xVLv7jZ5Fae+cBBUmldU6QHb xn/VRl+A9fdwsoYftVyLF2TzoEM1LcH6NApnOxprnzXl7Y9qNjThUNJlN3nQCbUd2e 8tnqmkpPlQ/96vkkMRe7m+2FQR/RTjrQSGY64inUnXqcBKn06FvXd589iHvOhkOwSI nefrEU37L0crA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LQt7s0k8Lz6tmL; Sun, 19 Jun 2022 14:56:25 +0200 (CEST) Content-Language: fr In-Reply-To: <877d5f71wn.fsf@gnus.org> 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:234782 Archived-At: This is a multi-part message in MIME format. --------------2OpjxCCLrCv86I9LWcpsyLn1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, Lars Ingebrigtsen writes: > Do you have a patch to propose here, by any chance? Here's what I had in mind. -- Sébastien Miquel --------------2OpjxCCLrCv86I9LWcpsyLn1 Content-Type: text/x-patch; charset=UTF-8; name="0001-Small-fix-in-font-lock-extend-region-multiline-Bug-4.patch" Content-Disposition: attachment; filename*0="0001-Small-fix-in-font-lock-extend-region-multiline-Bug-4.pa"; filename*1="tch" Content-Transfer-Encoding: base64 RnJvbSA1N2E1YTk1OWM1ZTVmOTA0MWM3NmZhYTA4NDJmZjk5OWU1OWQ3OGJjIE1vbiBTZXAg M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AgICAgICAgICAgICAgICAgICAgICAgICAocG9pbnQtbWluKSkpKQotICAgIDs7Ci0gICAg KHdoZW4gKGdldC10ZXh0LXByb3BlcnR5IGZvbnQtbG9jay1lbmQgJ2ZvbnQtbG9jay1tdWx0 aWxpbmUpCi0gICAgICAoc2V0cSBjaGFuZ2VkIHQpCi0gICAgICAoc2V0cSBmb250LWxvY2st ZW5kIChvciAodGV4dC1wcm9wZXJ0eS1hbnkgZm9udC1sb2NrLWVuZCAocG9pbnQtbWF4KQot ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdmb250 LWxvY2stbXVsdGlsaW5lIG5pbCkKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChw b2ludC1tYXgpKSkpCisgICAgOzsgSWYgYGZvbnQtbG9jay1tdWx0aWxpbmUnIHN0YXJ0cyBh dCBgZm9udC1sb2NrLWVuZCcsIGRvIG5vdAorICAgIDs7IGV4dGVuZCB0aGUgcmVnaW9uLgor ICAgIChsZXQgKChiZWZvcmUtZW5kIChtYXggKHBvaW50LW1pbikgKDEtIGZvbnQtbG9jay1l bmQpKSkKKyAgICAgICAgICAobmV3LWVuZCBuaWwpKQorICAgICAgKHdoZW4gKGdldC10ZXh0 LXByb3BlcnR5IGJlZm9yZS1lbmQgJ2ZvbnQtbG9jay1tdWx0aWxpbmUpCisgICAgICAgIChz ZXRxIG5ldy1lbmQgKG9yICh0ZXh0LXByb3BlcnR5LWFueSBiZWZvcmUtZW5kIChwb2ludC1t YXgpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnZm9u dC1sb2NrLW11bHRpbGluZSBuaWwpCisgICAgICAgICAgICAgICAgICAgICAgICAgIChwb2lu dC1tYXgpKSkKKyAgICAgICAgKHdoZW4gKC89IG5ldy1lbmQgZm9udC1sb2NrLWVuZCkKKyAg ICAgICAgICAoc2V0cSBjaGFuZ2VkIHQpCisgICAgICAgICAgKHNldHEgZm9udC1sb2NrLWVu ZCBuZXctZW5kKSkpKQogICAgIGNoYW5nZWQpKQoKIChkZWZ1biBmb250LWxvY2stZXh0ZW5k LXJlZ2lvbi13aG9sZWxpbmVzICgpCi0tIAoyLjM2LjEK --------------2OpjxCCLrCv86I9LWcpsyLn1--