Re: Generalising @def*

Patrice Dumas <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <[email protected]>
On Sat, Feb 11, 2023 at 11:59:07AM +0000, Gavin Smith wrote:
> 
> I've commited changes to texinfo.tex to introduce @defblock, @deflinex
> and @deftypelinex.  @deflinex is like @deffnx and @deftypelinex is like
> @deftypefnx.  The names of these could change, for example to remove the 'x'
> at the end of the commands, if we decide this would be better.
> 
> I believe this covers usage for @defvr, @deftypevr, @deftp.
> 
> I have gone off the idea of using @macro for this.  I am thinking a
> more limited command would be better, as mentioned in an earlier message
> 
>   @newdef defbuiltin = typed, tt, Built-in Function, fn
> 
> or similar.  This would cover the basics and be easy to use and understand.
> The example here would translate a @defbuiltin line to a @deftypelinex line
> within a @defblock.

I do not like that, as this adds commands that are not in the language
and it is always a pain.  I liked the generic command + separate index
entries, that could be grouped with @macro better.

-- 
Pat
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.