Skip to content

Commit 4250d8a

Browse files
committed
add #:indirect to racketmodlink
1 parent 4995ee9 commit 4250d8a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

scribble-doc/scribblings/scribble/manual.scrbl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,14 @@ hyperlink's resolution in HTML potentially delayed; see
519519
@history[#:changed "1.21" @elem{Disabled @racket[racket]-style special
520520
treatment of identifiers.}]}
521521

522-
@defform[(racketmodlink datum pre-content-expr ...)]{
522+
@defform[(racketmodlink datum maybe-indirect pre-content-expr ...)
523+
#:grammar ([maybe-indirect code:blank
524+
#:indirect])]{
523525
Like @racket[racketmodname], but separating the module path to link
524526
from the content to be linked. The @racket[datum] module path is always
525-
linked, even if it is not an identifier.}
527+
linked, even if it is not an identifier.
528+
529+
@history[#:changed "1.59" @elem{Added support for @racket[#:indirect].}]}
526530

527531
@defproc[(litchar [str string?] ...) element?]{Typesets @racket[str]s as a
528532
representation of literal text. Use this when you have to talk about

scribble-lib/scribble/private/manual-scheme.rkt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@
207207
(as-modname-link 'n (**racketmodname n) #t)]))
208208

209209
(define-syntax racketmodlink
210-
(syntax-rules (unsyntax)
210+
(syntax-rules ()
211+
[(racketmodlink n #:indirect content ...)
212+
(*as-modname-link 'n (elem #:style #f content ...) #t)]
211213
[(racketmodlink n content ...)
212214
(*as-modname-link 'n (elem #:style #f content ...) #f)]))
213215

0 commit comments

Comments
 (0)