[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * doc/texinfo.tex (\dodefunx): Inline into use si
From: |
Gavin D. Smith |
Subject: |
branch master updated: * doc/texinfo.tex (\dodefunx): Inline into use site in definition of \deffoox in \makedefun. Do not reuse the definition of \deffoo manipulating its expansion with the \gobbledefun macro, as this was confusing and unnecessary. No functional changes intended. |
Date: |
Thu, 15 Dec 2022 13:41:27 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new b9ef1db566 * doc/texinfo.tex (\dodefunx): Inline into use site in
definition of \deffoox in \makedefun. Do not reuse the definition of \deffoo
manipulating its expansion with the \gobbledefun macro, as this was confusing
and unnecessary. No functional changes intended.
b9ef1db566 is described below
commit b9ef1db566cead751c37def76ee75d05f15b205b
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Thu Dec 15 18:41:18 2022 +0000
* doc/texinfo.tex (\dodefunx): Inline into use site in definition
of \deffoox in \makedefun. Do not reuse the definition of
\deffoo manipulating its expansion with the \gobbledefun macro,
as this was confusing and unnecessary. No functional changes
intended.
---
doc/texinfo.tex | 37 +++++++++++++++++--------------------
1 file changed, 17 insertions(+), 20 deletions(-)
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index dbd5166014..4fa7e02eef 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{2022-12-10.11}
+\def\texinfoversion{2022-12-15.18}
%
% Copyright 1985, 1986, 1988, 1990-2022 Free Software Foundation, Inc.
%
@@ -7602,32 +7602,19 @@ might help (with 'rm \jobname.?? \jobname.??s')%
\exdentamount=\defbodyindent
}
-\def\dodefunx#1{%
- % First, check whether we are in the right environment:
- \checkenv#1%
- %
- % As above, allow line break if we have multiple x headers in a row.
- % It's not a great place, though.
- \ifnum\lastpenalty=10002 \penalty3000 \else \defunpenalty=10002 \fi
- %
- % And now, it's time to reuse the body of the original defun:
- \expandafter\gobbledefun#1%
-}
-\def\gobbledefun#1\startdefun{}
-
-% \printdefunline \deffnheader{text}
+% Called as \printdefunline \deffooheader{text}
%
\def\printdefunline#1#2{%
\begingroup
\plainfrenchspacing
- % call \deffnheader:
+ % call \deffooheader:
#1#2 \endheader
% common ending:
\interlinepenalty = 10000
\advance\rightskip by 0pt plus 1fil\relax
\endgraf
\nobreak\vskip -\parskip
- \penalty\defunpenalty % signal to \startdefun and \dodefunx
+ \penalty\defunpenalty % signal to \startdefun and \deffoox
% Some of the @defun-type tags do not enable magic parentheses,
% rendering the following check redundant. But we don't optimize.
\checkparencounts
@@ -7636,7 +7623,7 @@ might help (with 'rm \jobname.?? \jobname.??s')%
\def\Edefun{\endgraf\medbreak}
-% \makedefun{deffoo}{ (definition of \deffooheader) }
+% \makedefun{deffoo} (\deffooheader parameters) { (\deffooheader expansion) }
%
% Define \deffoo, \deffoox \Edeffoo and \deffooheader.
\def\makedefun#1{%
@@ -7651,8 +7638,18 @@ might help (with 'rm \jobname.?? \jobname.??s')%
\doingtypefnfalse % distinguish typed functions from all else
\parseargusing\activeparens{\printdefunline#3}%
}%
- \def#2{\dodefunx#1}%
- \def#3%
+ \def#2{%
+ % First, check whether we are in the right environment:
+ \checkenv#1%
+ %
+ % As in \startdefun, allow line break if we have multiple x headers
+ % in a row. It's not a great place, though.
+ \ifnum\lastpenalty=10002 \penalty3000 \else \defunpenalty=10002 \fi
+ %
+ \doingtypefnfalse % distinguish typed functions from all else
+ \parseargusing\activeparens{\printdefunline#3}%
+ }%
+ \def#3% definition of \deffooheader follows
}
\newif\ifdoingtypefn % doing typed function?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * doc/texinfo.tex (\dodefunx): Inline into use site in definition of \deffoox in \makedefun. Do not reuse the definition of \deffoo manipulating its expansion with the \gobbledefun macro, as this was confusing and unnecessary. No functional changes intended.,
Gavin D. Smith <=