diff options
| author | Paul Eggert | 2012-07-09 01:34:39 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-09 01:34:39 -0700 |
| commit | 2f93ecceb91ec8b0a18c95787503341780ca9233 (patch) | |
| tree | fdeb5f997a4ae19147f1ba490922b3c9bc223b1f /doc/misc | |
| parent | d01ba2f14965203aef327c2cebf1474af0f12f90 (diff) | |
| download | emacs-2f93ecceb91ec8b0a18c95787503341780ca9233.tar.gz emacs-2f93ecceb91ec8b0a18c95787503341780ca9233.zip | |
Merge from gnulib.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/texinfo.tex | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex index a5a7b2beac7..2b646dd671c 100644 --- a/doc/misc/texinfo.tex +++ b/doc/misc/texinfo.tex | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | % Load plain if necessary, i.e., if running under initex. | 3 | % Load plain if necessary, i.e., if running under initex. |
| 4 | \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi | 4 | \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi |
| 5 | % | 5 | % |
| 6 | \def\texinfoversion{2012-06-05.14} | 6 | \def\texinfoversion{2012-07-03.16} |
| 7 | % | 7 | % |
| 8 | % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, | 8 | % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, |
| 9 | % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | 9 | % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
| @@ -4206,7 +4206,7 @@ end | |||
| 4206 | } | 4206 | } |
| 4207 | \def\ifsetfail{\doignore{ifset}} | 4207 | \def\ifsetfail{\doignore{ifset}} |
| 4208 | 4208 | ||
| 4209 | % @ifclear VAR ... @end ifclear reads the `...' iff VAR has never been | 4209 | % @ifclear VAR ... @end executes the `...' iff VAR has never been |
| 4210 | % defined with @set, or has been undefined with @clear. | 4210 | % defined with @set, or has been undefined with @clear. |
| 4211 | % | 4211 | % |
| 4212 | % The `\else' inside the `\doifset' parameter is a trick to reuse the | 4212 | % The `\else' inside the `\doifset' parameter is a trick to reuse the |
| @@ -4217,6 +4217,35 @@ end | |||
| 4217 | \def\ifclear{\parsearg{\doifset{\else \let\next=\ifclearfail}}} | 4217 | \def\ifclear{\parsearg{\doifset{\else \let\next=\ifclearfail}}} |
| 4218 | \def\ifclearfail{\doignore{ifclear}} | 4218 | \def\ifclearfail{\doignore{ifclear}} |
| 4219 | 4219 | ||
| 4220 | % @ifcommandisdefined CMD ... @end executes the `...' if CMD (written | ||
| 4221 | % without the @) is in fact defined. We can only feasibly check at the | ||
| 4222 | % TeX level, so something like `mathcode' is going to considered | ||
| 4223 | % defined even though it is not a Texinfo command. | ||
| 4224 | % | ||
| 4225 | \makecond{ifcommanddefined} | ||
| 4226 | \def\ifcommanddefined{\parsearg{\doifcmddefined{\let\next=\ifcmddefinedfail}}} | ||
| 4227 | % | ||
| 4228 | \def\doifcmddefined#1#2{{% | ||
| 4229 | \makevalueexpandable | ||
| 4230 | \let\next=\empty | ||
| 4231 | \expandafter\ifx\csname #2\endcsname\relax | ||
| 4232 | #1% If not defined, \let\next as above. | ||
| 4233 | \fi | ||
| 4234 | \expandafter | ||
| 4235 | }\next | ||
| 4236 | } | ||
| 4237 | \def\ifcmddefinedfail{\doignore{ifcommanddefined}} | ||
| 4238 | |||
| 4239 | % @ifcommandnotdefined CMD ... handlded similar to @ifclear above. | ||
| 4240 | \makecond{ifcommandnotdefined} | ||
| 4241 | \def\ifcommandnotdefined{% | ||
| 4242 | \parsearg{\doifcmddefined{\else \let\next=\ifcmdnotdefinedfail}}} | ||
| 4243 | \def\ifcmdnotdefinedfail{\doignore{ifcommandnotdefined}} | ||
| 4244 | |||
| 4245 | % Set the `txicommandconditionals' variable, so documents have a way to | ||
| 4246 | % test if the @ifcommand...defined conditionals are available. | ||
| 4247 | \set txicommandconditionals | ||
| 4248 | |||
| 4220 | % @dircategory CATEGORY -- specify a category of the dir file | 4249 | % @dircategory CATEGORY -- specify a category of the dir file |
| 4221 | % which this file should belong to. Ignore this in TeX. | 4250 | % which this file should belong to. Ignore this in TeX. |
| 4222 | \let\dircategory=\comment | 4251 | \let\dircategory=\comment |