texinfo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

are macros defined commands


From: Karl Berry
Subject: are macros defined commands
Date: Fri, 14 Sep 2012 18:22:48 GMT

Can't remember if we discussed this.  Should names defined with @macro
be considered ``defined commands'' for the conditionals?  (texinfo.tex
already does, as a side effect of the implementation.)

  @macro mymac
  @end macro
  
  @ifcommanddefined mymac
  Macro is defined.
  @end ifcommanddefined

My gut reaction is to say yes -- I can envision people defining macros
as a fallback for new Texinfo commands, precisely so the document can
use the command without worrying.  And thus a further conditional might
as well consider it defined.  As in:

@ifcommandisnotdefined errormsg
@macro errormsg{msg}
..
@end macro
@end ifcommandisnotdefined

@ifcommandisdefined errormsg
.. might as well be true?
@end ifcommandisdefined

Wdyt?

Thanks,
k



reply via email to

[Prev in Thread] Current Thread [Next in Thread]