[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding *Note:: "tags" in info files

From: Kim F. Storm
Subject: Re: Hiding *Note:: "tags" in info files
Date: 01 Nov 2002 01:10:09 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Richard Stallman <address@hidden> 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

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 <address@hidden> http://www.cua.dk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]