aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorPaul Eggert2015-07-05 08:22:26 -0700
committerPaul Eggert2015-07-05 08:23:11 -0700
commit1323c13978b7280ddf034e8f527f48d17487b5a2 (patch)
tree969cb5381db64e141d0b55ddea68f6e3751a1817 /doc/misc
parentb9e14de6cf08a19fa5d98742b71c5580a50a40d8 (diff)
downloademacs-1323c13978b7280ddf034e8f527f48d17487b5a2.tar.gz
emacs-1323c13978b7280ddf034e8f527f48d17487b5a2.zip
Merge from gnulib
This incorporates: 2015-07-04 file-has-acl, acl-permissions: fix HP-UX typos 2015-07-03 set-permissions.c: adjust acl_from_mode's cpp guard 2015-07-02 update-copyright: fix test failure with perl >= 5.22 2015-07-01 gnulib-common.m4: change the ARFLAGS default to 'cr' 2015-07-01 acl: fix definition of acl_from_mode on FreeBSD * build-aux/update-copyright, doc/misc/texinfo.tex, lib/acl-internal.h: * lib/set-permissions.c, m4/gnulib-common.m4: Copy from gnulib.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/texinfo.tex58
1 files changed, 37 insertions, 21 deletions
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex
index 60951102f3f..f773c90b8d5 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{2015-06-14.15} 6\def\texinfoversion{2015-07-01.07}
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,
@@ -277,6 +277,7 @@
277% described on page 260 of The TeXbook. It involves outputting two 277% described on page 260 of The TeXbook. It involves outputting two
278% marks for the sectioning macros, one before the section break, and 278% marks for the sectioning macros, one before the section break, and
279% one after. I won't pretend I can describe this better than DEK... 279% one after. I won't pretend I can describe this better than DEK...
280%
280\def\domark{% 281\def\domark{%
281 \toks0=\expandafter{\lastchapterdefs}% 282 \toks0=\expandafter{\lastchapterdefs}%
282 \toks2=\expandafter{\lastsectiondefs}% 283 \toks2=\expandafter{\lastsectiondefs}%
@@ -6881,7 +6882,7 @@ end
6881% typesetting commands (@smallbook, font changes, etc.) have to be done 6882% typesetting commands (@smallbook, font changes, etc.) have to be done
6882% beforehand -- and a) we want @copying to be done first in the source 6883% beforehand -- and a) we want @copying to be done first in the source
6883% file; b) letting users define the frontmatter in as flexible order as 6884% file; b) letting users define the frontmatter in as flexible order as
6884% possible is very desirable. 6885% possible is desirable.
6885% 6886%
6886\def\copying{\checkenv{}\begingroup\scanargctxt\docopying} 6887\def\copying{\checkenv{}\begingroup\scanargctxt\docopying}
6887\def\docopying#1@end copying{\endgroup\def\copyingtext{#1}} 6888\def\docopying#1@end copying{\endgroup\def\copyingtext{#1}}
@@ -7449,6 +7450,12 @@ end
7449% 7450%
7450% \anythingelse will almost certainly be an error of some kind. 7451% \anythingelse will almost certainly be an error of some kind.
7451 7452
7453\def\macrolineargctxt{% used for whole-line arguments without braces
7454 \scanctxt
7455 \catcode`\{=\other
7456 \catcode`\}=\other
7457}
7458
7452% \mbodybackslash is the definition of \ in @macro bodies. 7459% \mbodybackslash is the definition of \ in @macro bodies.
7453% It maps \foo\ => \csname macarg.foo\endcsname => #N 7460% It maps \foo\ => \csname macarg.foo\endcsname => #N
7454% where N is the macro parameter number. 7461% where N is the macro parameter number.
@@ -7522,12 +7529,14 @@ end
7522% This makes use of the obscure feature that if the last token of a 7529% This makes use of the obscure feature that if the last token of a
7523% <parameter list> is #, then the preceding argument is delimited by 7530% <parameter list> is #, then the preceding argument is delimited by
7524% an opening brace, and that opening brace is not consumed. 7531% an opening brace, and that opening brace is not consumed.
7532%
7525\def\getargs#1{\getargsxxx#1{}} 7533\def\getargs#1{\getargsxxx#1{}}
7526\def\getargsxxx#1#{\getmacname #1 \relax\getmacargs} 7534\def\getargsxxx#1#{\getmacname #1 \relax\getmacargs}
7527\def\getmacname#1 #2\relax{\macname={#1}} 7535\def\getmacname#1 #2\relax{\macname={#1}}
7528\def\getmacargs#1{\def\argl{#1}} 7536\def\getmacargs#1{\def\argl{#1}}
7529 7537
7530% For macro processing make @ a letter so that we can make Texinfo private macro names. 7538% For macro processing make @ a letter so that we can make
7539% private-to-Texinfo macro names.
7531\edef\texiatcatcode{\the\catcode`\@} 7540\edef\texiatcatcode{\the\catcode`\@}
7532\catcode `@=11\relax 7541\catcode `@=11\relax
7533 7542
@@ -7558,6 +7567,7 @@ end
7558% 7567%
7559% If you compile with TeX (not eTeX), and you have macros with 10 or more 7568% If you compile with TeX (not eTeX), and you have macros with 10 or more
7560% arguments, no macro can have more than 256 arguments (else error). 7569% arguments, no macro can have more than 256 arguments (else error).
7570%
7561\def\parsemargdef#1;{% 7571\def\parsemargdef#1;{%
7562 \paramno=0\def\paramlist{}% 7572 \paramno=0\def\paramlist{}%
7563 \let\hash\relax 7573 \let\hash\relax
@@ -7601,7 +7611,6 @@ end
7601% These two commands read recursive and nonrecursive macro bodies. 7611% These two commands read recursive and nonrecursive macro bodies.
7602% (They're different since rec and nonrec macros end differently.) 7612% (They're different since rec and nonrec macros end differently.)
7603% 7613%
7604
7605\catcode `\@\texiatcatcode 7614\catcode `\@\texiatcatcode
7606\long\def\parsemacbody#1@end macro% 7615\long\def\parsemacbody#1@end macro%
7607{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}% 7616{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}%
@@ -7637,7 +7646,8 @@ end
7637 \fi 7646 \fi
7638} 7647}
7639 7648
7640% 7649% Internal for \getargsval@.
7650%
7641\def\getargvals@@{% 7651\def\getargvals@@{%
7642 \ifx\paramlist\nilm@ 7652 \ifx\paramlist\nilm@
7643 % Some sanity check needed here that \argvaluelist is also empty. 7653 % Some sanity check needed here that \argvaluelist is also empty.
@@ -7681,7 +7691,8 @@ end
7681} 7691}
7682 7692
7683% Replace arguments by their values in the macro body, and place the result 7693% Replace arguments by their values in the macro body, and place the result
7684% in macro \@tempa 7694% in macro \@tempa.
7695%
7685\def\macvalstoargs@{% 7696\def\macvalstoargs@{%
7686 % To do this we use the property that token registers that are \the'ed 7697 % To do this we use the property that token registers that are \the'ed
7687 % within an \edef expand only once. So we are going to place all argument 7698 % within an \edef expand only once. So we are going to place all argument
@@ -7705,8 +7716,9 @@ end
7705 \expandafter\def\expandafter\@tempa\expandafter{\@tempc}% 7716 \expandafter\def\expandafter\@tempa\expandafter{\@tempc}%
7706 } 7717 }
7707 7718
7719% Define the named-macro outside of this group and then close this group.
7720%
7708\def\macargexpandinbody@{% 7721\def\macargexpandinbody@{%
7709 %% Define the named-macro outside of this group and then close this group.
7710 \expandafter 7722 \expandafter
7711 \endgroup 7723 \endgroup
7712 \macargdeflist@ 7724 \macargdeflist@
@@ -7743,14 +7755,17 @@ end
7743 \next 7755 \next
7744} 7756}
7745 7757
7746% Save the token stack pointer into macro #1 7758% Save the token stack pointer into macro #1:
7747\def\texisavetoksstackpoint#1{\edef#1{\the\@cclvi}} 7759\def\texisavetoksstackpoint#1{\edef#1{\the\@cclvi}}
7748% Restore the token stack pointer from number in macro #1 7760%
7749\def\texirestoretoksstackpoint#1{\expandafter\mathchardef\expandafter\@cclvi#1\relax} 7761% Restore the token stack pointer from number in macro #1:
7750% newtoks that can be used non \outer . 7762\def\texirestoretoksstackpoint#1{\expandafter\mathchardef
7763 \expandafter\@cclvi#1\relax}
7764% Variant \newtoks that can be used non-\outer:
7751\def\texinonouternewtoks{\alloc@ 5\toks \toksdef \@cclvi} 7765\def\texinonouternewtoks{\alloc@ 5\toks \toksdef \@cclvi}
7752 7766
7753% Tailing missing arguments are set to empty 7767% Tailing missing arguments are set to empty.
7768%
7754\def\setemptyargvalues@{% 7769\def\setemptyargvalues@{%
7755 \ifx\paramlist\nilm@ 7770 \ifx\paramlist\nilm@
7756 \let\next\macargexpandinbody@ 7771 \let\next\macargexpandinbody@
@@ -7795,7 +7810,7 @@ end
7795 \noexpand\scanmacro{\temp}}% 7810 \noexpand\scanmacro{\temp}}%
7796 \or % 1 7811 \or % 1
7797 \expandafter\xdef\csname\the\macname\endcsname{% 7812 \expandafter\xdef\csname\the\macname\endcsname{%
7798 \bgroup\noexpand\macroargctxt 7813 \bgroup
7799 \noexpand\braceorline 7814 \noexpand\braceorline
7800 \expandafter\noexpand\csname\the\macname xxx\endcsname}% 7815 \expandafter\noexpand\csname\the\macname xxx\endcsname}%
7801 \expandafter\xdef\csname\the\macname xxx\endcsname##1{% 7816 \expandafter\xdef\csname\the\macname xxx\endcsname##1{%
@@ -7828,7 +7843,7 @@ end
7828 \noexpand\scanmacro{\temp}\egroup}% 7843 \noexpand\scanmacro{\temp}\egroup}%
7829 \or % 1 7844 \or % 1
7830 \expandafter\xdef\csname\the\macname\endcsname{% 7845 \expandafter\xdef\csname\the\macname\endcsname{%
7831 \bgroup\noexpand\macroargctxt 7846 \bgroup
7832 \noexpand\braceorline 7847 \noexpand\braceorline
7833 \expandafter\noexpand\csname\the\macname xxx\endcsname}% 7848 \expandafter\noexpand\csname\the\macname xxx\endcsname}%
7834 \expandafter\xdef\csname\the\macname xxx\endcsname##1{% 7849 \expandafter\xdef\csname\the\macname xxx\endcsname##1{%
@@ -7860,19 +7875,20 @@ end
7860 \fi 7875 \fi
7861 \fi} 7876 \fi}
7862 7877
7863\catcode `\@\texiatcatcode\relax 7878\catcode `\@\texiatcatcode\relax % end private-to-Texinfo catcodes
7864 7879
7865\def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}} 7880\def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}}
7866 7881
7867% \braceorline decides whether the next nonwhitespace character is a 7882% \braceorline MAC is used for a one-argument macro MAC. It checks
7868% {. If so it reads up to the closing }, if not, it reads the whole 7883% whether the next non-whitespace character is a {. It sets the context
7869% line. Whatever was read is then fed to the next control sequence 7884% for reading the argument (slightly different in the two cases). Then,
7870% as an argument (by \parsebrace or \parsearg). 7885% to read the argument, in the whole-line case, it then calls the
7886% regular \parsearg MAC; in the lbrace case, it just calls MAC itself.
7871% 7887%
7872\def\braceorline#1{\let\macnamexxx=#1\futurelet\nchar\braceorlinexxx} 7888\def\braceorline#1{\let\macnamexxx=#1\futurelet\nchar\braceorlinexxx}
7873\def\braceorlinexxx{% 7889\def\braceorlinexxx{%
7874 \ifx\nchar\bgroup\else 7890 \ifx\nchar\bgroup\macroargctxt
7875 \expandafter\parsearg 7891 \else\macrolineargctxt\expandafter\parsearg
7876 \fi \macnamexxx} 7892 \fi \macnamexxx}
7877 7893
7878 7894