From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Faces customization group linked from mode groups Date: Sat, 05 Nov 2005 20:59:16 +0100 Message-ID: <436D0F14.7000908@student.lu.se> References: <436BDAC7.2090704@student.lu.se> <87hdarodih.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1131220818 2848 80.91.229.2 (5 Nov 2005 20:00:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Nov 2005 20:00:18 +0000 (UTC) Cc: "Richard M. Stallman" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 05 21:00:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EYUCX-0001bz-I8 for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2005 20:59:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYUCX-0000qp-14 for ged-emacs-devel@m.gmane.org; Sat, 05 Nov 2005 14:59:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EYUCJ-0000oO-7O for emacs-devel@gnu.org; Sat, 05 Nov 2005 14:59:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EYUCH-0000m2-Ou for emacs-devel@gnu.org; Sat, 05 Nov 2005 14:59:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EYUCH-0000lu-Jt for emacs-devel@gnu.org; Sat, 05 Nov 2005 14:59:29 -0500 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EYUCG-0000lm-Os; Sat, 05 Nov 2005 14:59:28 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.060.1) id 4368D3FE000D08D3; Sat, 5 Nov 2005 20:59:17 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Juri Linkov In-Reply-To: <87hdarodih.fsf@jurta.org> 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:45469 Archived-At: Juri Linkov wrote: >>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. > > Is not this the opposite way of the way Richard suggested? But the problem you mention should essentially be the same, or? >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) > > To me this seems like the way to go. When it comes to updating these defgroup:s, is there an easy way to find all these modes?