[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6806] remove some \chardef
From: |
Gavin D. Smith |
Subject: |
[6806] remove some \chardef |
Date: |
Tue, 24 Nov 2015 17:36:51 +0000 |
Revision: 6806
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6806
Author: gavin
Date: 2015-11-24 17:36:49 +0000 (Tue, 24 Nov 2015)
Log Message:
-----------
remove some \chardef
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/texinfo.tex
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-11-22 22:58:23 UTC (rev 6805)
+++ trunk/ChangeLog 2015-11-24 17:36:49 UTC (rev 6806)
@@ -1,3 +1,11 @@
+2015-11-24 Gavin Smith <address@hidden>
+
+ * doc/texinfo.tex (\spaceisspace): Comment changed and \chardef
+ removed.
+ (\ampChar, \colonChar, \commaChar, \dotChar, \questChar)
+ (\semiChar, \hashChar, \lquoteChar, \rquoteChar): Remove these
+ \chardef's, and use literal constants instead.
+
2015-11-22 Gavin Smith <address@hidden>
* info/terminal.h
Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex 2015-11-22 22:58:23 UTC (rev 6805)
+++ trunk/doc/texinfo.tex 2015-11-24 17:36:49 UTC (rev 6806)
@@ -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{2015-11-22.14}
+\def\texinfoversion{2015-11-24.17}
%
% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -158,22 +158,10 @@
\ifx\putwordDefopt\undefined \gdef\putwordDefopt{User Option}\fi
\ifx\putwordDeffunc\undefined \gdef\putwordDeffunc{Function}\fi
-% Since the category of space is not known, we have to be careful.
-\chardef\spacecat = 10
-\def\spaceisspace{\catcode`\ =\spacecat}
+% Give the space character the catcode for a space.
+\def\spaceisspace{\catcode`\ =10\relax}
-% sometimes characters are active, so we need control sequences.
-\chardef\ampChar = `\&
-\chardef\colonChar = `\:
-\chardef\commaChar = `\,
\chardef\dashChar = `\-
-\chardef\dotChar = `\.
-\chardef\exclamChar= `\!
-\chardef\hashChar = `\#
-\chardef\lquoteChar= `\`
-\chardef\questChar = `\?
-\chardef\rquoteChar= `\'
-\chardef\semiChar = `\;
\chardef\slashChar = `\/
\chardef\underChar = `\_
@@ -2452,8 +2440,8 @@
%
address@hidden
\def\plainfrenchspacing{%
- \sfcode\dotChar address@hidden address@hidden address@hidden
- address@hidden \sfcode\semiChar address@hidden \sfcode\commaChar
address@hidden
+ address@hidden address@hidden address@hidden
+ \sfcode`\:address@hidden \sfcode`\;address@hidden \sfcode`\,address@hidden
\def\endofsentencespacefactor{1000}% for @. and friends
}
\def\plainnonfrenchspacing{%
@@ -2641,9 +2629,9 @@
% Allow line breaks around only a few characters (only).
\def\urefcatcodes{%
- \catcode\ampChar=\active \catcode\dotChar=\active
- \catcode\hashChar=\active \catcode\questChar=\active
- \catcode\slashChar=\active
+ \catcode`\&=\active \catcode`\.=\active
+ \catcode`\#=\active \catcode`\?=\active
+ \catcode`\/=\active
}
{
\urefcatcodes
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6806] remove some \chardef,
Gavin D. Smith <=