texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Gavin D. Smith
Date: Fri, 10 Feb 2023 21:24:27 -0500 (EST)

branch: master
commit d627395da12a129b467ff5786ef5d98c7880dd6c
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Feb 11 02:20:45 2023 +0000

    * doc/texinfo.tex (@defblock, @deflinex, @deftypelinex):
    Add commands for definitions that do not create index entries.
---
 ChangeLog       |  5 +++++
 TODO            |  1 -
 doc/texinfo.tex | 20 +++++++++++++++++++-
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 74beec8099..e8a5c4d19f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-11  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * doc/texinfo.tex (@defblock, @deflinex, @deftypelinex):
+       Add commands for definitions that do not create index entries.
+
 2023-02-11  Gavin Smith <gavinsmith0123@gmail.com>
 
        Revert @useindex implementation
diff --git a/TODO b/TODO
index 8bc712bf53..72fd590a02 100644
--- a/TODO
+++ b/TODO
@@ -17,7 +17,6 @@ If you are interested in working on any of these, email 
bug-texinfo@gnu.org.
   - tagging system for definitions - (Robert Dodier for Maxima,
     https://lists.gnu.org/archive/html/help-texinfo/2021-12/msg00012.html)
   - generalize @vtable/@ftable to any defined index.
-    - maybe "@ftable @asis @index{IX}"
   - user-defined macros cannot be used as argument to @table or @itemize.
     Add specific macro commands, @highlightingmacro and @glyphmacro? Or
     accept one arg macro on @table line and no arg macro on @itemize line?
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index 991d30ab96..3148068f66 100644
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2023-02-11.00}
+\def\texinfoversion{2023-02-11.02}
 %
 % Copyright 1985, 1986, 1988, 1990-2023 Free Software Foundation, Inc.
 %
@@ -7578,6 +7578,24 @@ might help (with 'rm \jobname.?? \jobname.??s')%
 
 \def\Edefun{\endgraf\medbreak}
 
+% @defblock, @deflinex do not automatically create index entries
+\envdef\defblock{%
+  \startdefun
+}
+\let\Edefblock\Edefun
+
+\def\deflinex{%
+  \doingtypefnfalse
+  \parseargusing\activeparens{\printdefunline\deflineheader}%
+}
+\def\deflineheader#1 #2 #3\endheader{%
+  \defname{#1}{}{#2}\magicamp\defunargs{#3\unskip}%
+}
+\def\deftypelinex{%
+  \doingtypefntrue
+  \parseargusing\activeparens{\printdefunline\deflineheader}%
+}
+
 % \makedefun{deffoo} (\deffooheader parameters) { (\deffooheader expansion) }
 %
 % Define \deffoo, \deffoox  \Edeffoo and \deffooheader.



reply via email to

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