fixed PR 9113

svn: r8040
This commit is contained in:
Robby Findler 2007-12-17 23:16:23 +00:00
parent dd19a2d1ab
commit 02bd5d4a66

View File

@ -31,6 +31,7 @@ If the namespace does not, they are colored the unbound color.
mred/mred
setup/xref
scribble/xref
scribble/manual-struct
net/url
net/uri-codec
browser/external
@ -2385,6 +2386,8 @@ If the namespace does not, they are colored the unbound color.
(when definition-tag
(let-values ([(path tag) (xref-tag->path+anchor (get-xref) definition-tag)])
(when path
(let ([index-entry (xref-tag->index-entry (get-xref) definition-tag)])
(when index-entry
(send defs-text syncheck:add-background-color defs-text "navajowhite" start fin (syntax-e stx))
(send defs-text syncheck:add-menu
defs-text
@ -2394,14 +2397,14 @@ If the namespace does not, they are colored the unbound color.
(λ (menu)
(instantiate menu-item% ()
(parent menu)
(label (format (string-constant cs-view-docs) (syntax-e stx)))
(label (format (string-constant cs-view-docs) (exported-index-desc-name (entry-desc index-entry))))
(callback
(λ (x y)
(send-url (format "file://~a~a"
(path->string path)
(if tag
(string-append "#" (uri-encode tag))
""))))))))))))))))))
""))))))))))))))))))))