From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#33913: 26.1; Optionally not font-lock newline char when `comment-end' = "" Date: Sun, 30 Dec 2018 18:46:55 +0100 Message-ID: <5C29048F.8050108@gmx.at> References: <8712bcf4-a44a-4336-b398-e59202165fb6@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070400080906080108000406" X-Trace: blaine.gmane.org 1546191971 14029 195.159.176.226 (30 Dec 2018 17:46:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Dec 2018 17:46:11 +0000 (UTC) To: Drew Adams , 33913@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 30 18:46:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdfA7-0003ZR-4q for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Dec 2018 18:46:07 +0100 Original-Received: from localhost ([127.0.0.1]:45735 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdfCD-00019G-Lv for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Dec 2018 12:48:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gdfC1-00018c-VD for bug-gnu-emacs@gnu.org; Sun, 30 Dec 2018 12:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gdfBy-00009k-Q2 for bug-gnu-emacs@gnu.org; Sun, 30 Dec 2018 12:48:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gdfBy-00009I-MX for bug-gnu-emacs@gnu.org; Sun, 30 Dec 2018 12:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gdfBy-0000Jp-Gk for bug-gnu-emacs@gnu.org; Sun, 30 Dec 2018 12:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Dec 2018 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33913 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33913-submit@debbugs.gnu.org id=B33913.15461920291150 (code B ref 33913); Sun, 30 Dec 2018 17:48:02 +0000 Original-Received: (at 33913) by debbugs.gnu.org; 30 Dec 2018 17:47:09 +0000 Original-Received: from localhost ([127.0.0.1]:42570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdfB7-0000IU-Ek for submit@debbugs.gnu.org; Sun, 30 Dec 2018 12:47:09 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:50411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gdfB5-0000I5-MY for 33913@debbugs.gnu.org; Sun, 30 Dec 2018 12:47:08 -0500 Original-Received: from [192.168.1.101] ([46.125.249.115]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MAgzj-1gSz8s0dMx-00BqfT; Sun, 30 Dec 2018 18:46:57 +0100 In-Reply-To: <8712bcf4-a44a-4336-b398-e59202165fb6@default> X-Provags-ID: V03:K1:rEApx5DroSiRYCYgUH8fiex40Hb2W1rymeha0IpqPA/fjYqbI9G WWlgy+NcyL+hiqoZoLA+exRIrPhX1PF+PVZd0ir28+1NsToTV2IxHJoFoCLf1fc6yBCXPF5 77Y8kyrZCF5Hopq67psgQVlXsHXgDCVGdAMky6J654y0fEpVfxLBFTA1mqHyVUshaIqe/p4 zF17PXOOfJweRuVAWiKJA== X-UI-Out-Filterresults: notjunk:1;V03:K0:OsgkAJVHtJ0=:5/lbE7OoCfohz5FuRYMb9Q fxOpdpyd0RMBbhqMJHtTxAQe2qgJYDB/S31TaV9DwjK086XVsCY8ZKivNc63R9lm0y7qJtwGC TVmfuPOAg5VeOw/TewPGJXB936GztuViHmlnaseHqsMWCQOZAumw1OfaceNKpJw9HuKZ2eGJg aIQ+gcQ2hjjIocv9poP9Z3stGGl8JCIMsoZX+jqbhH0b0f03P/KBHtHNzn5A5ppDd1+QMDXZ1 eEUEEj3akn7QwuNxKv5QU1W2k7XFSrACLjm6zzSEWwVAj+IBDsrMbD2GohGNyGZkYrmU5EiBC WDZnGLB7KWr9UCrYzpAdJsKyqd4hPz4tHOTn/+CHjF7bFifVEHyUrDval/L/oADSZHxXj4VJh nSyT4AP//UexaPgkHy26X5+rAb4DXrjaXGLcjSW7xu/CW7N3HJWMfEVGfRDD3XfNSTOp/yr+6 +TmIeTsJAhcXoHxbXN22s8QwRxKhbJh2iJajdEfOY+Ys0d9h8L679YVoOEfiHCXo9u4mbrNSQ 5g5ZxcA7qcjnF7SlbTR6ZJnZkvdYkbDDpj8e76h/tRy1FHxpTyo9ZQSHtyFYpYzDuf6DG/1y4 PwO2t20UF0k/SKS8iALCQDapjC44hRhbELnlVBJCHSuOHgSlZc9+NJWUE6pznqNiBfBPDU2K7 +1Xm0uzCCloL+zGSHfVXZCEKa7Aqb6uCquRR0EGI0xUi+oADxdj097T+wdt8wfJYxs2Jc36jn kQicxXNbOmaEU3dGmale2JF5737RIXyPUUbPJi5jlGB0ec+4R8xLWTpgbBdt0k/H3Nli78uf X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154028 Archived-At: This is a multi-part message in MIME format. --------------070400080906080108000406 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Please consider letting users easily (e.g. user option) not highlight a > newline character when it ends a comment, such as in Lisp. > > The effect should be to highlight only the chars of the line, starting > with `comment-start', up to but not including the newline char. For my private solution to this problem look at the attached file. > (I never would have noticed how annoying the default behavior is if > I hadn't tried putting a background color on comments, as the OP > did. I don't even think it should be the default behavior to > highlight the newline char.) Fully agreed. martin --------------070400080906080108000406 Content-Type: application/emacs-lisp; name="font-lock-fontify-syntactically-region.el" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="font-lock-fontify-syntactically-region.el" KGN1c3RvbS1zZXQtZmFjZXMNCiAnKGZvbnQtbG9jay1jb21tZW50LWZhY2UgKCgoKGNsYXNz IGNvbG9yKSAoYmFja2dyb3VuZCBsaWdodCkpICg6YmFja2dyb3VuZCAiQmVpZ2UiIDpmb3Jl Z3JvdW5kICJCbGFjayIpKSkpKQ0KDQooZGVmdW4gZm9udC1sb2NrLWZvbnRpZnktc3ludGFj dGljYWxseS1yZWdpb24gKHN0YXJ0IGVuZCAmb3B0aW9uYWwgbG91ZGx5IHBwc3MpDQogICJQ dXQgcHJvcGVyIGZhY2Ugb24gZWFjaCBzdHJpbmcgYW5kIGNvbW1lbnQgYmV0d2VlbiBTVEFS VCBhbmQgRU5ELg0KU1RBUlQgc2hvdWxkIGJlIGF0IHRoZSBiZWdpbm5pbmcgb2YgYSBsaW5l LiINCiAgKHN5bnRheC1wcm9wZXJ0aXplIGVuZCkgICAgOyBBcHBseSBhbnkgbmVlZGVk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