From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: definition lines in Info - 1) link, 2) highlight Date: Sun, 13 Aug 2006 00:58:51 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1155419955 20281 80.91.229.2 (12 Aug 2006 21:59:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2006 21:59:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 12 23:59:14 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GC1VY-000350-CK for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 23:59:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GC1VX-0003ku-7o for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 17:59:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GC1VJ-0003hC-60 for emacs-devel@gnu.org; Sat, 12 Aug 2006 17:58:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GC1VI-0003f3-6L for emacs-devel@gnu.org; Sat, 12 Aug 2006 17:58:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GC1VI-0003ek-2f for emacs-devel@gnu.org; Sat, 12 Aug 2006 17:58:48 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GC1aj-0003oj-HU for emacs-devel@gnu.org; Sat, 12 Aug 2006 18:04:25 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-21-17.inter.net.il [80.230.21.17]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id EJZ89881 (AUTH halo1); Sun, 13 Aug 2006 00:58:45 +0300 (IDT) Original-To: "Drew Adams" In-reply-to: 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:58341 Archived-At: > From: "Drew Adams" > Date: Sat, 12 Aug 2006 10:33:23 -0700 > > One way to do it: > > 1. Define a face for each of the description types: Function, Special Form, > etc. I have 7 such faces, so a reader can easily pick out, say, a Command or > Variable from a list of Functions. > > 2. Define a face for the rest of each description line, to be used for all > description types. That is, a description such as "Function: foo INTEGER1 > &optional INTEGER2" will have one face applied to "Function:" and another > face applied to " foo INTEGER1 &optional INTEGER2". I use the same > background for all 8 faces. > > 3. Define a function that searches a node for the regexp and fontifies (via > put-text-property) accordingly, using the faces. > > 4. Call #3 in Info-fontify-node. For Emacs 22, I do that just before the > titles are fontified. Thanks. Richard, is this what you had in mind? Frankly, it sounds too complicated to me to install at this point.