From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: Re: Inheriting form font-lock-comment-delimiter-face Date: Mon, 14 Feb 2022 19:54:56 +0000 Message-ID: References: Reply-To: goncholden Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23797"; mail-complaints-to="usenet@ciao.gmane.io" Cc: goncholden via Users list for the GNU Emacs text editor To: goncholden Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 14 20:56:58 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 1nJhT0-0005zT-5R for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Feb 2022 20:56:58 +0100 Original-Received: from localhost ([::1]:36930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJhSy-00058u-Q9 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Feb 2022 14:56:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJhRG-0004sN-26 for help-gnu-emacs@gnu.org; Mon, 14 Feb 2022 14:55:10 -0500 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]:50649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJhRD-0007EU-MB for help-gnu-emacs@gnu.org; Mon, 14 Feb 2022 14:55:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1644868497; bh=jTgZoM+eEeIjcY8byLgyhkcruUX+2sgqYgvNP6+J3r8=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=htLHUKevotpRCupJemu40l468elqzRwKXy8qi5LfTG9Nxog/HwLE/N9YNjXW+Mznn YQdxGzdh/LSXT+HPs8pBvPKulOak0PYLIHYurmWvqcsxZw7uHH0eOYo+Dj89L7Jlow jS4Oy8mgVm2an4iYt80ed88A7dpAAX/V6Mihj85hp7rVXQPyJ2AhATs2juTKZcz7QJ aRrLfHuNP7DLOhSAbXgNY4VQ05/RZsRQxIco4msrnhp+BHXQD6ExYKauksR2O6l8kP 756spFj8nhJ2a1iuMEFhPnkJ9/EXBAZ2BSumWYStf5CON1snlU3CQGkG67l2uNimYa 4uczFZrV30L6g== In-Reply-To: Received-SPF: pass client-ip=185.70.43.19; envelope-from=goncholden@protonmail.com; helo=mail-4319.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TO_EQ_FM_DIRECT_MX=0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.help:135949 Archived-At: Because I use bold font by default, I want to have normal weight for commen= ts. I start with setting the weight for font-lock-comment-delimiter-face to normal, then copying to = font-lock-comment-face. Here is the function I have constructed. Does it make sense approaching th= e task in this way? (defun richkov-annotation-font-weight () "Use normal weight typeface for comments." (set-face-attribute 'font-lock-comment-delimiter-face nil :weight 'normal= ) (copy-face 'font-lock-comment-delimiter-face 'font-lock-comment-face) )