aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-06-11 17:29:21 -0700
committerPaul Eggert2017-06-11 17:30:06 -0700
commit07ab8374917bd2048b594f21adcc152d09eb21df (patch)
treef07c97068d53216c2e637de512fffdc79605785e
parentbb534f6afe95723f226117eb52e184838bae4c6a (diff)
downloademacs-07ab8374917bd2048b594f21adcc152d09eb21df.tar.gz
emacs-07ab8374917bd2048b594f21adcc152d09eb21df.zip
Merge from gnulib
This incorporates: 2017-06-11 getopt-posix: port to glibc 2.25.90 2017-06-04 same-inode: port better to VMS 8.2 and later * doc/misc/texinfo.tex, lib/getopt-pfx-core.h, lib/getopt-pfx-ext.h: * m4/sys_types_h.m4: Copy from gnulib.
-rw-r--r--doc/misc/texinfo.tex52
-rw-r--r--lib/getopt-pfx-core.h5
-rw-r--r--lib/getopt-pfx-ext.h5
-rw-r--r--m4/sys_types_h.m45
4 files changed, 42 insertions, 25 deletions
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex
index 8204f3e3aeb..b40a6e2a2be 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{2017-05-14.14} 6\def\texinfoversion{2017-06-04.19}
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,
@@ -5493,17 +5493,15 @@ end
5493 \let\indexlbrace\{ % Likewise, set these sequences for braces 5493 \let\indexlbrace\{ % Likewise, set these sequences for braces
5494 \let\indexrbrace\} % used in the sort key. 5494 \let\indexrbrace\} % used in the sort key.
5495 \begindoublecolumns 5495 \begindoublecolumns
5496 \let\entrywidowpenalty=\indexwidowpenalty 5496 \let\dotheinsertentrybox\dotheinsertentryboxwithpenalty
5497 % 5497 %
5498 % Read input from the index file line by line. 5498 % Read input from the index file line by line.
5499 \loopdo 5499 \loopdo
5500 \ifeof1 5500 \ifeof1 \else
5501 \let\firsttoken\relax
5502 \else
5503 \read 1 to \nextline 5501 \read 1 to \nextline
5504 \edef\act{\gdef\noexpand\firsttoken{\getfirsttoken\nextline}}%
5505 \act
5506 \fi 5502 \fi
5503 %
5504 \indexinputprocessing
5507 \thisline 5505 \thisline
5508 % 5506 %
5509 \ifeof1\else 5507 \ifeof1\else
@@ -5515,12 +5513,20 @@ end
5515 \fi 5513 \fi
5516 \closein 1 5514 \closein 1
5517\endgroup} 5515\endgroup}
5516\def\loopdo#1\repeat{\def\body{#1}\loopdoxxx}
5517\def\loopdoxxx{\let\next=\relax\body\let\next=\loopdoxxx\fi\next}
5518 5518
5519\def\indexinputprocessing{%
5520 \ifeof1
5521 \let\firsttoken\relax
5522 \else
5523 \edef\act{\gdef\noexpand\firsttoken{\getfirsttoken\nextline}}%
5524 \act
5525 \fi
5526}
5519\def\getfirsttoken#1{\expandafter\getfirsttokenx#1\endfirsttoken} 5527\def\getfirsttoken#1{\expandafter\getfirsttokenx#1\endfirsttoken}
5520\long\def\getfirsttokenx#1#2\endfirsttoken{\noexpand#1} 5528\long\def\getfirsttokenx#1#2\endfirsttoken{\noexpand#1}
5521 5529
5522\def\loopdo#1\repeat{\def\body{#1}\loopdoxxx}
5523\def\loopdoxxx{\let\next=\relax\body\let\next=\loopdoxxx\fi\next}
5524 5530
5525% These macros are used by the sorted index file itself. 5531% These macros are used by the sorted index file itself.
5526% Change them to control the appearance of the index. 5532% Change them to control the appearance of the index.
@@ -5597,7 +5603,7 @@ end
5597 % For pdfTeX and XeTeX. 5603 % For pdfTeX and XeTeX.
5598 % The redefinition of \domark stops marks being added in \pdflink to 5604 % The redefinition of \domark stops marks being added in \pdflink to
5599 % preserve coloured links across page boundaries. Otherwise the marks 5605 % preserve coloured links across page boundaries. Otherwise the marks
5600 % would get in the way of \lastbox in \insertindexentrybox. 5606 % would get in the way of \lastbox in \insertentrybox.
5601 \let\domark\relax 5607 \let\domark\relax
5602 % 5608 %
5603 % Start a new paragraph if necessary, so our assignments below can't 5609 % Start a new paragraph if necessary, so our assignments below can't
@@ -5658,9 +5664,9 @@ end
5658 \fi 5664 \fi
5659 \egroup % end \boxA 5665 \egroup % end \boxA
5660 \ifdim\wd\boxB = 0pt 5666 \ifdim\wd\boxB = 0pt
5661 \global\setbox\entryindexbox=\vbox{\unhbox\boxA}% 5667 \global\setbox\entrybox=\vbox{\unhbox\boxA}%
5662 \else 5668 \else
5663 \global\setbox\entryindexbox=\vbox\bgroup 5669 \global\setbox\entrybox=\vbox\bgroup
5664 % We want the text of the entries to be aligned to the left, and the 5670 % We want the text of the entries to be aligned to the left, and the
5665 % page numbers to be aligned to the right. 5671 % page numbers to be aligned to the right.
5666 % 5672 %
@@ -5722,19 +5728,20 @@ end
5722 \egroup % The \vbox 5728 \egroup % The \vbox
5723 \fi 5729 \fi
5724 \endgroup 5730 \endgroup
5725 % delay text of entry until after penalty 5731 \dotheinsertentrybox
5726 \bgroup\aftergroup\insertindexentrybox
5727 \entrywidowpenalty
5728}} 5732}}
5729 5733
5730\newskip\thinshrinkable 5734\newskip\thinshrinkable
5731\skip\thinshrinkable=.15em minus .15em 5735\skip\thinshrinkable=.15em minus .15em
5732 5736
5733\newbox\entryindexbox 5737\newbox\entrybox
5734\def\insertindexentrybox{% 5738\def\insertentrybox{%
5735 \ourunvbox\entryindexbox 5739 \ourunvbox\entrybox
5736} 5740}
5737 5741
5742% default definition
5743\let\dotheinsertentrybox\insertentrybox
5744
5738% Use \lastbox to take apart vbox box by box, and add each sub-box 5745% Use \lastbox to take apart vbox box by box, and add each sub-box
5739% to the current vertical list. 5746% to the current vertical list.
5740\def\ourunvbox#1{% 5747\def\ourunvbox#1{%
@@ -5757,21 +5764,18 @@ end
5757\newbox\delayedbox 5764\newbox\delayedbox
5758\newbox\interbox 5765\newbox\interbox
5759 5766
5760% Default is no penalty
5761\let\entrywidowpenalty\egroup
5762
5763% Used from \printindex. \firsttoken should be the first token 5767% Used from \printindex. \firsttoken should be the first token
5764% after the \entry. If it's not another \entry, we are at the last 5768% after the \entry. If it's not another \entry, we are at the last
5765% line of a group of index entries, so insert a penalty to discourage 5769% line of a group of index entries, so insert a penalty to discourage
5766% widowed index entries. 5770% widowed index entries.
5767\long\def\indexwidowpenalty{% 5771\def\dotheinsertentryboxwithpenalty{%
5768 \def\isentry{\entry}%
5769 \ifx\firsttoken\isentry 5772 \ifx\firsttoken\isentry
5770 \else 5773 \else
5771 \penalty 9000 5774 \penalty 9000
5772 \fi 5775 \fi
5773 \egroup % now comes the box added with \aftergroup 5776 \insertentrybox
5774} 5777}
5778\def\isentry{\entry}%
5775 5779
5776% Like plain.tex's \dotfill, except uses up at least 1 em. 5780% Like plain.tex's \dotfill, except uses up at least 1 em.
5777% The filll stretch here overpowers both the fil and fill stretch to push 5781% The filll stretch here overpowers both the fil and fill stretch to push
diff --git a/lib/getopt-pfx-core.h b/lib/getopt-pfx-core.h
index 4dc427dc3ef..db5f15c22d7 100644
--- a/lib/getopt-pfx-core.h
+++ b/lib/getopt-pfx-core.h
@@ -47,6 +47,11 @@
47# define opterr __GETOPT_ID (opterr) 47# define opterr __GETOPT_ID (opterr)
48# define optind __GETOPT_ID (optind) 48# define optind __GETOPT_ID (optind)
49# define optopt __GETOPT_ID (optopt) 49# define optopt __GETOPT_ID (optopt)
50
51/* The system's getopt.h may have already included getopt-core.h to
52 declare the unprefixed identifiers. Undef _GETOPT_CORE_H so that
53 getopt-core.h declares them with prefixes. */
54# undef _GETOPT_CORE_H
50#endif 55#endif
51 56
52#include <getopt-core.h> 57#include <getopt-core.h>
diff --git a/lib/getopt-pfx-ext.h b/lib/getopt-pfx-ext.h
index 08397591790..91f4df1720f 100644
--- a/lib/getopt-pfx-ext.h
+++ b/lib/getopt-pfx-ext.h
@@ -45,6 +45,11 @@
45# define getopt_long_only __GETOPT_ID (getopt_long_only) 45# define getopt_long_only __GETOPT_ID (getopt_long_only)
46# define option __GETOPT_ID (option) 46# define option __GETOPT_ID (option)
47# define _getopt_internal __GETOPT_ID (getopt_internal) 47# define _getopt_internal __GETOPT_ID (getopt_internal)
48
49/* The system's getopt.h may have already included getopt-ext.h to
50 declare the unprefixed identifiers. Undef _GETOPT_EXT_H so that
51 getopt-ext.h declares them with prefixes. */
52# undef _GETOPT_EXT_H
48#endif 53#endif
49 54
50/* Standalone applications get correct prototypes for getopt_long and 55/* Standalone applications get correct prototypes for getopt_long and
diff --git a/m4/sys_types_h.m4 b/m4/sys_types_h.m4
index e5906709f69..ec0860be905 100644
--- a/m4/sys_types_h.m4
+++ b/m4/sys_types_h.m4
@@ -1,4 +1,4 @@
1# sys_types_h.m4 serial 7 1# sys_types_h.m4 serial 8
2dnl Copyright (C) 2011-2017 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -6,6 +6,9 @@ dnl with or without modifications, as long as this notice is preserved.
6 6
7AC_DEFUN_ONCE([gl_SYS_TYPES_H], 7AC_DEFUN_ONCE([gl_SYS_TYPES_H],
8[ 8[
9 dnl Use sane struct stat types in OpenVMS 8.2 and later.
10 AC_DEFINE([_USE_STD_STAT], 1, [For standard stat data types on VMS.])
11
9 AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS]) 12 AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS])
10 gl_NEXT_HEADERS([sys/types.h]) 13 gl_NEXT_HEADERS([sys/types.h])
11 14