From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#23461: perl-mode: Displaying HERE-docs as strings instead of comments [PATCH] Date: Tue, 22 Dec 2020 23:00:01 -0500 Message-ID: References: <87sg7xxo0s.fsf@hajtower> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39471"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 23461@debbugs.gnu.org To: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 23 05:01: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 1krvKo-000A9o-RZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Dec 2020 05:01:11 +0100 Original-Received: from localhost ([::1]:55856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krvKn-0004PI-Lz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Dec 2020 23:01:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krvKg-0004PB-GG for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 23:01:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krvKg-0001Ij-7J for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 23:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1krvKg-0003G6-2v for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 23:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Dec 2020 04:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23461 X-GNU-PR-Package: emacs Original-Received: via spool by 23461-submit@debbugs.gnu.org id=B23461.160869601612433 (code B ref 23461); Wed, 23 Dec 2020 04:01:02 +0000 Original-Received: (at 23461) by debbugs.gnu.org; 23 Dec 2020 04:00:16 +0000 Original-Received: from localhost ([127.0.0.1]:51454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krvJw-0003ET-3I for submit@debbugs.gnu.org; Tue, 22 Dec 2020 23:00:16 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:47280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krvJq-0003D4-D3 for 23461@debbugs.gnu.org; Tue, 22 Dec 2020 23:00:13 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AE75B44149B; Tue, 22 Dec 2020 23:00:04 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 645AB4411FC; Tue, 22 Dec 2020 23:00:03 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1608696003; bh=/U+CEOQ0quU+FqBn6mfd0PqcqM9uoHjLGzdeJlIJ8zM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=CqCY/FMKUOUY4yERLt7k9EiR1aqjTDh51ppv8V7jneXiK+M8QkRn8hIsz025dTAMw rl8IbaMWtHroHu6Xca8ADE+F+Irg8JwWL+zSyjP8ghFRJgDm2dSP2BbOpSirp1kz0L X9Bp/1DBvkA/bZBMgOZRqMjMgmhLhnAZ5cQLyIGY9pbNLaI8K7xQJ1yZhou6CORYEF +Qwch9mZViRaSrgbPUz+XJ8C2V53O24odiML/+HsSjNNOsdSFjyKjGh69Vy/riXgQ0 +ua+1Thz8pCkJWyZ1WeLvkIGYqhG5HIekpRnUhWTrks+CN5Q3QaITokfL1kVfvMRQJ ALUmfln9nfIYA== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 04277120352; Tue, 22 Dec 2020 23:00:02 -0500 (EST) In-Reply-To: <87sg7xxo0s.fsf@hajtower> ("Harald =?UTF-8?Q?J=C3=B6rg?="'s message of "Wed, 23 Dec 2020 03:19:15 +0100") 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:196599 Archived-At: > Investigating how to fix this leads to the longer story. There are two > possible approaches: > > 1) use a string-style syntax (generic string) instead of c-style > comments to flag HERE-documents. That way, font-lock picks up the > correct face automagically. > > 2) Keep HERE_docs as c-style comments, but change the face mapping by > injecting a function into font-lock-defaults which applies the > string face to c-style comments. 3) Use `font-lock-syntactic-face-function`? Stefan