From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Faces customization group linked from mode groups Date: Sat, 05 Nov 2005 09:43:55 +0200 Organization: JURTA Message-ID: <87hdarodih.fsf@jurta.org> References: <436BDAC7.2090704@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1131178865 2710 80.91.229.2 (5 Nov 2005 08:21:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Nov 2005 08:21:05 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 05 09:20:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYJHz-0003ea-Q9 for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2005 09:20:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYJHz-0003Tl-1r for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2005 03:20:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EYIxh-0006Qb-Tz for emacs-devel@gnu.org; Sat, 05 Nov 2005 02:59:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EYIxg-0006Q9-N6 for emacs-devel@gnu.org; Sat, 05 Nov 2005 02:59:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYIxG-0006GX-NB for emacs-devel@gnu.org; Sat, 05 Nov 2005 02:59:15 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EYIxG-0001pU-U7 for emacs-devel@gnu.org; Sat, 05 Nov 2005 02:59:15 -0500 Original-Received: from mail.neti.ee (80-235-33-80-dsl.mus.estpak.ee [80.235.33.80]) by Relayhost1.neti.ee (Postfix) with ESMTP id 94139174E; Sat, 5 Nov 2005 09:59:28 +0200 (EET) Original-To: Lennart Borgman In-Reply-To: <436BDAC7.2090704@student.lu.se> (Lennart Borgman's message of "Fri, 04 Nov 2005 23:03:51 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45434 Archived-At: > There was recently a question on the gnu-emacs-help list from someone > trying to customize the faces used in syntax highlighting C mode. He > looked in C mode customization group but could not find it. > > Maybe it would be a good idea to have a link to the faces customization > from each mode customization group? (If that is possible in a simple way?) One solution is to add the parent group `font-lock-highlighting-faces' to all groups of modes that support font-lock. But this has one negative effect: the `group' link is two-directional, so the customization group `font-lock-highlighting-faces' will display too many children links to all such groups. A better solution is to implement a new one-directional link to another customization group. Currently `:link' supports four link types, and a new link type could have the name `custom-group'. It could create a one-directional link in the customization buffer leading to the specified group, e.g.: (defgroup c nil "Support for the C language and related languages." :link '(custom-manual "(ccmode)") ;; this is already existing link :link '(custom-group font-lock-highlighting-faces) ;; a new link type :group 'languages) -- Juri Linkov http://www.jurta.org/emacs/