From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Introducing face in comments for various modes Date: Tue, 13 Dec 2022 09:17:02 +0100 Message-ID: References: <9ZK1Solghrmps4AarUsz2E6-mAdkrTZoXPs4RTRTd9sZ0Cd8DGhK955im1kuug-EZXU3tc5rgDDd16vQexxpFnMvMFjFqnNnh0noashyLdE=@protonmail.com> <0RJB0bPRTMAqXlUbL2kGUvJtnCNPYwPhqTNi_l9nIpQAciTZYcYCikFVqi2Nr_UZLbT1_DRtX8G0dSkgI4jln5DTYBDxLz4i7L2d9wx-kA8=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21983"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime , help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 13 09:18:29 2022 Return-path: Envelope-to: geh-help-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 1p50Uf-0005Y9-L4 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 13 Dec 2022 09:18:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p50U0-00080Z-RH; Tue, 13 Dec 2022 03:17:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p50Tx-0007yy-PQ for help-gnu-emacs@gnu.org; Tue, 13 Dec 2022 03:17:46 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p50Tv-00078H-Lu for help-gnu-emacs@gnu.org; Tue, 13 Dec 2022 03:17:45 -0500 Original-Received: from [92.251.127.164] ([92.251.127.164]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Tue, 13 Dec 2022 09:17:02 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:n03iytzi0ddVPO7P5conAx9ppba5dQ1D/JKzjkCoRIpyQqtWrMeZbpc8c7OH0DcGy+JJn 87gAq6BSRE7wn3EmXNVrHw/MzR2bAmBJNbzXbNbR+tEnk0M63Q4G/SKp250OYgcOqjbvpwl1DbB6 pZVZQ/XNOqYoGl9u1AjDXLjmfBYnzDxR3ix+3UUNciZasc/VgffRXNed9sL0mp/3jyaMNm/W/FlT SijUAxLBYoNjnJzzr3c1UABZScPI5J+s9b4/HfcB1pwbDBS4RKlvpyLpGn1Nb9nSEfkI0tiu2etS 9c= UI-OutboundReport: notjunk:1;M01:P0:aCYyvTL1YiI=;awOdjqddQRMt/X+lTrzdSku0b4Q tooez3xeNDAimHR+MjK8tUCf5tbLMUh/s2uA2nilsvwD8fvvhQSX4rxxzl5TN3JzI7hbBtfeq Umd7o28cfaeymylDHWydgZjRTALAb4SZXu4XxY2P8VRLewofPlFoq8U9dOatYaGf+uK8q2LMD KtJ0B4RObsW4QH3kFWkk0Osr7MGaAUb14Nsf4m2aG69Amt5T6VP7lMS7mLrzFi5XLWD6PlqnH m+jxDckolNnNbd/bTRB3zj2QS4YkXBYTa8h6ojP4Jsd+N9xBoUxRZBnjhMpqjOXe0ZJSa8o9g a9qPwh9kRwhjioHgZIwASNDNe8a0PAKCoEQojeOWqw3xjzBLEY1bP90kPspE6DQXLUcpGUz47 cBlrQAMg/nSvKylkilIQiJ+CD1Jse84MoWM4HOfH9bP418zU4PL9p+1KSnc7iWePuXc6uesBQ EFY2VC64P2MEVGakceW3qgv2aLfeUndZ3i+znYp5KUUafI+pMhJC8mOfElOjj3SVJvxlH442D fQvte+OkeRIxzQ2zzsLwqup+pQmfCVUojmID6h6LvMsp/Dw19H3sIEbSbfNI5lhg3wA/i4bMz 0PdJBVKnUWRgiY4dKmi89PaUdxYOoAAcpCu9Or6rBjPOlXTXBZtple7W6EMU+w4uUAr3ujfCS p/mZ1gQpnAwyurF1ETKnOkajuE+nw+p1rdUroww6G15oo/MFkrgWXDZnZAyXDzJmh0TdW3yIt A+SwRzqakFp+lMA9y2z51fUi9Swm2QYlw1JEHTnxncrLDWYbZd6zzQ6I+3bxoTtVrI1Zyl1T Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141698 Archived-At: > Sent: Tuesday, December 13, 2022 at 7:52 PM > From: "Jean Louis" > To: "Heime" > Cc: help-gnu-emacs@gnu.org > Subject: Re: Introducing face in comments for various modes > > > Heime, I like the idea of highlighting comments, though I do it this > way to specify (syntax comment-start) as that works for multiple > modes. > > ; one > ;; two > ;;; three > ;;;; and more > > ;;; Highlighting comments > > (setq rcd-regexp-comment (rx line-start > (one-or-more (syntax comment-start)) > (one-or-more space) > (group (one-or-more not-newline)) > line-end)) > > ;; (highlight-regexp regexp nil 1) > ;; (unhighlight-regexp regexp) > > -- > Jean Would your procedure not conflict when people use outline-mode. Such comments will end up getting folded by tho outline commands, something the OP does not want.