[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * doc/texinfo.tex (\smartitaliccorrection): Incor
From: |
Gavin D. Smith |
Subject: |
branch master updated: * doc/texinfo.tex (\smartitaliccorrection): Incorporate checking next token in definition so as to simplify use. |
Date: |
Sat, 13 Aug 2022 08:54:17 -0400 |
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 da2ecf4bfa * doc/texinfo.tex (\smartitaliccorrection): Incorporate
checking next token in definition so as to simplify use.
da2ecf4bfa is described below
commit da2ecf4bfa8163d6a4fd44986f66f2f3bcdda439
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Aug 13 13:54:09 2022 +0100
* doc/texinfo.tex (\smartitaliccorrection): Incorporate checking
next token in definition so as to simplify use.
---
ChangeLog | 5 +++++
doc/texinfo.tex | 15 ++++++++-------
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fd22a8b004..1f8a5e1839 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-13 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * doc/texinfo.tex (\smartitaliccorrection): Incorporate checking
+ next token in definition so as to simplify use.
+
2022-08-13 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.tex (\defunargs): Remove special definition for \var.
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index e0e9fccc18..8050f38b66 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-08-13.13}
+\def\texinfoversion{2022-08-13.14}
%
% Copyright 1985, 1986, 1988, 1990-2022 Free Software Foundation, Inc.
%
@@ -2779,15 +2779,16 @@ end
\def\dosmartslant#1#2{%
\ifusingtt
{{\ttsl #2}\let\next=\relax}%
- {\def\next{{#1#2}\futurelet\next\smartitaliccorrection}}%
+ {\def\next{{#1#2}\smartitaliccorrection}}%
\next
}
\def\smartslanted{\dosmartslant\sl}
\def\smartitalic{\dosmartslant\it}
-% Output an italic correction unless \next (presumed to be the following
-% character) is such as not to need one.
-\def\smartitaliccorrection{%
+% Output an italic correction unless the following character is such as
+% not to need one.
+\def\smartitaliccorrection{\futurelet\next\smartitaliccorrectionx}
+\def\smartitaliccorrectionx{%
\ifx\next,%
\else\ifx\next-%
\else\ifx\next.%
@@ -2799,7 +2800,7 @@ end
}
% @cite unconditionally uses \sl with \smartitaliccorrection.
-\def\cite#1{{\sl #1}\futurelet\next\smartitaliccorrection}
+\def\cite#1{{\sl #1}\smartitaliccorrection}
% @var unconditionally uses \sl. This gives consistency for
% parameter names whether they are in @def, @table @code or a
@@ -2809,7 +2810,7 @@ end
\def\var#1{%
\let\saveaftersmartic = \aftersmartic
\def\aftersmartic{\null\let\aftersmartic=\saveaftersmartic}%
- {\sl #1}\futurelet\next\smartitaliccorrection
+ {\sl #1}\smartitaliccorrection
}
\let\i=\smartitalic
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * doc/texinfo.tex (\smartitaliccorrection): Incorporate checking next token in definition so as to simplify use.,
Gavin D. Smith <=