diff options
| author | Paul Eggert | 2011-02-14 20:53:29 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-14 20:53:29 -0800 |
| commit | bb55f713d2e4ea089a861a257d7d000432642ce9 (patch) | |
| tree | 92cf79666025c70a6541e87cb47ab8299c5f92af | |
| parent | 8017fd6b81ed07c1ff3adf7494c867f9a2b034a9 (diff) | |
| download | emacs-bb55f713d2e4ea089a861a257d7d000432642ce9.tar.gz emacs-bb55f713d2e4ea089a861a257d7d000432642ce9.zip | |
Merge from gnulib.
| -rw-r--r-- | ChangeLog | 16 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/texinfo.tex | 280 | ||||
| -rw-r--r-- | lib/gettext.h | 6 | ||||
| -rw-r--r-- | lib/ignore-value.h | 8 |
5 files changed, 191 insertions, 124 deletions
| @@ -1,3 +1,19 @@ | |||
| 1 | 2011-02-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Merge from gnulib. | ||
| 4 | |||
| 5 | 2011-02-13 Bruno Haible <bruno@clisp.org> | ||
| 6 | |||
| 7 | Consistent macro naming for macros that use GCC __attribute__. | ||
| 8 | * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from | ||
| 9 | ATTRIBUTE_DEPRECATED. | ||
| 10 | |||
| 11 | 2011-02-12 Bruno Haible <bruno@clisp.org> | ||
| 12 | |||
| 13 | setlocale: Prefer gnulib's override over libintl's override. | ||
| 14 | * lib/gettext.h (setlocale): Redefine to rpl_setlocale if | ||
| 15 | GNULIB_defined_setlocale is set. | ||
| 16 | |||
| 1 | 2011-02-13 Glenn Morris <rgm@gnu.org> | 17 | 2011-02-13 Glenn Morris <rgm@gnu.org> |
| 2 | 18 | ||
| 3 | * make-dist: Exclude generated file src/globals.h. | 19 | * make-dist: Exclude generated file src/globals.h. |
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 684fe9c468f..20463724c79 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-15 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Merge from gnulib. | ||
| 4 | * texinfo.tex: Update to version 2011-02-14.11. | ||
| 5 | |||
| 1 | 2011-02-13 Michael Albinus <michael.albinus@gmx.de> | 6 | 2011-02-13 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * tramp.texi (History): Remove IMAP support. | 8 | * tramp.texi (History): Remove IMAP support. |
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex index 1fe8a1872f6..4467c1e860f 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{2011-02-07.16} | 6 | \def\texinfoversion{2011-02-14.11} |
| 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, |
| @@ -158,6 +158,7 @@ | |||
| 158 | \def\spaceisspace{\catcode`\ =\spacecat} | 158 | \def\spaceisspace{\catcode`\ =\spacecat} |
| 159 | 159 | ||
| 160 | % sometimes characters are active, so we need control sequences. | 160 | % sometimes characters are active, so we need control sequences. |
| 161 | \chardef\ampChar = `\& | ||
| 161 | \chardef\colonChar = `\: | 162 | \chardef\colonChar = `\: |
| 162 | \chardef\commaChar = `\, | 163 | \chardef\commaChar = `\, |
| 163 | \chardef\dashChar = `\- | 164 | \chardef\dashChar = `\- |
| @@ -547,7 +548,7 @@ | |||
| 547 | } | 548 | } |
| 548 | \def\inenvironment#1{% | 549 | \def\inenvironment#1{% |
| 549 | \ifx#1\empty | 550 | \ifx#1\empty |
| 550 | out of any environment% | 551 | outside of any environment% |
| 551 | \else | 552 | \else |
| 552 | in environment \expandafter\string#1% | 553 | in environment \expandafter\string#1% |
| 553 | \fi | 554 | \fi |
| @@ -2491,22 +2492,8 @@ end | |||
| 2491 | \codex | 2492 | \codex |
| 2492 | } | 2493 | } |
| 2493 | } | 2494 | } |
| 2494 | % Handle @url similarly to \code, but allows line breaks after .#?/ (only). | 2495 | |
| 2495 | { | 2496 | \def\codex #1{\tclose{#1}\endgroup} |
| 2496 | \catcode`\.=\active \catcode`\#=\active | ||
| 2497 | \catcode`\?=\active \catcode`\/=\active | ||
| 2498 | % | ||
| 2499 | \global\def\urefcode{\begingroup | ||
| 2500 | \setupmarkupstyle{code}% | ||
| 2501 | \catcode\dotChar=\active \catcode\hashChar=\active | ||
| 2502 | \catcode\questChar=\active \catcode\slashChar=\active | ||
| 2503 | \let.\urefcodedot | ||
| 2504 | \let#\urefcodehash | ||
| 2505 | \let?\urefcodequestion | ||
| 2506 | \let/\urefcodeslash | ||
| 2507 | \codex | ||
| 2508 | } | ||
| 2509 | } | ||
| 2510 | 2497 | ||
| 2511 | \def\realdash{-} | 2498 | \def\realdash{-} |
| 2512 | \def\codedash{-\discretionary{}{}{}} | 2499 | \def\codedash{-\discretionary{}{}{}} |
| @@ -2521,25 +2508,6 @@ end | |||
| 2521 | \discretionary{}{}{}}% | 2508 | \discretionary{}{}{}}% |
| 2522 | {\_}% | 2509 | {\_}% |
| 2523 | } | 2510 | } |
| 2524 | % we put a little stretch before and after the breakable chars, to help | ||
| 2525 | % line breaking of long url's. The unequal skips make look better in | ||
| 2526 | % cmtt at least, especially for dots. | ||
| 2527 | \def\urefprestretch{\nobreak \hskip0pt plus.13em } | ||
| 2528 | \def\urefpoststretch{\allowbreak \hskip0pt plus.1em } | ||
| 2529 | \def\urefcodedot{\urefprestretch .\urefpoststretch} | ||
| 2530 | \def\urefcodehash{\urefprestretch \#\urefpoststretch} | ||
| 2531 | \def\urefcodequestion{\urefprestretch ?\urefpoststretch} | ||
| 2532 | \def\urefcodeslash{\futurelet\next\urefcodeslashfinish} | ||
| 2533 | { | ||
| 2534 | \catcode`\/=\active | ||
| 2535 | \global\def\urefcodeslashfinish{% | ||
| 2536 | \urefprestretch \slashChar | ||
| 2537 | % Allow line break only after the final / in a sequence of | ||
| 2538 | % slashes, to avoid line break between the slashes in http://. | ||
| 2539 | \ifx\next/\else \urefpoststretch \fi | ||
| 2540 | } | ||
| 2541 | } | ||
| 2542 | \def\codex #1{\tclose{#1}\endgroup} | ||
| 2543 | 2511 | ||
| 2544 | % An additional complication: the above will allow breaks after, e.g., | 2512 | % An additional complication: the above will allow breaks after, e.g., |
| 2545 | % each of the four underscores in __typeof__. This is undesirable in | 2513 | % each of the four underscores in __typeof__. This is undesirable in |
| @@ -2563,59 +2531,14 @@ end | |||
| 2563 | \fi\fi | 2531 | \fi\fi |
| 2564 | } | 2532 | } |
| 2565 | 2533 | ||
| 2566 | % @kbd is like @code, except that if the argument is just one @key command, | ||
| 2567 | % then @kbd has no effect. | ||
| 2568 | \def\kbd#1{{\setupmarkupstyle{kbd}\def\look{#1}\expandafter\kbdfoo\look??\par}} | ||
| 2569 | |||
| 2570 | % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always), | ||
| 2571 | % `example' (@kbd uses ttsl only inside of @example and friends), | ||
| 2572 | % or `code' (@kbd uses normal tty font always). | ||
| 2573 | \parseargdef\kbdinputstyle{% | ||
| 2574 | \def\txiarg{#1}% | ||
| 2575 | \ifx\txiarg\worddistinct | ||
| 2576 | \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl}% | ||
| 2577 | \else\ifx\txiarg\wordexample | ||
| 2578 | \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\tt}% | ||
| 2579 | \else\ifx\txiarg\wordcode | ||
| 2580 | \gdef\kbdexamplefont{\tt}\gdef\kbdfont{\tt}% | ||
| 2581 | \else | ||
| 2582 | \errhelp = \EMsimple | ||
| 2583 | \errmessage{Unknown @kbdinputstyle option `\txiarg'}% | ||
| 2584 | \fi\fi\fi | ||
| 2585 | } | ||
| 2586 | \def\worddistinct{distinct} | ||
| 2587 | \def\wordexample{example} | ||
| 2588 | \def\wordcode{code} | ||
| 2589 | |||
| 2590 | % Default is `distinct'. | ||
| 2591 | \kbdinputstyle distinct | ||
| 2592 | |||
| 2593 | \def\xkey{\key} | ||
| 2594 | \def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}% | ||
| 2595 | \ifx\one\xkey\ifx\threex\three \key{#2}% | ||
| 2596 | \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi | ||
| 2597 | \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi} | ||
| 2598 | |||
| 2599 | % For @indicateurl, @env, @command quotes seem unnecessary, so use \code. | ||
| 2600 | \let\indicateurl=\code | ||
| 2601 | \let\env=\code | ||
| 2602 | \let\command=\code | ||
| 2603 | |||
| 2604 | % @clicksequence{File @click{} Open ...} | ||
| 2605 | \def\clicksequence#1{\begingroup #1\endgroup} | ||
| 2606 | |||
| 2607 | % @clickstyle @arrow (by default) | ||
| 2608 | \parseargdef\clickstyle{\def\click{#1}} | ||
| 2609 | \def\click{\arrow} | ||
| 2610 | |||
| 2611 | % @uref (abbreviation for `urlref') takes an optional (comma-separated) | 2534 | % @uref (abbreviation for `urlref') takes an optional (comma-separated) |
| 2612 | % second argument specifying the text to display and an optional third | 2535 | % second argument specifying the text to display and an optional third |
| 2613 | % arg as text to display instead of (rather than in addition to) the url | 2536 | % arg as text to display instead of (rather than in addition to) the url |
| 2614 | % itself. First (mandatory) arg is the url. Perhaps eventually put in | 2537 | % itself. First (mandatory) arg is the url. |
| 2615 | % a hypertex \special here. | 2538 | % (This \urefnobreak definition isn't used now, leaving it for a while |
| 2616 | % | 2539 | % for comparison.) |
| 2617 | \def\uref#1{\douref #1,,,\finish} | 2540 | \def\urefnobreak#1{\dourefnobreak #1,,,\finish} |
| 2618 | \def\douref#1,#2,#3,#4\finish{\begingroup | 2541 | \def\dourefnobreak#1,#2,#3,#4\finish{\begingroup |
| 2619 | \unsepspaces | 2542 | \unsepspaces |
| 2620 | \pdfurl{#1}% | 2543 | \pdfurl{#1}% |
| 2621 | \setbox0 = \hbox{\ignorespaces #3}% | 2544 | \setbox0 = \hbox{\ignorespaces #3}% |
| @@ -2636,7 +2559,11 @@ end | |||
| 2636 | \endlink | 2559 | \endlink |
| 2637 | \endgroup} | 2560 | \endgroup} |
| 2638 | 2561 | ||
| 2639 | \def\nouref#1,#2,#3,#4\finish{\begingroup % doesn't work in @example | 2562 | % This \urefbreak definition is the active one. |
| 2563 | \def\urefbreak{\begingroup \urefcatcodes \dourefbreak} | ||
| 2564 | \let\uref=\urefbreak | ||
| 2565 | \def\dourefbreak#1{\urefbreakfinish #1,,,\finish} | ||
| 2566 | \def\urefbreakfinish#1,#2,#3,#4\finish{% doesn't work in @example | ||
| 2640 | \unsepspaces | 2567 | \unsepspaces |
| 2641 | \pdfurl{#1}% | 2568 | \pdfurl{#1}% |
| 2642 | \setbox0 = \hbox{\ignorespaces #3}% | 2569 | \setbox0 = \hbox{\ignorespaces #3}% |
| @@ -2648,18 +2575,87 @@ end | |||
| 2648 | \ifpdf | 2575 | \ifpdf |
| 2649 | \unhbox0 % PDF: 2nd arg given, show only it | 2576 | \unhbox0 % PDF: 2nd arg given, show only it |
| 2650 | \else | 2577 | \else |
| 2651 | % \empty at the end of \scantokens arg gets rid of | 2578 | \unhbox0\ (\urefcode{#1})% DVI: 2nd arg given, show both it and url |
| 2652 | % trailing newline (and ultimate spurious whitespace). | ||
| 2653 | \unhbox0\ (\urefcode{\scantokens{#1\empty}})% DVI: 2nd arg given, | ||
| 2654 | % show both it and url | ||
| 2655 | \fi | 2579 | \fi |
| 2656 | \else | 2580 | \else |
| 2657 | \urefcode{\scantokens{#1\empty}}% only url given, so show it | 2581 | \urefcode{#1}% only url given, so show it |
| 2658 | \fi | 2582 | \fi |
| 2659 | \fi | 2583 | \fi |
| 2660 | \endlink | 2584 | \endlink |
| 2661 | \endgroup} | 2585 | \endgroup} |
| 2662 | 2586 | ||
| 2587 | % Allow line breaks around only a few characters (only). | ||
| 2588 | \def\urefcatcodes{% | ||
| 2589 | \catcode\ampChar=\active \catcode\dotChar=\active | ||
| 2590 | \catcode\hashChar=\active \catcode\questChar=\active | ||
| 2591 | \catcode\slashChar=\active | ||
| 2592 | } | ||
| 2593 | { | ||
| 2594 | \urefcatcodes | ||
| 2595 | % | ||
| 2596 | \global\def\urefcode{\begingroup | ||
| 2597 | \setupmarkupstyle{code}% | ||
| 2598 | \urefcatcodes | ||
| 2599 | \let&\urefcodeamp | ||
| 2600 | \let.\urefcodedot | ||
| 2601 | \let#\urefcodehash | ||
| 2602 | \let?\urefcodequest | ||
| 2603 | \let/\urefcodeslash | ||
| 2604 | \codex | ||
| 2605 | } | ||
| 2606 | % | ||
| 2607 | % By default, they are just regular characters. | ||
| 2608 | \global\def&{\normalamp} | ||
| 2609 | \global\def.{\normaldot} | ||
| 2610 | \global\def#{\normalhash} | ||
| 2611 | \global\def?{\normalquest} | ||
| 2612 | \global\def/{\normalslash} | ||
| 2613 | } | ||
| 2614 | |||
| 2615 | % we put a little stretch before and after the breakable chars, to help | ||
| 2616 | % line breaking of long url's. The unequal skips make look better in | ||
| 2617 | % cmtt at least, especially for dots. | ||
| 2618 | \def\urefprestretch{\urefprebreak \hskip0pt plus.13em } | ||
| 2619 | \def\urefpoststretch{\urefpostbreak \hskip0pt plus.1em } | ||
| 2620 | % | ||
| 2621 | \def\urefcodeamp{\urefprestretch \&\urefpoststretch} | ||
| 2622 | \def\urefcodedot{\urefprestretch .\urefpoststretch} | ||
| 2623 | \def\urefcodehash{\urefprestretch \#\urefpoststretch} | ||
| 2624 | \def\urefcodequest{\urefprestretch ?\urefpoststretch} | ||
| 2625 | \def\urefcodeslash{\futurelet\next\urefcodeslashfinish} | ||
| 2626 | { | ||
| 2627 | \catcode`\/=\active | ||
| 2628 | \global\def\urefcodeslashfinish{% | ||
| 2629 | \urefprestretch \slashChar | ||
| 2630 | % Allow line break only after the final / in a sequence of | ||
| 2631 | % slashes, to avoid line break between the slashes in http://. | ||
| 2632 | \ifx\next/\else \urefpoststretch \fi | ||
| 2633 | } | ||
| 2634 | } | ||
| 2635 | |||
| 2636 | % One more complication: by default we'll break after the special | ||
| 2637 | % characters, but some people like to break before the special chars, so | ||
| 2638 | % allow that. Also allow no breaking at all, for manual control. | ||
| 2639 | % | ||
| 2640 | \parseargdef\urefbreakstyle{% | ||
| 2641 | \def\txiarg{#1}% | ||
| 2642 | \ifx\txiarg\wordnone | ||
| 2643 | \def\urefprebreak{\nobreak}\def\urefpostbreak{\nobreak} | ||
| 2644 | \else\ifx\txiarg\wordbefore | ||
| 2645 | \def\urefprebreak{\allowbreak}\def\urefpostbreak{\nobreak} | ||
| 2646 | \else\ifx\txiarg\wordafter | ||
| 2647 | \def\urefprebreak{\nobreak}\def\urefpostbreak{\allowbreak} | ||
| 2648 | \else | ||
| 2649 | \errhelp = \EMsimple | ||
| 2650 | \errmessage{Unknown @urefbreakstyle setting `\txiarg'}% | ||
| 2651 | \fi\fi\fi | ||
| 2652 | } | ||
| 2653 | \def\wordafter{after} | ||
| 2654 | \def\wordbefore{before} | ||
| 2655 | \def\wordnone{none} | ||
| 2656 | |||
| 2657 | \urefbreakstyle after | ||
| 2658 | |||
| 2663 | % @url synonym for @uref, since that's how everyone uses it. | 2659 | % @url synonym for @uref, since that's how everyone uses it. |
| 2664 | % | 2660 | % |
| 2665 | \let\url=\uref | 2661 | \let\url=\uref |
| @@ -2681,6 +2677,51 @@ end | |||
| 2681 | \let\email=\uref | 2677 | \let\email=\uref |
| 2682 | \fi | 2678 | \fi |
| 2683 | 2679 | ||
| 2680 | % @kbd is like @code, except that if the argument is just one @key command, | ||
| 2681 | % then @kbd has no effect. | ||
| 2682 | \def\kbd#1{{\setupmarkupstyle{kbd}\def\look{#1}\expandafter\kbdfoo\look??\par}} | ||
| 2683 | |||
| 2684 | % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always), | ||
| 2685 | % `example' (@kbd uses ttsl only inside of @example and friends), | ||
| 2686 | % or `code' (@kbd uses normal tty font always). | ||
| 2687 | \parseargdef\kbdinputstyle{% | ||
| 2688 | \def\txiarg{#1}% | ||
| 2689 | \ifx\txiarg\worddistinct | ||
| 2690 | \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl}% | ||
| 2691 | \else\ifx\txiarg\wordexample | ||
| 2692 | \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\tt}% | ||
| 2693 | \else\ifx\txiarg\wordcode | ||
| 2694 | \gdef\kbdexamplefont{\tt}\gdef\kbdfont{\tt}% | ||
| 2695 | \else | ||
| 2696 | \errhelp = \EMsimple | ||
| 2697 | \errmessage{Unknown @kbdinputstyle setting `\txiarg'}% | ||
| 2698 | \fi\fi\fi | ||
| 2699 | } | ||
| 2700 | \def\worddistinct{distinct} | ||
| 2701 | \def\wordexample{example} | ||
| 2702 | \def\wordcode{code} | ||
| 2703 | |||
| 2704 | % Default is `distinct'. | ||
| 2705 | \kbdinputstyle distinct | ||
| 2706 | |||
| 2707 | \def\xkey{\key} | ||
| 2708 | \def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}% | ||
| 2709 | \ifx\one\xkey\ifx\threex\three \key{#2}% | ||
| 2710 | \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi | ||
| 2711 | \else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi} | ||
| 2712 | |||
| 2713 | % For @indicateurl, @env, @command quotes seem unnecessary, so use \code. | ||
| 2714 | \let\indicateurl=\code | ||
| 2715 | \let\env=\code | ||
| 2716 | \let\command=\code | ||
| 2717 | |||
| 2718 | % @clicksequence{File @click{} Open ...} | ||
| 2719 | \def\clicksequence#1{\begingroup #1\endgroup} | ||
| 2720 | |||
| 2721 | % @clickstyle @arrow (by default) | ||
| 2722 | \parseargdef\clickstyle{\def\click{#1}} | ||
| 2723 | \def\click{\arrow} | ||
| 2724 | |||
| 2684 | % Typeset a dimension, e.g., `in' or `pt'. The only reason for the | 2725 | % Typeset a dimension, e.g., `in' or `pt'. The only reason for the |
| 2685 | % argument is to make the input look right: @dmn{pt} instead of @dmn{}pt. | 2726 | % argument is to make the input look right: @dmn{pt} instead of @dmn{}pt. |
| 2686 | % | 2727 | % |
| @@ -5677,6 +5718,8 @@ end | |||
| 5677 | % | 5718 | % |
| 5678 | \def\sectionheading#1#2#3#4{% | 5719 | \def\sectionheading#1#2#3#4{% |
| 5679 | {% | 5720 | {% |
| 5721 | \checkenv{}% should not be in an environment. | ||
| 5722 | % | ||
| 5680 | % Switch to the right set of fonts. | 5723 | % Switch to the right set of fonts. |
| 5681 | \csname #2fonts\endcsname \rmisbold | 5724 | \csname #2fonts\endcsname \rmisbold |
| 5682 | % | 5725 | % |
| @@ -9305,24 +9348,15 @@ directory should work if nowhere else does.} | |||
| 9305 | \catcode`\^^? = 14 | 9348 | \catcode`\^^? = 14 |
| 9306 | 9349 | ||
| 9307 | % Define macros to output various characters with catcode for normal text. | 9350 | % Define macros to output various characters with catcode for normal text. |
| 9308 | \catcode`\"=\other | 9351 | \catcode`\"=\other \def\normaldoublequote{"} |
| 9309 | \catcode`\~=\other | 9352 | \catcode`\$=\other \def\normaldollar{$}%$ font-lock fix |
| 9310 | \catcode`\^=\other | 9353 | \catcode`\+=\other \def\normalplus{+} |
| 9311 | \catcode`\_=\other | 9354 | \catcode`\<=\other \def\normalless{<} |
| 9312 | \catcode`\|=\other | 9355 | \catcode`\>=\other \def\normalgreater{>} |
| 9313 | \catcode`\<=\other | 9356 | \catcode`\^=\other \def\normalcaret{^} |
| 9314 | \catcode`\>=\other | 9357 | \catcode`\_=\other \def\normalunderscore{_} |
| 9315 | \catcode`\+=\other | 9358 | \catcode`\|=\other \def\normalverticalbar{|} |
| 9316 | \catcode`\$=\other | 9359 | \catcode`\~=\other \def\normaltilde{~} |
| 9317 | \def\normaldoublequote{"} | ||
| 9318 | \def\normaltilde{~} | ||
| 9319 | \def\normalcaret{^} | ||
| 9320 | \def\normalunderscore{_} | ||
| 9321 | \def\normalverticalbar{|} | ||
| 9322 | \def\normalless{<} | ||
| 9323 | \def\normalgreater{>} | ||
| 9324 | \def\normalplus{+} | ||
| 9325 | \def\normaldollar{$}%$ font-lock fix | ||
| 9326 | 9360 | ||
| 9327 | % This macro is used to make a character print one way in \tt | 9361 | % This macro is used to make a character print one way in \tt |
| 9328 | % (where it can probably be output as-is), and another way in other fonts, | 9362 | % (where it can probably be output as-is), and another way in other fonts, |
| @@ -9415,16 +9449,16 @@ directory should work if nowhere else does.} | |||
| 9415 | % the literal character `\'. | 9449 | % the literal character `\'. |
| 9416 | % | 9450 | % |
| 9417 | @def@normalturnoffactive{% | 9451 | @def@normalturnoffactive{% |
| 9418 | @let\=@normalbackslash | ||
| 9419 | @let"=@normaldoublequote | 9452 | @let"=@normaldoublequote |
| 9420 | @let~=@normaltilde | 9453 | @let$=@normaldollar %$ font-lock fix |
| 9454 | @let+=@normalplus | ||
| 9455 | @let<=@normalless | ||
| 9456 | @let>=@normalgreater | ||
| 9457 | @let\=@normalbackslash | ||
| 9421 | @let^=@normalcaret | 9458 | @let^=@normalcaret |
| 9422 | @let_=@normalunderscore | 9459 | @let_=@normalunderscore |
| 9423 | @let|=@normalverticalbar | 9460 | @let|=@normalverticalbar |
| 9424 | @let<=@normalless | 9461 | @let~=@normaltilde |
| 9425 | @let>=@normalgreater | ||
| 9426 | @let+=@normalplus | ||
| 9427 | @let$=@normaldollar %$ font-lock fix | ||
| 9428 | @markupsetuplqdefault | 9462 | @markupsetuplqdefault |
| 9429 | @markupsetuprqdefault | 9463 | @markupsetuprqdefault |
| 9430 | @unsepspaces | 9464 | @unsepspaces |
| @@ -9456,10 +9490,16 @@ directory should work if nowhere else does.} | |||
| 9456 | % Say @foo, not \foo, in error messages. | 9490 | % Say @foo, not \foo, in error messages. |
| 9457 | @escapechar = `@@ | 9491 | @escapechar = `@@ |
| 9458 | 9492 | ||
| 9493 | % These (along with & and #) are made active for url-breaking, so need | ||
| 9494 | % active definitions as the normal characters. | ||
| 9495 | @def@normaldot{.} | ||
| 9496 | @def@normalquest{?} | ||
| 9497 | @def@normalslash{/} | ||
| 9498 | |||
| 9459 | % These look ok in all fonts, so just make them not special. | 9499 | % These look ok in all fonts, so just make them not special. |
| 9460 | @catcode`@& = @other | 9500 | @catcode`@& = @other @def@normalamp{&} |
| 9461 | @catcode`@# = @other | 9501 | @catcode`@# = @other @def@normalhash{#} |
| 9462 | @catcode`@% = @other | 9502 | @catcode`@% = @other @def@normalpercent{%} |
| 9463 | 9503 | ||
| 9464 | @c Finally, make ` and ' active, so that txicodequoteundirected and | 9504 | @c Finally, make ` and ' active, so that txicodequoteundirected and |
| 9465 | @c txicodequotebacktick work right in, e.g., @w{@code{`foo'}}. If we | 9505 | @c txicodequotebacktick work right in, e.g., @w{@code{`foo'}}. If we |
diff --git a/lib/gettext.h b/lib/gettext.h index eb74aecb9a8..458e3322177 100644 --- a/lib/gettext.h +++ b/lib/gettext.h | |||
| @@ -93,6 +93,12 @@ | |||
| 93 | 93 | ||
| 94 | #endif | 94 | #endif |
| 95 | 95 | ||
| 96 | /* Prefer gnulib's setlocale override over libintl's setlocale override. */ | ||
| 97 | #ifdef GNULIB_defined_setlocale | ||
| 98 | # undef setlocale | ||
| 99 | # define setlocale rpl_setlocale | ||
| 100 | #endif | ||
| 101 | |||
| 96 | /* A pseudo function call that serves as a marker for the automated | 102 | /* A pseudo function call that serves as a marker for the automated |
| 97 | extraction of messages, but does not call gettext(). The run-time | 103 | extraction of messages, but does not call gettext(). The run-time |
| 98 | translation is done at a different place in the code. | 104 | translation is done at a different place in the code. |
diff --git a/lib/ignore-value.h b/lib/ignore-value.h index 5e683bbb533..f021a1ac8ea 100644 --- a/lib/ignore-value.h +++ b/lib/ignore-value.h | |||
| @@ -35,13 +35,13 @@ | |||
| 35 | #ifndef _GL_IGNORE_VALUE_H | 35 | #ifndef _GL_IGNORE_VALUE_H |
| 36 | # define _GL_IGNORE_VALUE_H | 36 | # define _GL_IGNORE_VALUE_H |
| 37 | 37 | ||
| 38 | # ifndef ATTRIBUTE_DEPRECATED | 38 | # ifndef _GL_ATTRIBUTE_DEPRECATED |
| 39 | /* The __attribute__((__deprecated__)) feature | 39 | /* The __attribute__((__deprecated__)) feature |
| 40 | is available in gcc versions 3.1 and newer. */ | 40 | is available in gcc versions 3.1 and newer. */ |
| 41 | # if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 1) | 41 | # if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 1) |
| 42 | # define ATTRIBUTE_DEPRECATED /* empty */ | 42 | # define _GL_ATTRIBUTE_DEPRECATED /* empty */ |
| 43 | # else | 43 | # else |
| 44 | # define ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) | 44 | # define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__)) |
| 45 | # endif | 45 | # endif |
| 46 | # endif | 46 | # endif |
| 47 | 47 | ||
| @@ -56,7 +56,7 @@ | |||
| 56 | 56 | ||
| 57 | /* ignore_value works for scalars, pointers and aggregates; | 57 | /* ignore_value works for scalars, pointers and aggregates; |
| 58 | deprecate ignore_ptr. */ | 58 | deprecate ignore_ptr. */ |
| 59 | static inline void ATTRIBUTE_DEPRECATED | 59 | static inline void _GL_ATTRIBUTE_DEPRECATED |
| 60 | ignore_ptr (void *p) { (void) p; } /* deprecated: use ignore_value */ | 60 | ignore_ptr (void *p) { (void) p; } /* deprecated: use ignore_value */ |
| 61 | 61 | ||
| 62 | #endif | 62 | #endif |