From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Hiding *Note:: "tags" in info files Date: 01 Nov 2002 01:10:09 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: <5xiszi176m.fsf@kfs2.cua.dk> References: <20021029120319.95A4F7C012@mail.filanet.dk> <5xvg3jo57z.fsf@kfs2.cua.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036106610 29939 80.91.224.249 (31 Oct 2002 23:23:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 31 Oct 2002 23:23:30 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 187Oeu-0007mk-00 for ; Fri, 01 Nov 2002 00:23:28 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 187Oki-0006Rn-00 for ; Fri, 01 Nov 2002 00:29:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 187Of4-0003WQ-00; Thu, 31 Oct 2002 18:23:38 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 187OSB-0006BW-00 for emacs-devel@gnu.org; Thu, 31 Oct 2002 18:10:19 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 187OS5-00065Q-00 for emacs-devel@gnu.org; Thu, 31 Oct 2002 18:10:16 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 187OS4-000637-00; Thu, 31 Oct 2002 18:10:12 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id A531E7C019; Thu, 31 Oct 2002 23:10:10 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: Original-Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9017 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9017 Richard Stallman writes: > The following improved patch does that for *Note but not for *note. > > BTW, should it handle *note Item: Section. differently from *note Item:: > (e.g. by hiding the Section part)? > > In any case, there are many incorrect uses of *Note: in the info files, > so you will still see a some "see See ..." occurrences. > > How about checking for the presence of "see" in the buffer, > and putting in "See" only if there is no "see"? There are also other contexts where it doesn't make sense to add "see" instead of the *note or *Note. I have now committed a change which looks for preceeding punctuation to determine whether it should add "See ", "see ", or nothing before the note text. This only happens when font-lock-mode is enabled. It also hides the "Section" part of the *note:... links to further improve readability. Furthermore, it hides the Section part of menu items, and replaces it by a suitable number of spaces to properly align (previously mis-aligned) menus and sub-menus. I used the intangible property to make moving around in the info buffer with normal cursor motion act sensible; consequently, I had to bind inhibit-point-motion-hooks to t in the functions which parses the various cross references. IMHO, the result looks quite good. WDYT? -- Kim F. Storm http://www.cua.dk