On Sun, Nov 08, 2026 at 01:02:34PM +0000, Heime wrote:
> On Monday, November 9th, 2026 at 12:48 AM, 
> Patrice Dumas <[email protected]> wrote:
> > I think that we should be consistent in the Texinfo language.  The line
> > and block @-commands begin at the start of the line as is said in the
> > "@-Command Syntax" node of the Texinfo manual.
> 
> Your main point is that “consistency” should not mean imposing one rule
> on every @-command.  Texinfo commands have different roles: structural 
> commands such as @chapter differ from conditional commands such as @ifset 
> and @ifclear, which may be nested.  Allowing indentation where it clarifies 
> nesting that makes the source easier to maintain - as aspect that should 
> override overarching simplicity in the texinfo implementation.

I am not necessarily against changing the design of the conforming
Texinfo language, but it should be done with care to have a language
that is easy to understand and recall.  Having exceptions make the
language harder to use, and especially reuse after a period of doing
something else.  To me the ease of implementation is secondary.

The issue I see here is more about @end being special for no reason and
not being treated as a normal line command.  It would be even more
complicated if @end had different syntax based on the block command.
Same for @if* not following the same rules as other block commands.

To me, the main question is how to trade-off the benefit of indentation
for easier reading of the source and the cost of added complexity of
having different syntaxic rules for @-commands that are otherwise similar.


I found this thread that could be relevant for this issue:

https://lists.gnu.org/archive/html/bug-texinfo/2023-02/msg00001.html

(as shown in this discussion, there are some line @-commands that do not
start at the start of the line, but there is a very limited number, all
for good (and obvious) reasons: @c, @comment, @subentry and
@columnfractions, and @item because it is not always a line command.
There are specific warnings about the syntax for @subentry and
@columnfractions as they appear in specific situations only, which
justify not being at the start of the line).


(As a side note, I do not like how @subentry does not follow the usual
rules for @-commands nesting and syntax in Texinfo.)

-- 
Pat

Reply via email to