emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Manual: indexes are missing links


From: Juri Linkov
Subject: Re: Manual: indexes are missing links
Date: Sun, 07 Jan 2007 02:09:52 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.90 (gnu/linux)

>> As Jury corrected me, the problem is not with supporting the new
>> format, the problem was that menus in the indices were not decorated
>> as normal menus since long ago.
>>
>> I agree that we should consider revising this decision now, that the
>> machines are so much faster.
>
> OK; I turned it on.

Simply turning this on has an undesirable consequence that node names
are now hidden in the index node, but it is very useful to see them!
This is because index entries are not like normal links where nodes name
are not very essential.  I propose the following patch that doesn't hide
node names of the index entries while keeping index entries displayed
as links (blue and underlined).

Index: lisp/info.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/info.el,v
retrieving revision 1.493
diff -c -r1.493 info.el
*** lisp/info.el        22 Dec 2006 19:49:08 -0000      1.493
--- lisp/info.el        7 Jan 2007 00:08:32 -0000
***************
*** 3996,4002 ****
                                    (setq res (car hl) hl nil)
                                  (setq hl (cdr hl))))
                                res))) 'info-xref-visited 'info-xref)))
!             (when (and not-fontified-p (memq Info-hide-note-references '(t 
hide)))
                (put-text-property (match-beginning 2) (1- (match-end 6))
                                   'invisible t)
                ;; Unhide the file name in parens
--- 3996,4004 ----
                                    (setq res (car hl) hl nil)
                                  (setq hl (cdr hl))))
                                res))) 'info-xref-visited 'info-xref)))
!             (when (and not-fontified-p
!                        (memq Info-hide-note-references '(t hide))
!                        (not (Info-index-node)))
                (put-text-property (match-beginning 2) (1- (match-end 6))
                                   'invisible t)
                ;; Unhide the file name in parens

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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