aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorKenichi Handa2004-04-16 12:51:06 +0000
committerKenichi Handa2004-04-16 12:51:06 +0000
commit6b61353c0a0320ee15bb6488149735381fed62ec (patch)
treee69adba60e504a5a37beb556ad70084de88a7aab /lib-src
parentdc6a28319312fe81f7a1015e363174022313f0bd (diff)
downloademacs-6b61353c0a0320ee15bb6488149735381fed62ec.tar.gz
emacs-6b61353c0a0320ee15bb6488149735381fed62ec.zip
Sync to HEAD
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog119
-rw-r--r--lib-src/Makefile.in18
-rw-r--r--lib-src/README2
-rw-r--r--lib-src/b2m.c2
-rw-r--r--lib-src/b2m.pl4
-rw-r--r--lib-src/cvtmail.c3
-rw-r--r--lib-src/digest-doc.c3
-rw-r--r--lib-src/ebrowse.c3
-rw-r--r--lib-src/emacsclient.c161
-rw-r--r--lib-src/emacstool.c3
-rw-r--r--lib-src/etags.c5
-rw-r--r--lib-src/fakemail.c3
-rw-r--r--lib-src/getopt.c3
-rw-r--r--lib-src/getopt.h3
-rw-r--r--lib-src/getopt1.c2
-rwxr-xr-xlib-src/grep-changelog63
-rw-r--r--lib-src/hexl.c3
-rw-r--r--lib-src/leditcfns.c3
-rw-r--r--lib-src/make-docfile.c33
-rw-r--r--lib-src/makefile.nt2
-rw-r--r--lib-src/makefile.w32-in4
-rw-r--r--lib-src/movemail.c3
-rw-r--r--lib-src/ntlib.c3
-rw-r--r--lib-src/ntlib.h3
-rw-r--r--lib-src/pop.c3
-rw-r--r--lib-src/pop.h3
-rw-r--r--lib-src/profile.c3
-rwxr-xr-xlib-src/rcs-checkin1
-rwxr-xr-xlib-src/rcs2log50
-rw-r--r--lib-src/sorted-doc.c3
-rw-r--r--lib-src/test-distrib.c3
-rw-r--r--lib-src/update-game-score.c3
-rwxr-xr-xlib-src/vcdiff6
-rw-r--r--lib-src/yow.c2
34 files changed, 402 insertions, 126 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index e6b6b4c2ef7..75b3be839e1 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,103 @@
12004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * make-docfile.c (xmalloc): Fix return type.
4 (put_filename): New fun.
5 (scan_file): Use it.
6
72004-03-09 Juanma Barranquero <lektu@terra.es>
8
9 * grep-changelog: Changes to support ChangeLog.10+.
10 (main): Tidy up usage string. Fix "Use of uninitialized value"
11 warning. Set version to 0.2. Parse the directory listing to get
12 any ChangeLog.n file, not just 1..9.
13 (header_match_p, entry_match_p, print_log, parse_changelog):
14 Remove Perl prototypes (their purpose is to help the parser, which
15 isn't needed here, not declare arguments).
16 (parse_changelog): Make --reverse faster on big batches by not
17 modifying the entries list.
18
192004-03-01 Juanma Barranquero <lektu@terra.es>
20
21 * makefile.w32-in (obj): Add fringe.c.
22
232004-02-14 Paul Eggert <eggert@twinsun.com>
24
25 * rcs2log: Work correctly if CVSROOT specifies :fork: or
26 :local: methods, or omits the colon between the hostname
27 and the path. Allow :/ in repository path, since CVS does.
28 Fix typo: "pository" should be set from $CVSROOT, not $repository.
29 This fixes a bug reported by Wolfgang Scherer in
30 <http://mail.gnu.org/archive/html/bug-gnu-emacs/2004-02/msg00085.html>,
31 along with some related bugs I discovered by inspecting how
32 CVS itself parses $CVSROOT.
33
342004-02-04 J,bi(Br,bt(Bme Marant <jmarant@nerim.net> (tiny change)
35
36 * emacsclient.c (decode_options): Fix handling of alternate editor.
37
382004-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
39
40 * emacsclient.c (main): Don't use the hostname in the socket name.
41 Look for relative socket names in the /tmp dir rather than in cwd.
42
432004-01-24 Richard M. Stallman <rms@gnu.org>
44
45 * emacsclient.c (main): Restore errno from saved_errno,
46 so the error message comes from socket_status.
47
482004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
49
50 * emacsclient.c (main): Stop if socket name too long.
51 Only try su-fallback if the socket name was not explicit.
52 Check socket name length in su-fallback case as well.
53
542004-01-08 Andreas Schwab <schwab@suse.de>
55
56 * emacsclient.c (main): Save errno from socket_status.
57
582004-01-04 Andreas Schwab <schwab@suse.de>
59
60 * emacsclient.c (main): Fix socket name when using another user.
61
622003-12-27 Paul Eggert <eggert@twinsun.com>
63
64 * rcs2log (rlog_options): Append -rbranchtag if CVS/Tag indicates
65 a tag, and if the user has not specified an rlog option.
66 Adapted from a suggestion by Martin Stjernholm in
67 <http://mail.gnu.org/archive/html/bug-gnu-emacs/2003-07/msg00066.html>.
68 (Copyright): Update to 2003.
69
702003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
71
72 * make-docfile.c (main): For return code, no longer special-case VMS.
73 Instead, use `EXIT_SUCCESS' and `EXIT_FAILURE' from stdlib.h.
74
752003-09-28 Andreas B,A|(Bsching <crunchy@tzi.de> (tiny change)
76
77 * emacsclient.c (quote_file_name): Print the result instead of
78 returning it. Fix the return type accordingly.
79 (main): With --eval, if no file name, read from stdin.
80 Quote file names.
81
822003-09-10 Richard M. Stallman <rms@gnu.org>
83
84 * emacsclient.c (main): Use socket_name.
85
862003-09-10 Andreas B,A|(Bsching <crunchy@tzi.de> (tiny change)
87
88 * emacsclient.c (socket_name): New variable.
89 (longopts, decode_options, print_help_and_exit):
90 Handle --socket-name argument.
91
922003-08-25 Takaaki Ota <Takaaki.Ota@am.sony.com> (tiny change)
93
94 * etags.c (consider_token): Check C++ `operator' only when the
95 token len is long enough.
96
972003-08-20 Dave Love <fx@gnu.org>
98
99 * Makefile.in: Remove obsolete references to alloca.
100
12003-07-29 Ken Brush <ken@wirex.com> 1012003-07-29 Ken Brush <ken@wirex.com>
2 102
3 * emacsclient.c (main) 103 * emacsclient.c (main)
@@ -1554,7 +1654,7 @@
1554 Now used as element of a linked list. 1654 Now used as element of a linked list.
1555 (patterns, num_patterns): Global variables deleted. 1655 (patterns, num_patterns): Global variables deleted.
1556 (p_head): New global variable. 1656 (p_head): New global variable.
1557 (forced_lang): New global variable (replaces lang_func). 1657 (forced_lang): New global variable (replaces lang_func).
1558 (get_language_from_name, get_language_from_interpreter) 1658 (get_language_from_name, get_language_from_interpreter)
1559 (get_language_from_suffix): Semantics changed. All callers changed. 1659 (get_language_from_suffix): Semantics changed. All callers changed.
1560 (last_node): New global variable. 1660 (last_node): New global variable.
@@ -2818,7 +2918,7 @@ Tue Jul 1 01:09:07 1997 Geoff Voelker <voelker@cs.washington.edu>
2818 2918
2819 * etags.c (lowcase): Use the standard tolower function. 2919 * etags.c (lowcase): Use the standard tolower function.
2820 (substitute): Remove some wrong and some useless code related with 2920 (substitute): Remove some wrong and some useless code related with
2821 escape `\` character in regexp replacement string. 2921 escape '\' character in regexp replacement string.
2822 (TEX_defenv): Added part, appendix, entry, index. Removed typeout. 2922 (TEX_defenv): Added part, appendix, entry, index. Removed typeout.
2823 (lang_suffixes): New suffixes: .hpp for C++; .f90 for Fortran; 2923 (lang_suffixes): New suffixes: .hpp for C++; .f90 for Fortran;
2824 .bib, .ltx, .TeX for TeX (.bbl, .dtx removed); .ml for Lisp; 2924 .bib, .ltx, .TeX for TeX (.bbl, .dtx removed); .ml for Lisp;
@@ -3839,7 +3939,7 @@ Tue Jul 1 01:09:07 1997 Geoff Voelker <voelker@cs.washington.edu>
3839 3939
38401994-02-17 Francesco Potorti` (pot@cnuce.cnr.it) 39401994-02-17 Francesco Potorti` (pot@cnuce.cnr.it)
3841 3941
3842 * etags.c (--absolute-pathnames): option removed. 3942 * etags.c (--absolute-pathnames): Option removed.
3843 3943
38441994-02-16 Richard Stallman (rms@mole.gnu.ai.mit.edu) 39441994-02-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
3845 3945
@@ -4300,8 +4400,8 @@ Tue Jul 1 01:09:07 1997 Geoff Voelker <voelker@cs.washington.edu>
4300 4400
43011993-05-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu) 44011993-05-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
4302 4402
4303 * Makefile.in: (${archlibdir}): Use `(cd foo && pwd)` instead of 4403 * Makefile.in: (${archlibdir}): Use `(cd foo && pwd)' instead of
4304 `(cd foo ; pwd)` to get the canonical name of a directory; cd 4404 `(cd foo ; pwd)' to get the canonical name of a directory; cd
4305 might fail, and have pwd print out the current directory. 4405 might fail, and have pwd print out the current directory.
4306 4406
4307 * movemail.c [MAIL_USE_POP] (main): Don't use non-portable 4407 * movemail.c [MAIL_USE_POP] (main): Don't use non-portable
@@ -4986,7 +5086,7 @@ Tue Jul 1 01:09:07 1997 Geoff Voelker <voelker@cs.washington.edu>
4986 * etags.c (C_entries): Process token before handling end of line. 5086 * etags.c (C_entries): Process token before handling end of line.
4987 When inner loops reach end of line, just back up. 5087 When inner loops reach end of line, just back up.
4988 Let the real end of line processing happen in just one place. 5088 Let the real end of line processing happen in just one place.
4989 (consider_token): Likewise. 5089 (consider_token): Likewise.
4990 5090
49911991-04-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu) 50911991-04-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
4992 5092
@@ -5099,7 +5199,7 @@ Tue Jul 1 01:09:07 1997 Geoff Voelker <voelker@cs.washington.edu>
5099 5199
51001990-03-14 Joseph Arceneaux (jla@churchy.ai.mit.edu) 52001990-03-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
5101 5201
5102 * etags.c (getit): Recognize '$' as beginning identifiers. 5202 * etags.c (getit): Recognize '$' as beginning identifiers.
5103 5203
51041990-02-22 David Lawrence (tale@pogo.ai.mit.edu) 52041990-02-22 David Lawrence (tale@pogo.ai.mit.edu)
5105 5205
@@ -5430,7 +5530,10 @@ Tue Jul 1 01:09:07 1997 Geoff Voelker <voelker@cs.washington.edu>
5430;; coding: iso-2022-7bit 5530;; coding: iso-2022-7bit
5431;; End: 5531;; End:
5432 5532
5433 Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002 5533 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
5534 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004
5434 Free Software Foundation, Inc. 5535 Free Software Foundation, Inc.
5435 Copying and distribution of this file, with or without modification, 5536 Copying and distribution of this file, with or without modification,
5436 are permitted provided the copyright notice and this notice are preserved. 5537 are permitted provided the copyright notice and this notice are preserved.
5538
5539;;; arch-tag: 2d979296-954c-448e-95c1-b46d134513dc
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 1554b347113..7868364148a 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -27,7 +27,6 @@ SHELL = /bin/sh
27 27
28CC=@CC@ 28CC=@CC@
29CFLAGS=@CFLAGS@ 29CFLAGS=@CFLAGS@
30ALLOCA=@ALLOCA@
31version=@version@ 30version=@version@
32configuration=@configuration@ 31configuration=@configuration@
33EXEEXT=@EXEEXT@ 32EXEEXT=@EXEEXT@
@@ -145,12 +144,6 @@ MOVE_FLAGS=
145#define NOT_C_CODE 144#define NOT_C_CODE
146#include "../src/config.h" 145#include "../src/config.h"
147 146
148/* We won't really call alloca;
149 don't let the file name alloca.c get messed up. */
150#ifdef alloca
151#undef alloca
152#endif
153
154/* Some machines don\'t find the standard C libraries in the usual place. */ 147/* Some machines don\'t find the standard C libraries in the usual place. */
155#ifndef ORDINARY_LINK 148#ifndef ORDINARY_LINK
156#ifndef LIB_STANDARD_LIBSRC 149#ifndef LIB_STANDARD_LIBSRC
@@ -389,14 +382,12 @@ test-distrib${EXEEXT}: ${srcdir}/test-distrib.c
389 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c 382 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c
390 ./test-distrib ${srcdir}/testfile 383 ./test-distrib ${srcdir}/testfile
391 384
392GETOPTOBJS = getopt.o getopt1.o $(ALLOCA) 385GETOPTOBJS = getopt.o getopt1.o
393GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h 386GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
394getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h 387getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
395 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c 388 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c
396getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h 389getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
397 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c 390 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c
398alloca.o: ${srcdir}/alloca.c
399 ${CC} -Demacs -c ${BASE_CFLAGS} ${srcdir}/alloca.c
400 391
401#ifdef REGEXP_IN_LIBC 392#ifdef REGEXP_IN_LIBC
402REGEXPOBJ = 393REGEXPOBJ =
@@ -429,8 +420,8 @@ make-docfile${EXEEXT}: ${srcdir}/make-docfile.c ../src/config.h
429digest-doc${EXEEXT}: ${srcdir}/digest-doc.c 420digest-doc${EXEEXT}: ${srcdir}/digest-doc.c
430 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc 421 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
431 422
432sorted-doc${EXEEXT}: ${srcdir}/sorted-doc.c ${ALLOCA} 423sorted-doc${EXEEXT}: ${srcdir}/sorted-doc.c
433 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc 424 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c $(LOADLIBES) -o sorted-doc
434 425
435b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS) 426b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS)
436 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \ 427 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \
@@ -487,3 +478,6 @@ xveterm${EXEEXT}: ${srcdir}/emacstool.c
487 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \ 478 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \
488 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ 479 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
489 $(LOADLIBES) 480 $(LOADLIBES)
481
482/* arch-tag: cc40144d-fbd2-436b-9a22-dcb5b5b6a2af
483 (do not change this comment) */
diff --git a/lib-src/README b/lib-src/README
index fa3074e518b..4d29931a6e9 100644
--- a/lib-src/README
+++ b/lib-src/README
@@ -1,3 +1,3 @@
1This directory contains the source code for the architecture-dependent 1This directory contains the source code for the architecture-dependent
2files that go in ../arch-lib. At present, these are mostly utility 2files that go in ${archlibdir}. At present, these are mostly utility
3programs used by Emacs. 3programs used by Emacs.
diff --git a/lib-src/b2m.c b/lib-src/b2m.c
index 05caa1424e0..5a1f9e85473 100644
--- a/lib-src/b2m.c
+++ b/lib-src/b2m.c
@@ -301,3 +301,5 @@ fatal (message)
301 exit (BAD); 301 exit (BAD);
302} 302}
303 303
304/* arch-tag: 5a3ad2af-a802-408f-83cc-e7cf5e98653e
305 (do not change this comment) */
diff --git a/lib-src/b2m.pl b/lib-src/b2m.pl
index 86f9b948b32..38eb96e076f 100644
--- a/lib-src/b2m.pl
+++ b/lib-src/b2m.pl
@@ -30,7 +30,7 @@ use Mail::Address;
30use Date::Parse; 30use Date::Parse;
31 31
32my($whoami) = basename $0; 32my($whoami) = basename $0;
33my($version) = '$Revision: 1.4 $'; 33my($version) = '$Revision: 1.5 $';
34my($usage) = "Usage: $whoami [--help] [--version] [--[no]full-headers] [Babyl-file] 34my($usage) = "Usage: $whoami [--help] [--version] [--[no]full-headers] [Babyl-file]
35\tBy default, full headers are printed.\n"; 35\tBy default, full headers are printed.\n";
36 36
@@ -152,3 +152,5 @@ while (<>) {
152} 152}
153 153
154close(STDOUT) || die "$whoami: Error closing stdout: $!\n"; 154close(STDOUT) || die "$whoami: Error closing stdout: $!\n";
155
156# arch-tag: 8c7c8ab0-721c-46d7-ba3e-139801240aa8
diff --git a/lib-src/cvtmail.c b/lib-src/cvtmail.c
index 5a4d3c70952..28a4ae4c703 100644
--- a/lib-src/cvtmail.c
+++ b/lib-src/cvtmail.c
@@ -180,3 +180,6 @@ xrealloc (ptr, size)
180 fatal ("virtual memory exhausted", 0); 180 fatal ("virtual memory exhausted", 0);
181 return result; 181 return result;
182} 182}
183
184/* arch-tag: b93c25a9-9012-44f1-b78b-9cc7aed44a7a
185 (do not change this comment) */
diff --git a/lib-src/digest-doc.c b/lib-src/digest-doc.c
index 24d1348b0ee..09878543d44 100644
--- a/lib-src/digest-doc.c
+++ b/lib-src/digest-doc.c
@@ -65,3 +65,6 @@ main ()
65 } 65 }
66 return 0; 66 return 0;
67} 67}
68
69/* arch-tag: 2ba2c9b0-4157-4eba-bd9f-967e3677e35f
70 (do not change this comment) */
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index 611c0f74c7d..eeeb0eb3efd 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -3975,3 +3975,6 @@ main (argc, argv)
3975 3975
3976 3976
3977/* ebrowse.c ends here. */ 3977/* ebrowse.c ends here. */
3978
3979/* arch-tag: fc03b4bc-91a9-4c3d-b3b9-12a77fa86dd8
3980 (do not change this comment) */
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index fc85ba67448..c8b2596198f 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1,5 +1,5 @@
1/* Client process that communicates with GNU Emacs acting as server. 1/* Client process that communicates with GNU Emacs acting as server.
2 Copyright (C) 1986, 1987, 1994, 1999, 2000, 2001, 2003 2 Copyright (C) 1986, 1987, 1994, 1999, 2000, 2001, 2003, 2004
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -67,6 +67,9 @@ char *display = NULL;
67 is not running. --alternate-editor. */ 67 is not running. --alternate-editor. */
68const char * alternate_editor = NULL; 68const char * alternate_editor = NULL;
69 69
70/* If non-NULL, the filename of the UNIX socket. */
71char *socket_name = NULL;
72
70void print_help_and_exit (); 73void print_help_and_exit ();
71 74
72struct option longopts[] = 75struct option longopts[] =
@@ -76,6 +79,7 @@ struct option longopts[] =
76 { "help", no_argument, NULL, 'H' }, 79 { "help", no_argument, NULL, 'H' },
77 { "version", no_argument, NULL, 'V' }, 80 { "version", no_argument, NULL, 'V' },
78 { "alternate-editor", required_argument, NULL, 'a' }, 81 { "alternate-editor", required_argument, NULL, 'a' },
82 { "socket-name", required_argument, NULL, 's' },
79 { "display", required_argument, NULL, 'd' }, 83 { "display", required_argument, NULL, 'd' },
80 { 0, 0, 0, 0 } 84 { 0, 0, 0, 0 }
81}; 85};
@@ -88,16 +92,16 @@ decode_options (argc, argv)
88 int argc; 92 int argc;
89 char **argv; 93 char **argv;
90{ 94{
95 alternate_editor = getenv ("ALTERNATE_EDITOR");
96
91 while (1) 97 while (1)
92 { 98 {
93 int opt = getopt_long (argc, argv, 99 int opt = getopt_long (argc, argv,
94 "VHnea:d:", longopts, 0); 100 "VHnea:s:d:", longopts, 0);
95 101
96 if (opt == EOF) 102 if (opt == EOF)
97 break; 103 break;
98 104
99 alternate_editor = getenv ("ALTERNATE_EDITOR");
100
101 switch (opt) 105 switch (opt)
102 { 106 {
103 case 0: 107 case 0:
@@ -109,6 +113,10 @@ decode_options (argc, argv)
109 alternate_editor = optarg; 113 alternate_editor = optarg;
110 break; 114 break;
111 115
116 case 's':
117 socket_name = optarg;
118 break;
119
112 case 'd': 120 case 'd':
113 display = optarg; 121 display = optarg;
114 break; 122 break;
@@ -152,6 +160,8 @@ The following OPTIONS are accepted:\n\
152-n, --no-wait Don't wait for the server to return\n\ 160-n, --no-wait Don't wait for the server to return\n\
153-e, --eval Evaluate the FILE arguments as ELisp expressions\n\ 161-e, --eval Evaluate the FILE arguments as ELisp expressions\n\
154-d, --display=DISPLAY Visit the file in the given display\n\ 162-d, --display=DISPLAY Visit the file in the given display\n\
163-s, --socket-name=FILENAME\n\
164 Set the filename of the UNIX socket for communication\n\
155-a, --alternate-editor=EDITOR\n\ 165-a, --alternate-editor=EDITOR\n\
156 Editor to fallback to if the server is not running\n\ 166 Editor to fallback to if the server is not running\n\
157\n\ 167\n\
@@ -159,14 +169,14 @@ Report bugs to bug-gnu-emacs@gnu.org.\n", progname);
159 exit (0); 169 exit (0);
160} 170}
161 171
162/* Return a copy of NAME, inserting a & 172/* In NAME, insert a & before each &, each space, each newline, and
163 before each &, each space, each newline, and any initial -. 173 any initial -. Change spaces to underscores, too, so that the
164 Change spaces to underscores, too, so that the
165 return value never contains a space. */ 174 return value never contains a space. */
166 175
167char * 176void
168quote_file_name (name) 177quote_file_name (name, stream)
169 char *name; 178 char *name;
179 FILE *stream;
170{ 180{
171 char *copy = (char *) malloc (strlen (name) * 2 + 1); 181 char *copy = (char *) malloc (strlen (name) * 2 + 1);
172 char *p, *q; 182 char *p, *q;
@@ -196,7 +206,9 @@ quote_file_name (name)
196 } 206 }
197 *q++ = 0; 207 *q++ = 0;
198 208
199 return copy; 209 fprintf (stream, copy);
210
211 free (copy);
200} 212}
201 213
202/* Like malloc but get fatal error if memory is exhausted. */ 214/* Like malloc but get fatal error if memory is exhausted. */
@@ -287,8 +299,6 @@ main (argc, argv)
287 int argc; 299 int argc;
288 char **argv; 300 char **argv;
289{ 301{
290 char *system_name;
291 int system_name_length;
292 int s, i, needlf = 0; 302 int s, i, needlf = 0;
293 FILE *out, *in; 303 FILE *out, *in;
294 struct sockaddr_un server; 304 struct sockaddr_un server;
@@ -300,7 +310,7 @@ main (argc, argv)
300 /* Process options. */ 310 /* Process options. */
301 decode_options (argc, argv); 311 decode_options (argc, argv);
302 312
303 if (argc - optind < 1) 313 if ((argc - optind < 1) && !eval)
304 { 314 {
305 fprintf (stderr, "%s: file name or argument required\n", progname); 315 fprintf (stderr, "%s: file name or argument required\n", progname);
306 fprintf (stderr, "Try `%s --help' for more information\n", progname); 316 fprintf (stderr, "Try `%s --help' for more information\n", progname);
@@ -321,37 +331,38 @@ main (argc, argv)
321 server.sun_family = AF_UNIX; 331 server.sun_family = AF_UNIX;
322 332
323 { 333 {
324 char *dot; 334 int sock_status = 0;
325 system_name_length = 32; 335 int default_sock = !socket_name;
336 int saved_errno;
337 char *server_name = "server";
338
339 if (socket_name && !index (socket_name, '/') && !index (socket_name, '\\'))
340 { /* socket_name is a file name component. */
341 server_name = socket_name;
342 socket_name = NULL;
343 default_sock = 1; /* Try both UIDs. */
344 }
326 345
327 while (1) 346 if (default_sock)
328 { 347 {
329 system_name = (char *) xmalloc (system_name_length + 1); 348 socket_name = alloca (100 + strlen (server_name));
330 349 sprintf (socket_name, "/tmp/emacs%d/%s",
331 /* system_name must be null-terminated string. */ 350 (int) geteuid (), server_name);
332 system_name[system_name_length] = '\0';
333
334 if (gethostname (system_name, system_name_length) == 0)
335 break;
336
337 free (system_name);
338 system_name_length *= 2;
339 } 351 }
340 352
341 /* We always use the non-dotted host name, for simplicity. */ 353 if (strlen (socket_name) < sizeof (server.sun_path))
342 dot = index (system_name, '.'); 354 strcpy (server.sun_path, socket_name);
343 if (dot) 355 else
344 *dot = '\0'; 356 {
345 } 357 fprintf (stderr, "%s: socket-name %s too long",
346 358 argv[0], socket_name);
347 { 359 exit (1);
348 int sock_status = 0; 360 }
349
350 sprintf (server.sun_path, "/tmp/emacs%d-%s/server", (int) geteuid (), system_name);
351 361
352 /* See if the socket exists, and if it's owned by us. */ 362 /* See if the socket exists, and if it's owned by us. */
353 sock_status = socket_status (server.sun_path); 363 sock_status = socket_status (server.sun_path);
354 if (sock_status) 364 saved_errno = errno;
365 if (sock_status && default_sock)
355 { 366 {
356 /* Failing that, see if LOGNAME or USER exist and differ from 367 /* Failing that, see if LOGNAME or USER exist and differ from
357 our euid. If so, look for a socket based on the UID 368 our euid. If so, look for a socket based on the UID
@@ -359,19 +370,35 @@ main (argc, argv)
359 that init_editfns uses to set the global Vuser_full_name. */ 370 that init_editfns uses to set the global Vuser_full_name. */
360 371
361 char *user_name = (char *) getenv ("LOGNAME"); 372 char *user_name = (char *) getenv ("LOGNAME");
373
362 if (!user_name) 374 if (!user_name)
363 user_name = (char *) getenv ("USER"); 375 user_name = (char *) getenv ("USER");
364 376
365 if (user_name) 377 if (user_name)
366 { 378 {
367 struct passwd *pw = getpwnam (user_name); 379 struct passwd *pw = getpwnam (user_name);
380
368 if (pw && (pw->pw_uid != geteuid ())) 381 if (pw && (pw->pw_uid != geteuid ()))
369 { 382 {
370 /* We're running under su, apparently. */ 383 /* We're running under su, apparently. */
371 sprintf (server.sun_path, "/tmp/esrv%d-%s", 384 socket_name = alloca (100 + strlen (server_name));
372 (int) pw->pw_uid, system_name); 385 sprintf (socket_name, "/tmp/emacs%d/%s",
386 (int) pw->pw_uid, server_name);
387
388 if (strlen (socket_name) < sizeof (server.sun_path))
389 strcpy (server.sun_path, socket_name);
390 else
391 {
392 fprintf (stderr, "%s: socket-name %s too long",
393 argv[0], socket_name);
394 exit (1);
395 }
396
373 sock_status = socket_status (server.sun_path); 397 sock_status = socket_status (server.sun_path);
398 saved_errno = errno;
374 } 399 }
400 else
401 errno = saved_errno;
375 } 402 }
376 } 403 }
377 404
@@ -389,14 +416,14 @@ main (argc, argv)
389 416
390 case 2: 417 case 2:
391 /* `stat' failed */ 418 /* `stat' failed */
392 if (errno == ENOENT) 419 if (saved_errno == ENOENT)
393 fprintf (stderr, 420 fprintf (stderr,
394 "%s: can't find socket; have you started the server?\n\ 421 "%s: can't find socket; have you started the server?\n\
395To start the server in Emacs, type \"M-x server-start\".\n", 422To start the server in Emacs, type \"M-x server-start\".\n",
396 argv[0]); 423 argv[0]);
397 else 424 else
398 fprintf (stderr, "%s: can't stat %s: %s\n", 425 fprintf (stderr, "%s: can't stat %s: %s\n",
399 argv[0], server.sun_path, strerror (errno)); 426 argv[0], server.sun_path, strerror (saved_errno));
400 fail (argc, argv); 427 fail (argc, argv);
401 break; 428 break;
402 } 429 }
@@ -455,24 +482,47 @@ To start the server in Emacs, type \"M-x server-start\".\n",
455 fprintf (out, "-eval "); 482 fprintf (out, "-eval ");
456 483
457 if (display) 484 if (display)
458 fprintf (out, "-display %s ", quote_file_name (display)); 485 {
486 fprintf (out, "-display ");
487 quote_file_name (display, out);
488 fprintf (out, " ");
489 }
459 490
460 for (i = optind; i < argc; i++) 491 if ((argc - optind > 0))
461 { 492 {
462 if (eval) 493 for (i = optind; i < argc; i++)
463 ; /* Don't prepend any cwd or anything like that. */
464 else if (*argv[i] == '+')
465 { 494 {
466 char *p = argv[i] + 1; 495 if (eval)
467 while (isdigit ((unsigned char) *p) || *p == ':') p++; 496 ; /* Don't prepend any cwd or anything like that. */
468 if (*p != 0) 497 else if (*argv[i] == '+')
469 fprintf (out, "%s/", quote_file_name (cwd)); 498 {
499 char *p = argv[i] + 1;
500 while (isdigit ((unsigned char) *p) || *p == ':') p++;
501 if (*p != 0)
502 {
503 quote_file_name (cwd, out);
504 fprintf (out, "/");
505 }
506 }
507 else if (*argv[i] != '/')
508 {
509 quote_file_name (cwd, out);
510 fprintf (out, "/");
511 }
512
513 quote_file_name (argv[i], out);
514 fprintf (out, " ");
470 } 515 }
471 else if (*argv[i] != '/')
472 fprintf (out, "%s/", quote_file_name (cwd));
473
474 fprintf (out, "%s ", quote_file_name (argv[i]));
475 } 516 }
517 else
518 {
519 while ((str = fgets (string, BUFSIZ, stdin)))
520 {
521 quote_file_name (str, out);
522 }
523 fprintf (out, " ");
524 }
525
476 fprintf (out, "\n"); 526 fprintf (out, "\n");
477 fflush (out); 527 fflush (out);
478 528
@@ -519,3 +569,6 @@ strerror (errnum)
519} 569}
520 570
521#endif /* ! HAVE_STRERROR */ 571#endif /* ! HAVE_STRERROR */
572
573/* arch-tag: f39bb9c4-73eb-477e-896d-50832e2ca9a7
574 (do not change this comment) */
diff --git a/lib-src/emacstool.c b/lib-src/emacstool.c
index dcbc20feeed..f9185c21c08 100644
--- a/lib-src/emacstool.c
+++ b/lib-src/emacstool.c
@@ -498,3 +498,6 @@ int interpose_on_window (argc, argv)
498 (tty_view, input_event_filter_function, NOTIFY_SAFE); 498 (tty_view, input_event_filter_function, NOTIFY_SAFE);
499} 499}
500#endif XVIEW 500#endif XVIEW
501
502/* arch-tag: 7a2e7105-c059-418a-b3d9-5b5de96abb4e
503 (do not change this comment) */
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 9633cf37ad2..e9fab1be3ee 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -3116,7 +3116,7 @@ consider_token (str, len, c, c_extp, cblev, parlev, is_func_or_var)
3116 fvdef = vignore; 3116 fvdef = vignore;
3117 return FALSE; 3117 return FALSE;
3118 } 3118 }
3119 if (strneq (str+len-10, "::operator", 10)) 3119 if (len >= 10 && strneq (str+len-10, "::operator", 10))
3120 { 3120 {
3121 if (*c_extp & C_AUTO) /* automatic detection of C++ */ 3121 if (*c_extp & C_AUTO) /* automatic detection of C++ */
3122 *c_extp = (*c_extp | C_PLPL) & ~C_AUTO; 3122 *c_extp = (*c_extp | C_PLPL) & ~C_AUTO;
@@ -6785,3 +6785,6 @@ xrealloc (ptr, size)
6785 * c-font-lock-extra-types: ("FILE" "bool" "language" "linebuffer" "fdesc" "node" "regexp") 6785 * c-font-lock-extra-types: ("FILE" "bool" "language" "linebuffer" "fdesc" "node" "regexp")
6786 * End: 6786 * End:
6787 */ 6787 */
6788
6789/* arch-tag: 8a9b748d-390c-4922-99db-2eeefa921051
6790 (do not change this comment) */
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c
index a4ac44cf96a..944a728a28c 100644
--- a/lib-src/fakemail.c
+++ b/lib-src/fakemail.c
@@ -750,3 +750,6 @@ main (argc, argv)
750 750
751#endif /* not MSDOS */ 751#endif /* not MSDOS */
752#endif /* not BSD 4.2 (or newer) */ 752#endif /* not BSD 4.2 (or newer) */
753
754/* arch-tag: acb0afa6-315a-4c5b-b9e3-def5725c8783
755 (do not change this comment) */
diff --git a/lib-src/getopt.c b/lib-src/getopt.c
index c17aecaefd2..a4b0a65147d 100644
--- a/lib-src/getopt.c
+++ b/lib-src/getopt.c
@@ -1283,3 +1283,6 @@ main (argc, argv)
1283} 1283}
1284 1284
1285#endif /* TEST */ 1285#endif /* TEST */
1286
1287/* arch-tag: 0e6da124-7269-4785-a9de-094c263d20dc
1288 (do not change this comment) */
diff --git a/lib-src/getopt.h b/lib-src/getopt.h
index 4d6adeea0d6..0d4c40c52d0 100644
--- a/lib-src/getopt.h
+++ b/lib-src/getopt.h
@@ -178,3 +178,6 @@ extern int _getopt_internal ();
178#undef __need_getopt 178#undef __need_getopt
179 179
180#endif /* getopt.h */ 180#endif /* getopt.h */
181
182/* arch-tag: 9adb7828-e6a6-40cd-8512-0cdf1f20ddd4
183 (do not change this comment) */
diff --git a/lib-src/getopt1.c b/lib-src/getopt1.c
index 60baeb85283..f08cd72638a 100644
--- a/lib-src/getopt1.c
+++ b/lib-src/getopt1.c
@@ -194,3 +194,5 @@ main (argc, argv)
194 194
195#endif /* TEST */ 195#endif /* TEST */
196 196
197/* arch-tag: 28a5c558-b0c0-4bff-b5bc-e2e20291d4b6
198 (do not change this comment) */
diff --git a/lib-src/grep-changelog b/lib-src/grep-changelog
index 82a14efb383..38fce879c7a 100755
--- a/lib-src/grep-changelog
+++ b/lib-src/grep-changelog
@@ -1,6 +1,6 @@
1#! /usr/bin/perl 1#! /usr/bin/perl
2 2
3# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 3# Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
4# 4#
5# This file is part of GNU Emacs. 5# This file is part of GNU Emacs.
6# 6#
@@ -56,34 +56,36 @@ $result = 0 if $to_date && $to_date !~ /^\d\d\d\d-\d\d-\d\d$/;
56 56
57if ($result == 0 || $help) { 57if ($result == 0 || $help) {
58 print <<USAGE; 58 print <<USAGE;
59
59Usage: $0 [options] [CHANGELOG...] 60Usage: $0 [options] [CHANGELOG...]
60Print entries in ChangeLogs matching various criteria. Valid options
61are
62 61
63 --author=AUTHOR match entries whose author line matches 62Print entries in ChangeLogs matching various criteria.
63Valid options are:
64
65 --author=AUTHOR Match entries whose author line matches
64 regular expression AUTHOR 66 regular expression AUTHOR
65 --text=TEXT match entries whose text matches regular 67 --text=TEXT Match entries whose text matches regular
66 expression TEXT. 68 expression TEXT
67 --exclude=TEXT exclude entries matching TEXT. 69 --exclude=TEXT Exclude entries matching TEXT
68 --from-date=YYYY-MM-DD match entries not older than given date 70 --from-date=YYYY-MM-DD Match entries not older than given date
69 --to-date=YYYY-MM-DD match entries not younger than given date 71 --to-date=YYYY-MM-DD Match entries not younger than given date
70 --rcs-log format output suitable for RCS log entries. 72 --rcs-log Format output suitable for RCS log entries
71 --with-date print short date line in RCS log 73 --with-date Print short date line in RCS log
72 --reverse show entries in reverse (chronological) order 74 --reverse Show entries in reverse (chronological) order
73 --version print version info 75 --version Print version info
74 --help print this help 76 --help Print this help
75 77
76If no CHANGELOG is specified scan the files "ChangeLog" and 78If no CHANGELOG is specified scan the files "ChangeLog" and
77"ChangeLog.[9-1]" in the current directory. Old-style dates in ChangeLogs 79"ChangeLog.1+" in the current directory. Old-style dates in ChangeLogs
78are not recognized. 80are not recognized.
79USAGE 81USAGE
80 exit $help ? 0 : 1; 82 exit !$help;
81} 83}
82 84
83# Print version info and exit if `--version' was specified. 85# Print version info and exit if `--version' was specified.
84 86
85if ($version) { 87if ($version) {
86 print "0.1\n"; 88 print "0.2\n";
87 exit 0; 89 exit 0;
88} 90}
89 91
@@ -92,7 +94,7 @@ if ($version) {
92# options specified, i.e. it matches $author, and its date is in 94# options specified, i.e. it matches $author, and its date is in
93# the range $from_date <= date <= $to_date. 95# the range $from_date <= date <= $to_date.
94 96
95sub header_match_p ($) { 97sub header_match_p {
96 my $header = shift; 98 my $header = shift;
97 99
98 return 0 unless $header; 100 return 0 unless $header;
@@ -122,7 +124,7 @@ sub header_match_p ($) {
122# command line, i.e. it matches $regexp, and it doesn't match 124# command line, i.e. it matches $regexp, and it doesn't match
123# $exclude. 125# $exclude.
124 126
125sub entry_match_p ($) { 127sub entry_match_p {
126 my $entry = shift; 128 my $entry = shift;
127 129
128 return 0 unless $entry; 130 return 0 unless $entry;
@@ -143,7 +145,7 @@ sub entry_match_p ($) {
143# lines are not printed, and leading spaces and file names are removed 145# lines are not printed, and leading spaces and file names are removed
144# from ChangeLog entries. 146# from ChangeLog entries.
145 147
146sub print_log ($$) { 148sub print_log {
147 my ($header, $entry) = @_; 149 my ($header, $entry) = @_;
148 my $output = ''; 150 my $output = '';
149 151
@@ -172,7 +174,7 @@ sub print_log ($$) {
172 174
173# Scan LOG for matching entries, and print them to standard output. 175# Scan LOG for matching entries, and print them to standard output.
174 176
175sub parse_changelog ($) { 177sub parse_changelog {
176 my $log = shift; 178 my $log = shift;
177 my $entry = undef; 179 my $entry = undef;
178 my $header = undef; 180 my $header = undef;
@@ -219,8 +221,8 @@ sub parse_changelog ($) {
219 close IN; 221 close IN;
220 222
221 if ($reverse) { 223 if ($reverse) {
222 while (defined (my $entry = pop @entries)) { 224 for (my $entry = @entries; $entry; $entry--) {
223 print $entry; 225 print $entries[$entry-1];
224 } 226 }
225 } 227 }
226} 228}
@@ -230,9 +232,19 @@ sub parse_changelog ($) {
230 232
231# If files were specified on the command line, parse those files in the 233# If files were specified on the command line, parse those files in the
232# order supplied by the user; otherwise parse default files ChangeLog and 234# order supplied by the user; otherwise parse default files ChangeLog and
233# ChangeLog.9...ChangeLog.1 according to $reverse. 235# ChangeLog.1+ according to $reverse.
234unless (@ARGV > 0) { 236unless (@ARGV > 0) {
235 @ARGV = ("ChangeLog", map {"ChangeLog.$_"} reverse 1..9); 237 @ARGV = ("ChangeLog");
238
239 push @ARGV,
240 map {"ChangeLog.$_"}
241 sort {$b <=> $a}
242 map {/\.(\d+)$/; $1}
243 do {
244 opendir D, '.';
245 grep /^ChangeLog\.\d+$/, readdir D;
246 };
247
236 @ARGV = reverse @ARGV if $reverse; 248 @ARGV = reverse @ARGV if $reverse;
237} 249}
238 250
@@ -241,4 +253,5 @@ while (defined (my $log = shift @ARGV)) {
241} 253}
242 254
243 255
256# arch-tag: 9e4f6749-e053-4bb7-b3ad-11947318418e
244# grep-changelog ends here. 257# grep-changelog ends here.
diff --git a/lib-src/hexl.c b/lib-src/hexl.c
index cbab66a2a17..0cfb88445b3 100644
--- a/lib-src/hexl.c
+++ b/lib-src/hexl.c
@@ -279,3 +279,6 @@ usage ()
279 fprintf (stderr, "usage: %s [-de] [-iso]\n", progname); 279 fprintf (stderr, "usage: %s [-de] [-iso]\n", progname);
280 exit (1); 280 exit (1);
281} 281}
282
283/* arch-tag: 20e04fb7-926e-4e48-be86-64fe869ecdaa
284 (do not change this comment) */
diff --git a/lib-src/leditcfns.c b/lib-src/leditcfns.c
index b8a7a6bfe1f..239db1cd1fa 100644
--- a/lib-src/leditcfns.c
+++ b/lib-src/leditcfns.c
@@ -16,3 +16,6 @@ set_proc_str(ptr) char *ptr; {
16 else 16 else
17 printf("string too long for set-proc-str: %s\n", ptr); 17 printf("string too long for set-proc-str: %s\n", ptr);
18 } 18 }
19
20/* arch-tag: eb7ae804-0d6e-4077-ab42-7173821410c3
21 (do not change this comment) */
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index ed6dde3a0bf..ba73f5800a7 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -1,5 +1,5 @@
1/* Generate doc-string file for GNU Emacs from source files. 1/* Generate doc-string file for GNU Emacs from source files.
2 Copyright (C) 1985, 86, 92, 93, 94, 97, 1999, 2000, 2001 2 Copyright (C) 1985, 86, 92, 93, 94, 97, 1999, 2000, 01, 2004
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA. */
23 of GNU Emacs. .elc and .el and .c files are allowed. 23 of GNU Emacs. .elc and .el and .c files are allowed.
24 A .o file can also be specified; the .c file it was made from is used. 24 A .o file can also be specified; the .c file it was made from is used.
25 This helps the makefile pass the correct list of files. 25 This helps the makefile pass the correct list of files.
26 Option -d DIR means change to DIR before looking for files.
26 27
27 The results, which go to standard output or to a file 28 The results, which go to standard output or to a file
28 specified with -a or -o (-a to append, -o to start from nothing), 29 specified with -a or -o (-a to append, -o to start from nothing),
@@ -104,11 +105,11 @@ fatal (s1, s2)
104 105
105/* Like malloc but get fatal error if memory is exhausted. */ 106/* Like malloc but get fatal error if memory is exhausted. */
106 107
107long * 108void *
108xmalloc (size) 109xmalloc (size)
109 unsigned int size; 110 unsigned int size;
110{ 111{
111 long *result = (long *) malloc (size); 112 void *result = (void *) malloc (size);
112 if (result == NULL) 113 if (result == NULL)
113 fatal ("virtual memory exhausted", 0); 114 fatal ("virtual memory exhausted", 0);
114 return result; 115 return result;
@@ -174,10 +175,23 @@ main (argc, argv)
174 if (j == i) 175 if (j == i)
175 err_count += scan_file (argv[i]); 176 err_count += scan_file (argv[i]);
176 } 177 }
177#ifndef VMS 178 return (err_count > 0 ? EXIT_FAILURE : EXIT_SUCCESS);
178 exit (err_count > 0); 179}
179#endif /* VMS */ 180
180 return err_count > 0; 181/* Add a source file name boundary marker in the output file. */
182void
183put_filename (filename)
184 char *filename;
185{
186 char *tmp = filename;
187 int len;
188
189 while ((tmp = index (filename, '/')))
190 filename = tmp + 1;
191
192 putc (037, outfile);
193 putc ('S', outfile);
194 fprintf (outfile, "%s\n", filename);
181} 195}
182 196
183/* Read file FILENAME and output its doc strings to outfile. */ 197/* Read file FILENAME and output its doc strings to outfile. */
@@ -188,6 +202,8 @@ scan_file (filename)
188 char *filename; 202 char *filename;
189{ 203{
190 int len = strlen (filename); 204 int len = strlen (filename);
205
206 put_filename (filename);
191 if (len > 4 && !strcmp (filename + len - 4, ".elc")) 207 if (len > 4 && !strcmp (filename + len - 4, ".elc"))
192 return scan_lisp_file (filename, READ_BINARY); 208 return scan_lisp_file (filename, READ_BINARY);
193 else if (len > 3 && !strcmp (filename + len - 3, ".el")) 209 else if (len > 3 && !strcmp (filename + len - 3, ".el"))
@@ -1185,3 +1201,6 @@ scan_lisp_file (filename, mode)
1185 fclose (infile); 1201 fclose (infile);
1186 return 0; 1202 return 0;
1187} 1203}
1204
1205/* arch-tag: f7203aaf-991a-4238-acb5-601db56f2894
1206 (do not change this comment) */
diff --git a/lib-src/makefile.nt b/lib-src/makefile.nt
index d9553216337..29282eea45d 100644
--- a/lib-src/makefile.nt
+++ b/lib-src/makefile.nt
@@ -413,3 +413,5 @@ $(BLD)\timer.obj : \
413$(BLD)\yow.obj : \ 413$(BLD)\yow.obj : \
414 $(SRC)\yow.c \ 414 $(SRC)\yow.c \
415 $(EMACS_ROOT)\lib-src\..\src\paths.h 415 $(EMACS_ROOT)\lib-src\..\src\paths.h
416
417# arch-tag: 59e1b54b-4cc2-4086-bb0b-ecfad4b683e9
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index faab36e087b..20cf4727362 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -126,7 +126,7 @@ $(BLD)/ctags.$(O): ctags.c
126# 126#
127# From ..\src\makefile.nt. 127# From ..\src\makefile.nt.
128# 128#
129obj = abbrev.c alloc.c alloca.c buffer.c bytecode.c callint.c callproc.c casefiddle.c casetab.c category.c ccl.c charset.c cm.c cmds.c coding.c data.c dired.c dispnew.c doc.c doprnt.c editfns.c emacs.c eval.c fileio.c filelock.c filemode.c floatfns.c fns.c fontset.c frame.c gmalloc.c indent.c insdel.c intervals.c keyboard.c keymap.c lastfile.c lread.c macros.c marker.c minibuf.c print.c process.c ralloc.c regex.c region-cache.c scroll.c search.c sound.c strftime.c syntax.c sysdep.c term.c termcap.c textprop.c tparam.c undo.c unexw32.c vm-limit.c w32.c w32console.c w32fns.c w32heap.c w32inevt.c w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c window.c xdisp.c xfaces.c xfaces.c 129obj = abbrev.c alloc.c alloca.c buffer.c bytecode.c callint.c callproc.c casefiddle.c casetab.c category.c ccl.c charset.c cm.c cmds.c coding.c data.c dired.c dispnew.c doc.c doprnt.c editfns.c emacs.c eval.c fileio.c filelock.c filemode.c floatfns.c fns.c fontset.c frame.c fringe.c gmalloc.c indent.c insdel.c intervals.c keyboard.c keymap.c lastfile.c lread.c macros.c marker.c minibuf.c print.c process.c ralloc.c regex.c region-cache.c scroll.c search.c sound.c strftime.c syntax.c sysdep.c term.c termcap.c textprop.c tparam.c undo.c unexw32.c vm-limit.c w32.c w32console.c w32fns.c w32heap.c w32inevt.c w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c window.c xdisp.c xfaces.c xfaces.c
130# 130#
131# These are the lisp files that are loaded up in loadup.el 131# These are the lisp files that are loaded up in loadup.el
132# 132#
@@ -422,3 +422,5 @@ $(BLD)/timer.$(O) : \
422$(BLD)/yow.$(O) : \ 422$(BLD)/yow.$(O) : \
423 $(SRC)/yow.c \ 423 $(SRC)/yow.c \
424 $(EMACS_ROOT)/lib-src/../src/paths.h 424 $(EMACS_ROOT)/lib-src/../src/paths.h
425
426# arch-tag: c051bc02-a6de-474b-889a-27f7b2fbbcea
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 89714a07423..2d0cd9043fd 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -954,3 +954,6 @@ strerror (errnum)
954} 954}
955 955
956#endif /* ! HAVE_STRERROR */ 956#endif /* ! HAVE_STRERROR */
957
958/* arch-tag: 1c323112-41fe-4fe5-8de9-494de631f73f
959 (do not change this comment) */
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index 31bf758197d..261a6b41614 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -208,3 +208,6 @@ sys_chdir (const char * path)
208{ 208{
209 return _chdir (path); 209 return _chdir (path);
210} 210}
211
212/* arch-tag: 7b63fb83-70ee-4124-8822-54e53e5d0773
213 (do not change this comment) */
diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h
index e6bce58074e..523e3d6fd49 100644
--- a/lib-src/ntlib.h
+++ b/lib-src/ntlib.h
@@ -114,3 +114,6 @@ int fchown (int fd, int uid, int gid);
114#undef _WINSOCK_H 114#undef _WINSOCK_H
115 115
116/* end of ntlib.h */ 116/* end of ntlib.h */
117
118/* arch-tag: 93444f66-7b98-4aa5-a5cd-01444094af28
119 (do not change this comment) */
diff --git a/lib-src/pop.c b/lib-src/pop.c
index b51e82c82bf..adf80c544b6 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -1607,3 +1607,6 @@ find_crlf (in_string, len)
1607} 1607}
1608 1608
1609#endif /* MAIL_USE_POP */ 1609#endif /* MAIL_USE_POP */
1610
1611/* arch-tag: ceb37041-b7ad-49a8-a63d-286618b8367d
1612 (do not change this comment) */
diff --git a/lib-src/pop.h b/lib-src/pop.h
index cfd333ccafc..8954e1d5369 100644
--- a/lib-src/pop.h
+++ b/lib-src/pop.h
@@ -81,3 +81,6 @@ extern int pop_quit _ARGS((popserver server));
81extern void pop_close _ARGS((popserver)); 81extern void pop_close _ARGS((popserver));
82 82
83#undef _ARGS 83#undef _ARGS
84
85/* arch-tag: 76cc5f58-8e86-48fa-bc72-a7c6cb1c4f1c
86 (do not change this comment) */
diff --git a/lib-src/profile.c b/lib-src/profile.c
index 9c43c16e776..ec77936f74d 100644
--- a/lib-src/profile.c
+++ b/lib-src/profile.c
@@ -102,3 +102,6 @@ main ()
102 } 102 }
103 exit (1); 103 exit (1);
104} 104}
105
106/* arch-tag: 8db68f7e-2322-4944-a315-dba349bdbf39
107 (do not change this comment) */
diff --git a/lib-src/rcs-checkin b/lib-src/rcs-checkin
index 75616c3564e..365050e9584 100755
--- a/lib-src/rcs-checkin
+++ b/lib-src/rcs-checkin
@@ -115,3 +115,4 @@ $file"
115 ci -d -q -u $owner -m"entered into RCS" "$file" || exit 115 ci -d -q -u $owner -m"entered into RCS" "$file" || exit
116done 116done
117 117
118# arch-tag: 89c86949-ef04-4380-838b-bc1444dcb074
diff --git a/lib-src/rcs2log b/lib-src/rcs2log
index a304df9adbd..b7466b6c134 100755
--- a/lib-src/rcs2log
+++ b/lib-src/rcs2log
@@ -29,10 +29,10 @@ Options:
29 29
30Report bugs to <bug-gnu-emacs@gnu.org>.' 30Report bugs to <bug-gnu-emacs@gnu.org>.'
31 31
32Id='$Id: rcs2log,v 1.49 2001/11/28 23:55:08 eggert Exp eggert $' 32Id='$Id: rcs2log,v 1.52 2003/12/27 08:18:08 uid65632 Exp $'
33 33
34# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002 34# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003,
35# Free Software Foundation, Inc. 35# 2004 Free Software Foundation, Inc.
36 36
37# This program is free software; you can redistribute it and/or modify 37# This program is free software; you can redistribute it and/or modify
38# it under the terms of the GNU General Public License as published by 38# it under the terms of the GNU General Public License as published by
@@ -49,7 +49,7 @@ Id='$Id: rcs2log,v 1.49 2001/11/28 23:55:08 eggert Exp eggert $'
49# Free Software Foundation, Inc., 59 Temple Place - Suite 330, 49# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
50# Boston, MA 02111-1307, USA. 50# Boston, MA 02111-1307, USA.
51 51
52Copyright='Copyright (C) 2002 Free Software Foundation, Inc. 52Copyright='Copyright (C) 2004 Free Software Foundation, Inc.
53This program comes with NO WARRANTY, to the extent permitted by law. 53This program comes with NO WARRANTY, to the extent permitted by law.
54You may redistribute copies of this program 54You may redistribute copies of this program
55under the terms of the GNU General Public License. 55under the terms of the GNU General Public License.
@@ -195,8 +195,9 @@ case $rlogfile in
195 195
196 # If no rlog options are given, 196 # If no rlog options are given,
197 # log the revisions checked in since the first ChangeLog entry. 197 # log the revisions checked in since the first ChangeLog entry.
198 # Since ChangeLog is only by date, some of these revisions may be duplicates of 198 # Since ChangeLog is only by date, some of these revisions may be
199 # what's already in ChangeLog; it's the user's responsibility to remove them. 199 # duplicates of what's already in ChangeLog; it's the user's
200 # responsibility to remove them.
200 case $rlog_options in 201 case $rlog_options in
201 '') 202 '')
202 if test -s "$changelog" 203 if test -s "$changelog"
@@ -250,18 +251,24 @@ case $rlogfile in
250 rlog='cvs -q log' 251 rlog='cvs -q log'
251 repository=`sed 1q <CVS/Repository` || exit 252 repository=`sed 1q <CVS/Repository` || exit
252 test ! -f CVS/Root || CVSROOT=`cat <CVS/Root` || exit 253 test ! -f CVS/Root || CVSROOT=`cat <CVS/Root` || exit
254 pository=
253 case $CVSROOT in 255 case $CVSROOT in
254 *:/*:/*) 256 /* | :fork:* | :local:*) ;;
255 echo >&2 "$0: $CVSROOT: CVSROOT has multiple ':/'s" 257 */*)
256 exit 1;;
257 *:/*)
258 # remote repository 258 # remote repository
259 pository=`expr "X$repository" : '.*:\(/.*\)'`;; 259 pository=`expr "X$CVSROOT" : '[^/]*\(.*\)'`;;
260 *) 260 esac
261 case $pository in
262 '')
261 # local repository 263 # local repository
262 case $repository in 264 case $repository in
263 /*) ;; 265 /*) ;;
264 *) repository=${CVSROOT?}/$repository;; 266 *)
267 repository=${CVSROOT?}/$repository
268 case $repository in
269 :fork:* | :local:*)
270 repository=`expr "$repository" : ':[^:]*:\(.*\)'`;;
271 esac;;
265 esac 272 esac
266 if test ! -d "$repository" 273 if test ! -d "$repository"
267 then 274 then
@@ -281,6 +288,21 @@ case $rlogfile in
281 esac 288 esac
282 done 289 done
283 290
291 # If no rlog options are given, and if we are in a tagged CVS branch,
292 # log only the changes in that branch.
293 case $rlog_options in
294 '')
295 if test -f CVS/Tag
296 then
297 CVSTAG=`cat <CVS/Tag` || exit
298 case $CVSTAG in
299 T?*)
300 rlog_options=-r`expr "$CVSTAG" : 'T\(.*\)'`;;
301 *)
302 echo >&2 "$0: invalid CVS/Tag"; exit 1;;
303 esac
304 fi;;
305 esac
284 fi 306 fi
285 307
286 # Use $rlog's -zLT option, if $rlog supports it. 308 # Use $rlog's -zLT option, if $rlog supports it.
@@ -729,3 +751,5 @@ exec rm -fr $logdir
729# Local Variables: 751# Local Variables:
730# tab-width:4 752# tab-width:4
731# End: 753# End:
754
755# arch-tag: cea067bd-a552-4254-ba17-078208933073
diff --git a/lib-src/sorted-doc.c b/lib-src/sorted-doc.c
index 185295a9294..05a3e69cc92 100644
--- a/lib-src/sorted-doc.c
+++ b/lib-src/sorted-doc.c
@@ -281,3 +281,6 @@ main ()
281 281
282 return 0; 282 return 0;
283} 283}
284
285/* arch-tag: ce28f204-1e70-4b34-8210-3d54a5662071
286 (do not change this comment) */
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c
index 973d1104393..f7b3a8b8004 100644
--- a/lib-src/test-distrib.c
+++ b/lib-src/test-distrib.c
@@ -105,3 +105,6 @@ have been corrupted in the files of Emacs, and it will not work.\n",
105#endif 105#endif
106 return (0); 106 return (0);
107} 107}
108
109/* arch-tag: 3a89005d-df98-4c32-aa9f-33570e16a26a
110 (do not change this comment) */
diff --git a/lib-src/update-game-score.c b/lib-src/update-game-score.c
index af691d394a6..74fa2b06920 100644
--- a/lib-src/update-game-score.c
+++ b/lib-src/update-game-score.c
@@ -528,3 +528,6 @@ unlock_file (filename, state)
528 errno = saved_errno; 528 errno = saved_errno;
529 return ret; 529 return ret;
530} 530}
531
532/* arch-tag: 2bf5c52e-4beb-463a-954e-c58b9c64736b
533 (do not change this comment) */
diff --git a/lib-src/vcdiff b/lib-src/vcdiff
index 5fdc345eb98..9c513ac8200 100755
--- a/lib-src/vcdiff
+++ b/lib-src/vcdiff
@@ -3,7 +3,7 @@
3# Enhanced sccs diff utility for use with vc mode. 3# Enhanced sccs diff utility for use with vc mode.
4# This version is more compatible with rcsdiff(1). 4# This version is more compatible with rcsdiff(1).
5# 5#
6# Copyright (C) 1992, 1993, 1995, 1997, 2001 6# Copyright (C) 1992, 1993, 1995, 1997, 2001, 2004
7# Free Software Foundation, Inc. 7# Free Software Foundation, Inc.
8# 8#
9# This file is part of GNU Emacs. 9# This file is part of GNU Emacs.
@@ -23,8 +23,6 @@
23# Free Software Foundation, Inc., 59 Temple Place - Suite 330, 23# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24# Boston, MA 02111-1307, USA. 24# Boston, MA 02111-1307, USA.
25# 25#
26# $Id: vcdiff,v 1.6 1997/01/01 05:33:42 eggert Exp $
27#
28 26
29DIFF="diff" 27DIFF="diff"
30usage="$0: Usage: vcdiff [--brief] [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..." 28usage="$0: Usage: vcdiff [--brief] [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..."
@@ -111,3 +109,5 @@ do
111 then status=$s 109 then status=$s
112 fi 110 fi
113done 111done
112
113# arch-tag: 4344ba3a-bcbe-4f77-971c-f43c1606953a
diff --git a/lib-src/yow.c b/lib-src/yow.c
index 02bcc6642eb..10f0fad1ce7 100644
--- a/lib-src/yow.c
+++ b/lib-src/yow.c
@@ -178,3 +178,5 @@ yow (fp)
178 printf("%s\n", buf); 178 printf("%s\n", buf);
179} 179}
180 180
181/* arch-tag: e40fc0df-bafb-4001-af24-5c883d1c685e
182 (do not change this comment) */