Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Cross-reference format in man pages
- X-seq: zsh-workers 55066
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: "Jun. T" <takimoto-j@xxxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Cross-reference format in man pages
- Date: Fri, 7 Aug 2026 17:44:44 +0200
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OM+x7h2BkACx8+CDL+JTx0RECx6wxAWjHk1UT88YMPc=; fh=9xRQ9SUyYqxY9cbr4rSAA8YvYNOIpvWeCS/qRRW6Zok=; b=FsFozxceNZQWprGGYIcAQp+lzQD71ncCE7plyiBh5OACEO62TPDnczrPTlrqR71zXF G2yXq8MD4aLod+eIT058KsOQCfJHAtF/4O7rt6qP3hQtSk5Jlr2wHSwIE/vWXpNLIilc ybfmEWIJzv78TJbvlZm6lA2Hg1/PM3kSpPURQ4Ctedx6rCqjsQCZpowbkaehehkXKLei WGCLVu0JE77AcoyYDmpWla/Lxs169tS07iUriuFta+XbLo20YotN83WlxB5YEMXnhNdI yvdpf8Ymd14158bAoCfZ7FWg2Y6oSFUA3HeYmomvN7QYIauLf+V0dGLl+XSalbOty6IT 3hJw==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1786117498; cv=none; d=google.com; s=arc-20260327; b=djZ0kcHEw5cZAn4r1lXXsRjyLfzL6KCr14JTTluTYc9cqQ2y0KDguao5qcp/DEQFgl 0Adh0Cs1pr4b3FPv+bnLlW9cyHZdsg4qvXeV8wd3XVKSGnjrpb6xCorViUKMrLfDV0hY 91Xv9FM5fWQJcd3Gkosbe5f8vgqDCmeFi4GBlSEI8DtnMah5cEu8U6XU+quRz/GR3cJy YW8UUkVYkdMP3cISJClHop7XrVHfdcS2lVWKFxACTN0y8NTgMqc75nhlXL/5pcY4lgJ5 SgbSEhb8OnAw3MvoPuHR8qjvTFZkSpJptO3Z6vQ8xd1SY1wmVlckmmWsggHbg8tWY4KW kmnA==
- Archived-at: <https://zsh.org/workers/55066>
- In-reply-to: <B0317D36-07B0-43D3-A8B2-EA2C050E5D52@kba.biglobe.ne.jp>
- List-id: <zsh-workers.zsh.org>
- References: <CAE1FF68-40A0-46E0-AED1-E1FB62A57D72@kba.biglobe.ne.jp> <B0317D36-07B0-43D3-A8B2-EA2C050E5D52@kba.biglobe.ne.jp>
On Sun, Jul 13, 2025 at 5:30 PM Jun. T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>
> Patch is attached as a file (since it's rather long).
>
> > 2025/07/04 13:48, Jun T <takimoto-j@xxxxxxxxxxxxxxxxx <mailto:takimoto-j@xxxxxxxxxxxxxxxxx>> wrote:
> >
> > See the section `Filename Generation'
> > but the section is in zshexpn(1).
>
> In addition to fixing the missing man page name, various minor
> fixes (and improvements, hopefully) are included
> (using more specific referent, etc.).
>
> > Since section names in man pages are in bold ALLCAPS, I
> > will (try to) use
> > bf(FILENAME GENERATION)
> > when referring to the section names. Is this OK?
> > (I will define a new macro for this)
>
> Four new yodl macros are defined.
>
> nmref(node)(manpage) is for referring to texi node or manpage
> (depending on ifnzman or ifzman).
>
> sectref(sectname)(manpage) is for referring to a section in
> manpage, or a texi node. There should be a texi node (or anchor)
> with the same name as the 'sectname'.
> Use anchor() for creating the anchor.
>
> subref(subsectname)(manpage) is similar but for a subsection.
>
> I also patched Util/zyodl.vim to recognize the 4 new macros.
Happened to notice this,
@@ -373,7 +371,7 @@ Define a function which is referenced by any one
of var(word).
Normally, only one var(word) is provided; multiple var(word)s
are usually only useful for setting traps.
The body of the function is the var(list) between
-the tt({) and tt(}). See noderef(Functions).
+the tt({) and tt(}). See sectref(Functions)(blow).
The options of tt(function) have the following meanings:
Which results in this manpage output:
where term is one or more newline or ;. Define a
function which is refer‐
enced by any one of word. Normally, only one word
is provided; multiple
words are usually only useful for setting traps. The
body of the function is
the list between the { and }. See FUNCTIONS in blow(1).
I assume this is an error, since we do not provide a blow.1? But I'm
not sure what you meant for it to say.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author