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: Sat, 12 Aug 2006 14:42:16 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1155383213 25786 80.91.229.2 (12 Aug 2006 11:46:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Aug 2006 11:46:53 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 12 13:46:50 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 1GBrsv-0001Q8-Vq for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 13:42:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBrsv-0007fh-HV for ged-emacs-devel@m.gmane.org; Sat, 12 Aug 2006 07:42:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GBrsi-0007be-2D for emacs-devel@gnu.org; Sat, 12 Aug 2006 07:42:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GBrsg-0007an-Aj for emacs-devel@gnu.org; Sat, 12 Aug 2006 07:42:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GBrsg-0007ae-8O for emacs-devel@gnu.org; Sat, 12 Aug 2006 07:42:18 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GBry1-0005ZX-5U; Sat, 12 Aug 2006 07:47:49 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-154-186.inter.net.il [80.230.154.186]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id EJY18907 (AUTH halo1); Sat, 12 Aug 2006 14:42:11 +0300 (IDT) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Fri, 11 Aug 2006 15:24:04 -0400) 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:58312 Archived-At: > From: Richard Stallman > Date: Fri, 11 Aug 2006 15:24:04 -0400 > Cc: emacs-devel@gnu.org > > 2) A related suggestion is this (which I think I might have made already): > highlight definition/reference lines in Info, so they stand out better. See > attached screenshot. > > I do this in my own code, and I find that it helps readability. I use a > slightly different background color for the line, starting after the "- ", > and I use a different foregound color for each type name: Variable, User > Option, Command, Macro, Function, Special Form, and Syntax Class. In > particular, this helps you distinguish Variable and User Option visually; > likewise, Function and Command. > > The regexp is trivial, and so far I've never seen a false or missed hit: > "^ --? \\(Function:\\|Variable:\\|Special Form:\\|\ > Command:\\|User Option:\\|Macro:\\|Syntax class:\\)\\(.*\\)" > > That sounds like a good idea, and small enough we can use it from you > without papers. Eli, if no one objects in a few days, would you > please install? Sorry, I don't understand what to install. Drew didn't show any code, nor explained in detail what the code should do and how. The only thing I see is a regexp. Is there already a variable that should be set to that regexp? If so, please tell which variable is that.