Merge from emacs-24; up to 2014-04-17T02:05:48Z!eggert@cs.ucla.edu
[bpt/emacs.git] / lib-src / ChangeLog
CommitLineData
bf6b4923
EZ
12014-04-16 Eli Zaretskii <eliz@gnu.org>
2
3 * update-game-score.c (write_scores): Condition fchmod call on
4 DOS_NT, not WINDOWSNT.
5
7cd43111
GM
62014-03-22 Glenn Morris <rgm@gnu.org>
7
10211d43
GM
8 * Makefile.in (etags_deps, etags_args): New, to reduce duplication.
9 (etags${EXEEXT}, ctags${EXEEXT}): Use etags_deps, etags_args.
10
df199e56
GM
11 * Makefile.in (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
12 (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
13 (emacsclient${EXEEXT}, emacsclientw${EXEEXT}, hexl${EXEEXT})
14 (update-game-score${EXEEXT}, emacsclient.res): Use $@.
15
01b0f2f4
GM
16 * Makefile.in (../lib/libgnu.a): Explicitly pass MFLAGS.
17
7cd43111
GM
18 * Makefile.in (DONT_INSTALL): Remove test-distrib.
19 (test-distrib${EXEEXT}): Remove rule.
20
21 * test-distrib.c, testfile: Remove.
22
f11352e6
JB
232014-03-10 Juanma Barranquero <lekktu@gmail.com>
24
25 * emacsclient.c (main): #ifdef out previous change on Windows.
26
d050de75
PE
272014-03-09 Paul Eggert <eggert@cs.ucla.edu>
28
29 Fix emacsclient terminal corruption when in background (Bug#16892).
30 * emacsclient.c (handle_sigcont): Check for tcgetpgrp failure.
31 Cancel the continue only if tty. Send SIGTTIN to the process
32 group, not SIGSTOP to self, as this is what the glibc manual
33 recommends.
34 (main): If tty, and if started in the background, send SIGTTIN
35 to the process group.
36
591debed 372014-02-25 Andreas Amann <a.amann@ucc.ie> (tiny change)
35e951cd 38
591debed
PE
39 Fix emacsclient's handling of SIGCONT (Bug#16883).
40 * emacsclient.c (handle_sigcont): Cancel the continue only if tty.
41
7a49c9d6
EZ
422014-01-22 Eli Zaretskii <eliz@gnu.org>
43
44 * update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
45 instead of fchmod.
46
dc217d01
PE
472014-01-22 Paul Eggert <eggert@cs.ucla.edu>
48
49 Fix miscellaneous update-game-score bugs.
50 * update-game-score.c (difftime) [!HAVE_DIFFTIME]: Remove.
6c9cbdf0
PE
51 (read_score) [HAVE_GETDELIM]: Don't access uninitialized storage,
52 as that leads to undefined behavior, which is a bad thing
53 particularly in a setuid program.
54 (read_scores, write_scores): Check for fclose failure; on some
55 systems, I/O errors are not reported by primitives like getc and
56 putc, but instead are delayed until fclose, so fclose failures
57 should be diagnosed like other read and write errors.
dc217d01 58 (write_scores): Use fchmod, not chmod, to avoid a race.
6c9cbdf0
PE
59 Otherwise, if the lock is broken by some other process,
60 update-game-score might try to change the permission on someone
61 else's file or on a nonexistent file, and incorrectly report an
62 error when this fails.
dc217d01 63 (lock_file): Fix test for out-of-date lock file; it was reversed.
6c9cbdf0
PE
64 That is, it incorrectly broke locks when they were more than an
65 hour into the future, instead of when they were more than an hour
66 in the past. Use ordinary subtraction rather than difftime; since
67 we're already assuming POSIX we don't need to worry about the
68 possibility of time_t being a magic cookie, and since timestamps
69 are positive we don't need to worry about integer overflow when
70 subtracting them. Put two spaces, not just one, after a sentence
71 end in a comment.
dc217d01 72
d70efef4
PE
732014-01-19 Paul Eggert <eggert@cs.ucla.edu>
74
75 update-game-score fixes for -m and integer overflow (Bug#16428)
76 * update-game-score.c: Include inttypes.h, stdbool.h.
77 (min): New macro, if not already defined.
78 (MAX_SCORES, main): Limit the maximum number of scores only from
79 limits imposed by the underyling platform, instead of the
80 arbitrary value 200.
81 (struct score_entry, main, read_score, write_score):
82 Scores are now intmax_t, not long.
83 (get_user_id): Reject user names containing spaces or newlines,
84 as they would mess up the score file.
85 Allow uids that don't fit in 'long'.
86 Increase the size of the buffer, to avoid overrun in weird cases.
87 (get_prefix, main): Use bool for boolean.
88 (main): Rewrite expr to avoid possibility of signed integer
89 overflow. Don't allow newlines in data, as this would mess up
90 the score file. Check for memory allocation failure when adding
91 the new score, or when unlockint the file. Implement -m.
92 (read_score): Check for integer overflow when reading a score.
93 (read_score) [!HAVE_GETDELIM]: Check for integer overflow when
94 data gets very long. Check only for space to delimit names,
95 since that's what's done in the HAVE_GETDELIM case.
96 (read_scores): New parameter ALLOC. Change counts to ptrdiff_t.
97 All uses changed. Use push_score to add individual scores;
98 that's simpler than repeating its contents.
99 (score_compare_reverse): Simplify.
100 (push_score): New parameter SIZE. Change counts to ptrdiff_t.
101 All uses changed. Check for integer overflow of size calculation.
102 (sort_scores, write_scores): Change counts to ptrdiff_t.
103 (unlock_file): Preserve errno on success, so that storage
104 exhaustion is diagnosed correctly.
105
da5ecfa9
PE
1062014-01-05 Paul Eggert <eggert@cs.ucla.edu>
107
108 Spelling fixes.
109 * Makefile.in (regex.o): Remove reference to no-longer-used macros
110 CONFIG_BROKETS and INHIBIT_STRING_HEADER. "BROKETS" was a
111 misspelling anyway....
112
96c06863
PE
1132013-12-14 Paul Eggert <eggert@cs.ucla.edu>
114
115 Use bool for boolean, focusing on headers.
116 * emacsclient.c, etags.c, hexl.c (FALSE, TRUE):
117 Remove. All uses replaced with uncapitalized version.
118 * emacsclient.c (message):
119 * etags.c (make_tag, pfnote, consider_token, make_C_tag, lang_names):
120 * hexl.c (un_flag, iso_flag, endian):
121 * pop.c (pop_debug, pop_open, pop_multi_first, pop_multi_next)
122 (pop_trash):
123 Use bool for boolean.
124 * etags.c (bool): Remove.
125 * etags.c (globals, members, declarations, no_line_directive)
126 (no_duplicates): Use 'int' for boolean values that getopt requires
127 to be 'int'. Formerly, these were 'bool' and 'bool' was 'int',
128 but we can no longer rely on this implementation.
129 * pop.h (struct _popserver): Use bool_bf for boolean bit-fields.
130
d672ac3c
PE
1312013-11-14 Paul Eggert <eggert@cs.ucla.edu>
132
133 * ebrowse.c (xstrdup):
134 * etags.c (savenstr): Prefer tail calls.
135 * etags.c (concat): Omit unnecessary assignment.
136
eb9a3661
GM
1372013-10-24 Glenn Morris <rgm@gnu.org>
138
357a5081
GM
139 * Makefile.in ($(DESTDIR)${archlibdir}):
140 Avoid non-portable "`\" nesting.
141
eb9a3661
GM
142 * Makefile.in (abs_top_srcdir): New, set by configure.
143
b8e3b0a9
GM
1442013-10-23 Glenn Morris <rgm@gnu.org>
145
48f73cfb
GM
146 * Makefile.in ($(DESTDIR)${archlibdir}, need-blessmail, install)
147 (uninstall): Quote entities that might contain whitespace.
b8e3b0a9 148
4b5a548d
GM
1492013-10-10 Glenn Morris <rgm@gnu.org>
150
151 * make-docfile.c (search_lisp_doc_at_eol):
152 Use int rather than char with getc. (Bug#15481)
153
00382e8b
PE
1542013-09-20 Paul Eggert <eggert@cs.ucla.edu>
155
156 A simpler, centralized INLINE.
157 * profile.c (INLINE): New macro.
158 (SYSTIME_INLINE): Remove.
159
50b13cde
PE
1602013-08-28 Paul Eggert <eggert@cs.ucla.edu>
161
162 * Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
163 for portability to hosts where /bin/sh has problems.
164
d4166523
EZ
1652013-08-10 Eli Zaretskii <eliz@gnu.org>
166
167 * update-game-score.exe.manifest: New file.
168
169 * Makefile.in (UPDATE_MANIFEST): New variable.
170 (SCRIPTS): Add $(UPDATE_MANIFEST).
171
dc6c0eda
SM
1722013-08-05 Stefan Monnier <monnier@iro.umontreal.ca>
173
174 * makefile.w32-in (lisp2): Add nadvice.elc.
175
98a428c1
EZ
1762013-08-05 Eli Zaretskii <eliz@gnu.org>
177
178 * update-game-score.c (read_score): Try reading a character before
179 probing the stream for EOF. Initialize score->score to zero,
180 before reading and accumulating the score.
181 (read_scores): Fix logic that determines which value to return.
182 Close the input stream when finished reading the scores (avoids
183 failures in overwriting the file with a new one on MS-Windows,
184 since a file that is open cannot be deleted).
185
186 * ntlib.h (rename): Don't undefine.
187
188 * ntlib.c (sys_rename): New function, needed for
189 update-game-score.
190
e443729d
EZ
1912013-08-04 Eli Zaretskii <eliz@gnu.org>
192
193 * ntlib.h: Include fcntl.h.
194 (mkostemp): Declare prototype.
195 (mktemp): Don't redefine.
196
197 * ntlib.c (mkostemp): New function. (Bug#15015)
198
e0fdb694
PE
1992013-08-04 Paul Eggert <eggert@cs.ucla.edu>
200
201 Fix some minor races in hosts lacking mkostemp (Bug#15015).
202 * movemail.c (main):
203 * update-game-score.c (write_scores):
204 Use mkostemp (which now works on all platforms, due to changes
205 in the portability layer) rather than mktemp (which has a race)
206 or mkstemp (which we no longer bother with).
207
29abe551
PE
2082013-07-10 Paul Eggert <eggert@cs.ucla.edu>
209
210 Port to C89.
211 * ebrowse.c (USAGE): Remove macro with too-long string literal ...
212 (usage_message): ... and replace it with this new static constant
213 containing multiple literals. All uses changed.
214 * emacsclient.c (print_help_and_exit):
215 Rewrite to avoid string literals longer than the C89 limits.
216 (start_daemon_and_retry_set_socket):
217 Rewrite to avoid non-constant array initializer.
218 * make-docfile.c (enum global_type): Omit trailing comma.
219
37afa042 2202013-07-02 Paul Eggert <eggert@cs.ucla.edu>
fbe9e0b9 221
164b1ba3
PE
222 Prefer plain 'static' to 'static inline' (Bug#12541).
223 I missed these instances of 'static inline' in an earlier sweep.
224 * ebrowse.c (putstr):
225 * etags.c (hash):
226 * make-docfile.c (put_char): No longer inline.
227 * etags.c (hash): Prefer int to unsigned when either will do.
228
37afa042
PE
2292013-06-21 Paul Eggert <eggert@cs.ucla.edu>
230
fbe9e0b9 231 Use C99-style flexible array members if available.
b33a2a6f
PE
232 * ebrowse.c: Include <stddef.h>, for offsetof.
233 (struct member, struct alias, struct sym):
fbe9e0b9
PE
234 Use FLEXIBLE_ARRAY_MEMBER.
235 (add_sym, add_member, make_namespace, register_namespace_alias):
236 Use offsetof (struct, flex_array_member), not sizeof (struct), as
237 that ports better to pre-C99 non-GCC.
238
38b787fa
EZ
2392013-05-29 Eli Zaretskii <eliz@gnu.org>
240
241 * Makefile.in (mostlyclean): Remove *.res files.
242
31ff141c
PE
2432013-05-18 Paul Eggert <eggert@cs.ucla.edu>
244
245 Port --enable-gcc-warnings to clang.
246 * etags.c: Omit unnecessary forward decls.
247 (print_version, print_help): Declare _Noreturn.
248 * pop.c (socket_connection) [HAVE_GETADDRINFO]: Simplify.
249
df065a0b
EZ
2502013-05-16 Eli Zaretskii <eliz@gnu.org>
251
252 * update-game-score.c [WINDOWSNT]: Include "ntlib.h".
253
254 * ntlib.h (sleep): Update prototype.
255 (geteuid): Add prototype.
256
257 * ntlib.c (sleep): Now returns an unsigned value.
258 (getgid): New function.
259
260 * Makefile.in (CLIENTW, LIB_WSOCK32, LIBS_ECLIENT, NTLIB)
261 (CLIENTRES, WINDRES, NTINC, NTDEPS): New variables.
262 (INSTALLABLES): Add $(CLIENTW).
263 (LIBS_MOVE): Use $(LIB_WSOCK32).
264 ($(DESTDIR)${archlibdir}): Use $(EXEEXT) on update-game-score.
265 (test-distrib${EXEEXT}): Use $(EXEEXT) on test-distrib.
266 (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
267 (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
268 (emacsclient${EXEEXT}, hexl${EXEEXT}, update-game-score${EXEEXT}):
269 Add $(NTLIB) to prerequisites. Use $(EXEEXT).
270 (pop.o): Add pop.h to prerequisites.
271 (emacsclientw${EXEEXT}, ntlib.o): New targets.
272 (emacsclient.res): New target.
273
6e911150
SM
2742013-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
275
276 * makefile.w32-in ($(DOC)): Use DOC rather than DOC-X.
277
8c13f3d6
PE
2782013-05-06 Paul Eggert <eggert@cs.ucla.edu>
279
280 * make-docfile.c (search_lisp_doc_at_eol) [DEBUG]: Fix typo,
281 by removing references to no-longer-existing locals.
282
b88b62de
EZ
2832013-03-26 Eli Zaretskii <eliz@gnu.org>
284
285 Fix incompatibilities between MinGW.org and MinGW64 headers.
286 * ntlib.c (struct timespec) [!_TIMEZONE_DEFINED]: Define the
287 struct only if _TIMEZONE_DEFINED is not defined.
288
d7158313 2892013-03-23 cg <chengang31@gmail.com> (tiny change)
290
291 * makefile.w32-in (LIB_SRC): Move before first use.
292
78be8b64 2932013-03-16 Paul Eggert <eggert@cs.ucla.edu>
b2e37dad
PE
294
295 * pop.c: Fix ERRMAX typo (Bug#13925).
296 (socket_connection) [!HAVE_KRB5_ERROR_TEXT && HAVE_KRB5_ERROR_E_TEXT]:
297 Use ERROR_MAX, not ERRMAX.
298
f58afc72
PE
2992013-03-13 Paul Eggert <eggert@cs.ucla.edu>
300
47d7532e
PE
301 File synchronization fixes (Bug#13944).
302 * Makefile.in (LIB_FDATASYNC): New macro.
303 (emacsclient${EXEEXT}): Use it.
304 * emacsclient.c (main): Use fdatasync, not fsync, since we don't
305 care about metadata. Keep trying if interrupted.
306 * movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since
78be8b64
SM
307 fsync is available everywhere (or there is a substitute).
308 Don't report an error if fsync returns EINVAL.
47d7532e 309
d9df6f40
PE
310 Static checking by Sun C 5.12.
311 * etags.c (analyse_regex): Omit unreachable code.
312
f58afc72
PE
313 * movemail.c (main): Call umask on all systems.
314 This is OK since Emacs already assumes umask elsewhere.
9e3edd30
PE
315 Don't grant more read permissions than necessary.
316 The old 0333 dates back to before we called setuid,
317 so it was needed back then to ensure user-readability,
318 but 0377 should suffice now.
f58afc72 319
e70e5000
PE
3202013-02-08 Paul Eggert <eggert@cs.ucla.edu>
321
322 * movemail.c (getenv): Remove decl (unused since 1994).
323
1a353a14
PE
3242013-01-15 Paul Eggert <eggert@cs.ucla.edu>
325
326 * make-docfile.c (write_globals): Make it a bit clearer (Bug#13448).
327 This pacifies GCC 4.7.2 when Emacs is configured with
328 --enable-link-time-optimization and --enable-gcc-warnings.
329
a19e68ea
JB
3302013-01-01 Juanma Barranquero <lekktu@gmail.com>
331
332 * makefile.w32-in (lisp1): Add macroexp.elc (bug#13320).
333
0eeb69fe
JB
3342012-12-11 Juanma Barranquero <lekktu@gmail.com>
335
336 * makefile.w32-in (SYSWAIT_H): Update dependencies.
337
2b8c9064
EZ
3382012-12-10 Eli Zaretskii <eliz@gnu.org>
339
340 * makefile.w32-in (obj): Add w32notify.o. Add missing X and Unix
341 sources.
342
1cbaa705
KR
3432012-12-02 Kevin Ryde <user42@zip.com.au>
344
345 * etags.c (Lisp_functions): Skip (defvar foo) declarations unless
346 the --declarations flag is enabled (Bug#5600).
347 (Lisp_help): Update.
348 (skip_name): New function.
349
00054d21
KR
3502012-12-01 Kevin Ryde <user42@zip.com.au>
351
352 * etags.c (Perl_functions): Support "use constant" (Bug#5055).
353
22626a85
PE
3542012-11-27 Paul Eggert <eggert@cs.ucla.edu>
355
356 Assume POSIX 1003.1-1988 or later for errno.h (Bug#12968).
357 * movemail.c (main): Assume EAGAIN and EBUSY.
358
e6bac876
PE
3592012-11-23 Paul Eggert <eggert@cs.ucla.edu>
360
361 movemail: treat EACCES etc. failures as permanent
362 * movemail.c (main): Treat any link failure other than EEXIST as a
363 permanent failure, not just EPERM. EACCES, for example.
364
9239d970
PE
3652012-11-21 Paul Eggert <eggert@cs.ucla.edu>
366
367 Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945).
368 * emacsclient.c (getcwd): Remove decl.
369 (get_current_dir_name): Assume getcwd exists.
370 * etags.c (HAVE_GETCWD): Remove.
371 (getcwd): Remove decl.
372 (NO_LONG_OPTIONS): Remove this. All uses removed.
373 Emacs always has GNU getopt.
374 (etags_getcwd): Assume getcwd exists.
375 * movemail.c (F_OK, X_OK, W_OK, R_OK): Remove.
376
a7db35b3
PE
3772012-11-20 Paul Eggert <eggert@cs.ucla.edu>
378
379 * emacsclient.c (handle_sigcont, handle_sigtstp): Use raise (sig)
380 rather than kill (getpid (), sig), as it's simpler and safer.
381
a75ce9d3
JB
3822012-11-17 Juanma Barranquero <lekktu@gmail.com>
383
384 * makefile.w32-in (SYSWAIT_H): New macro.
385 ($(BLD)/movemail.$(O)): Update dependencies.
386
49cdacda
PE
3872012-11-17 Paul Eggert <eggert@cs.ucla.edu>
388
389 Assume POSIX 1003.1-1988 or later for fcntl.h (Bug#12881).
390 * movemail.c, update-game-score.c: Assume <fcntl.h> exists.
391
eeced60b
GM
3922012-10-26 Glenn Morris <rgm@gnu.org>
393
b75897ba
GM
394 * Makefile.in (uninstall): No INSTALLABLES live in archlibdir.
395
eeced60b
GM
396 * Makefile.in (install, uninstall): Transformations should not be
397 applied to $EXEEXT.
398
4c77e620
EZ
3992012-10-23 Eli Zaretskii <eliz@gnu.org>
400
401 * makefile.w32-in (lisp2): Add cp51932.el and eucjp-ms.el, to
402 follow src/lisp.mk.
403
ee7a418d
GM
4042012-10-21 Glenn Morris <rgm@gnu.org>
405
406 * make-docfile.c (scan_lisp_file): Add cp51932.el and eucjp-ms.el.
407
2068905b
EZ
4082012-10-20 Eli Zaretskii <eliz@gnu.org>
409
83c85d8e
EZ
410 * make-docfile.c (IS_SLASH, DEF_ELISP_FILE): New macros.
411 (scan_lisp_file): Only pass a .el file if its basename matches a
412 known file in its entirety. Use IS_SLASH and DEF_ELISP_FILE.
413
cab4f71e
AS
4142012-10-20 Andreas Schwab <schwab@linux-m68k.org>
415
416 * make-docfile.c (scan_lisp_file): Add bounds checking.
417
2068905b
EZ
4182012-10-20 Eli Zaretskii <eliz@gnu.org>
419
71aa63da 420 Prevent silent omission of doc strings from uncompiled Lisp files.
2068905b
EZ
421 * make-docfile.c (scan_lisp_file): Barf if called with a .el file
422 other than one of a small list of supported un-compiled files.
423
424 * makefile.w32-in (lisp1, lisp2): Name .elc files wherever they
425 exist. (Bug#12395)
426
27067208
EZ
4272012-10-17 Eli Zaretskii <eliz@gnu.org>
428
429 * ntlib.c: Include <mbstring.h>, to avoid compiler warning about
430 _mbspbrk.
431
c54ebba4
EZ
4322012-10-08 Eli Zaretskii <eliz@gnu.org>
433
434 * makefile.w32-in (obj): Add cygw32.o.
435
e08348a0
DC
4362012-10-08 Daniel Colascione <dancol@dancol.org>
437
438 * emacsclient.c: Include windows.h when HAVE_NTGUI.
439 (alt_display): New variable. We send the display held by this
440 variable when the primary display is either unsupported or not
441 present.
442 (longopts): Allow display everywhere.
443 (w32_set_user_model_id): Move lower in file, inside HAVE_NTGUI
444 section.
445 (decode_options): Use alt_display. Explain why.
446 (main): Retry connection with alt_display if connection with main
447 display fails.
448
3d3bfa24
FP
4492012-10-01 Fabrice Popineau <fabrice.popineau@gmail.com>
450
451 * make-docfile.c (write_globals): Special-case
452 Fexit_recursive_edit and Fabort_recursive_edit as well, as
453 functions that are _Noreturn, to be consistent with
454 src/keyboard.c.
455
62aba0d4
FP
4562012-09-30 Eli Zaretskii <eliz@gnu.org>
457
458 * ntlib.c (gettimeofday): Copy from src/w32.c. lib/gettime.c
459 needs this function.
460
6a586b7f
JB
4612012-09-26 Juanma Barranquero <lekktu@gmail.com>
462
463 * makefile.w32-in (obj): Add profiler.o.
464
78f83752
GM
4652012-09-17 Glenn Morris <rgm@gnu.org>
466
467 * ebrowse.c (version):
468 * etags.c (print_version): Use COPYRIGHT.
469
ae1d87e2
PE
4702012-09-11 Paul Eggert <eggert@cs.ucla.edu>
471
472 * pop.c (socket_connection) [HAVE_GETADDRINFO]:
473 Prefer assignment to memcpy when either will do.
474
5bf64749
AS
4752012-08-31 Andreas Schwab <schwab@linux-m68k.org>
476
477 * etags.c (consider_token): Always zero-terminate token buffer.
478 (Bug#12306)
479
b69a6d22
PE
4802012-08-19 Paul Eggert <eggert@cs.ucla.edu>
481
bad03192 482 Rely on <config.h> + <unistd.h> to declare 'environ'.
b69a6d22
PE
483 * emacsclient.c (environ): Remove decl.
484
9851e4a5
JB
4852012-08-17 Juanma Barranquero <lekktu@gmail.com>
486
487 * makefile.w32-in ($(BLD)/regex.$(O)): Update dependencies.
488
8453bb55
PE
4892012-08-15 Paul Eggert <eggert@cs.ucla.edu>
490
491 * etags.c (Pascal_functions): Fix parenthesization typo.
492
f5d9e83a
PE
4932012-08-14 Paul Eggert <eggert@cs.ucla.edu>
494
495 * make-docfile.c (enum global_type): Sort values roughly in
496 decreasing alignment, except put functions last.
497 (compare_globals): Use this new property of enum global_type.
498 (write_globals): Use bool, not int, for booleans.
499
9374581a
GM
5002012-08-10 Glenn Morris <rgm@gnu.org>
501
25e65510
GM
502 * make-docfile.c (IF_LINT):
503 * emacsclient.c (IF_LINT): Remove (in config.h now).
504
35e951cd 505 * make-docfile.c (main)
9748df5d
GM
506 (fopen) [!WINDOWSNT]:
507 (chdir) [!DOS_NT]: No more need to undef.
508
9374581a
GM
509 * movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
510 * make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
511 * emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP):
512 Remove (they are in config.h now).
35656638
GM
513
514 * ebrowse.c (PATH_LIST_SEPARATOR):
515 Remove, and replace with SEPCHAR from config.h.
516
3fbc4b54
JB
5172012-08-03 Juanma Barranquero <lekktu@gmail.com>
518
519 * makefile.w32-in (LOCAL_FLAGS): Remove WINDOWSNT and DOS_NT,
520 they are always defined in config.h.
521
6dad7178
EZ
5222012-08-03 Eli Zaretskii <eliz@gnu.org>
523
524 * ntlib.c (lstat): New function, calls 'stat'.
525
f162bcc3
PE
5262012-08-02 Paul Eggert <eggert@cs.ucla.edu>
527
528 Use C99-style 'extern inline' if available.
529 * profile.c (SYSTIME_INLINE): Define.
530
837b365b
GM
5312012-08-02 Glenn Morris <rgm@gnu.org>
532
533 * makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.
534
de7de872
GM
5352012-08-01 Glenn Morris <rgm@gnu.org>
536
537 * Makefile.in (config_h): New variable.
538 Use throughout in place of ../src/config.h.
539
552a99b4
JB
5402012-08-01 Juanma Barranquero <lekktu@gmail.com>
541
542 * makefile.w32-in (CONFIG_H): Update dependencies.
543 (CONF_POST_H): New macro.
544
0aee6912
PE
5452012-07-30 Paul Eggert <eggert@cs.ucla.edu>
546
547 Update .PHONY listings in makefiles.
548 * Makefile.in (.PHONY): Add all, need-blessmail, maybe-blessmail,
549 install, uninstall, mostlyclean, clean, distclean,
550 maintainer-clean, extraclean, check, tags.
551
8519232d
EZ
5522012-07-29 Eli Zaretskii <eliz@gnu.org>
553
554 * makefile.w32-in ($(BLD)/profile.$(O)): Depend on stamp_BLD.
555
debd9b27
PE
5562012-07-12 Paul Eggert <eggert@cs.ucla.edu>
557
558 * movemail.c: Add missing 'defined'.
559 Suggested by Sven Joachim in
560 <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00218.html>.
561
5ebbef1d
PE
5622012-07-11 Paul Eggert <eggert@cs.ucla.edu>
563
c214e35e
PE
564 Port 'movemail' again to Solaris and similar hosts.
565 See Susan Cragin's report in
566 <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00199.html>.
567 * movemail.c (xmalloc): Also define if !DISABLE_DIRECT_ACCESS &&
568 !MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK. Move up, so it doesn't
569 need a forward declaration.
570 (main): Rewrite to avoid no-longer-present function 'concat', if
571 !DISABLE_DIRECT_ACCESS && !MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK.
572
5ebbef1d
PE
573 Assume strerror.
574 * emacsclient.c, movemail.c, update-game-score.c (strerror)
575 [!HAVE_STRERROR]: Remove.
576
e99a530f
PE
5772012-07-10 Paul Eggert <eggert@cs.ucla.edu>
578
e9a9ae03
PE
579 EMACS_TIME simplification (Bug#11875).
580 * profile.c (TV2): Remove no-longer-needed static var.
581
e99a530f
PE
582 Simplify by avoiding confusing use of strncpy etc.
583 * etags.c (write_classname, C_entries):
584 Use sprintf rather than strncpy or strncat.
585 * etags.c (consider_token, C_entries, HTML_labels, Prolog_functions)
586 (Erlang_functions, substitute, readline_internal, savenstr):
587 * movemail.c (mail_spool_name):
588 Use memcpy rather than strncpy or strncat when either will do.
589 * make-docfile.c (write_c_args):
590 Use memcmp rather than strncmp when either will do.
591 * movemail.c (pop_retr):
592 * pop.c (pop_stat, pop_list, pop_multi_first, pop_last)
593 (socket_connection, pop_getline, sendline, getok):
594 Use snprintf rather than strncpy or strncat.
595 * movemail.c (concat): Remove; no longer needed.
596 (xmalloc): Define only if needed, now that concat has gone away.
597 Return void *. All uses changed.
598
5994c183
PE
5992012-07-09 Paul Eggert <eggert@cs.ucla.edu>
600
601 Add GCC-style 'const' attribute to functions that can use it.
602 * etags.c (number_len): Add ATTRIBUTE_CONST.
603
ad0a19b7
JB
6042012-07-09 Juanma Barranquero <lekktu@gmail.com>
605
606 * emacsclient.c (w32_execvp): Declare execvp to silence the compiler.
607
65e46515
JB
6082012-07-09 Juanma Barranquero <lekktu@gmail.com>
609
610 * makefile.w32-in ($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
611 (LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
612 (SYSTIME_H): New macros.
613 (SRC): Redefine to point to src/, not current directory.
614 ($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
615 ($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
616 ($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
617 ($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
618 ($(BLD)/regex.$(O)): New dependency.
619
31542918
JB
6202012-07-09 Juanma Barranquero <lekktu@gmail.com>
621
622 * makefile.w32-in (ALL): Add profile.exe.
623 (PROFILEOBJS): New macro.
624 ($(BLD)/profile.exe): New target.
625 (install): Copy profile.exe.
626 ($(BLD)/alloca.$(O), $(BLD)/tcp.$(O)): Remove, obsolete.
627
07adc2c6
JB
6282012-07-07 Juanma Barranquero <lekktu@gmail.com>
629
630 * makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)):
631 Update dependencies.
632
fee5959d
PE
6332012-07-06 Paul Eggert <eggert@cs.ucla.edu>
634
635 Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786).
636 * etags.c: Include c-strcase.h.
637 (etags_strcasecmp, etags_strncasecmp): Remove.
638 All uses replaced with c_strcasecmp and c_strncasecmp.
639
9c32bf45
AS
6402012-07-06 Andreas Schwab <schwab@linux-m68k.org>
641
642 * make-docfile.c (write_globals): Warn about duplicate function
643 definitions with differing signatures.
644
9c46aab9
PE
6452012-07-03 Paul Eggert <eggert@cs.ucla.edu>
646
647 * make-docfile.c (scan_c_file): Suppress GCC warning.
648
404dbd37
TT
6492012-06-29 Tom Tromey <tromey@redhat.com>
650
651 * make-docfile.c (enum global_type) <FUNCTION>: New constant.
652 (struct global) <value>: New field.
653 (add_global): Add 'value' argument.
654 (compare_globals): Sort functions at the end.
655 (close_emacs_globals): New function.
656 (write_globals): Handle functions.
657 (scan_c_file): Call add_global for DEFUN.
658
b95b7254
JB
6592012-06-30 Juanma Barranquero <lekktu@gmail.com>
660
661 * makefile.w32-in (CTAGS_CFLAGS): Remove EMACS_NAME;
662 already defined in ETAGS_CFLAGS.
663
1ba6038a
GM
6642012-06-27 Glenn Morris <rgm@gnu.org>
665
666 * makefile.w32-in (lisp2): Remove paths.el.
667
cf38a720
PE
6682012-06-26 Paul Eggert <eggert@cs.ucla.edu>
669
670 Clean out last vestiges of the old HAVE_CONFIG_H stuff.
671 * Makefile.in (BASE_CFLAGS):
672 * makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H.
673 * etags.c, hexl.c, pop.c: Include <config.h> unconditionally.
674 * etags.c (DOS_NT):
675 * pop.c (MAIL_USE_POP, h_errno):
676 Remove code that was conditioned on !HAVE_CONFIG_H.
677
3511c784
DA
6782012-06-25 Dmitry Antipov <dmantipov@yandex.ru>
679
680 * etags.c (etags_strcasecmp, etags_strncasecmp): Define to
681 library functions strcasecmp and strncasecmp if available.
682
845ca893
PE
6832012-06-24 Paul Eggert <eggert@cs.ucla.edu>
684
685 Switch from NO_RETURN to C11's _Noreturn (Bug#11750).
686 * ebrowse.c (usage, version):
687 * emacsclient.c (print_help_and_exit, fail):
688 * etags.c (suggest_asking_for_help, fatal, pfatal):
689 * hexl.c (usage):
690 * make-docfile.c (fatal):
691 * movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
692 * update-game-score.c (usage):
693 * ebrowse.c (usage, version):
694 * emacsclient.c (print_help_and_exit, fail):
695 Use _Noreturn rather than NO_RETURN.
696 No need for separate decl merely because of _Noreturn.
697
dd1ff7c0
SB
6982012-06-24 Samuel Bronson <naesten@gmail.com> (tiny change)
699
700 * emacsclient.c (set_local_socket): Fix compiler warning (Bug#7838).
701
d35af63c
PE
7022012-06-22 Paul Eggert <eggert@cs.ucla.edu>
703
704 Support higher-resolution time stamps (Bug#9000).
705 * Makefile.in (LIB_CLOCK_GETTIME): New macro.
706 (profile${EXEEXT}): Use it.
10b6eb0d 707 * profile.c: Include inttypes.h, intprops.h.
d35af63c
PE
708 (time_string): Size conservatively; do not guess size.
709 (get_time): Now prints nanoseconds.
710 (gettimeofday): Remove replacement function; gnulib now does this.
711
7cb70fd7
AS
7122012-06-08 Andreas Schwab <schwab@linux-m68k.org>
713
714 * make-docfile.c (search_lisp_doc_at_eol): Unget last read
715 character.
716
276d5f5d
GM
7172012-06-06 Glenn Morris <rgm@gnu.org>
718
67163749
GM
719 * Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPTS, insrcdir)
720 (stamp-rcs2log, stamp-grep-changelog): Remove.
721 (all, clean): Remove references to stamps.
722
276d5f5d
GM
723 * vcdiff: Remove file.
724 * Makefile.in (SCRIPTS, STAMP_SCRIPTS): Remove vcdiff.
725 (stamp-vcdiff): Remove.
726
b3c659a1
GM
7272012-06-05 Glenn Morris <rgm@gnu.org>
728
35e951cd
JB
729 * makefile.w32-in ($(BLD)/getdate.$(O), $(BLD)/leditcfns.$(O))
730 ($(BLD)/make-path.$(O), $(BLD)/qsort.$(O))
b3c659a1
GM
731 ($(BLD)/timer.$(O)): Remove cruft.
732
418cd726
GM
7332012-06-03 Glenn Morris <rgm@gnu.org>
734
735 * rcs-checkin: Remove file.
736 * Makefile.in (INSTALLABLE_SCRIPTS, STAMP_INST_SCRIPTS):
737 Remove rcs-checkin.
738 (stamp-rcs-checkin): Remove.
739
efc00ab1 7402012-05-31 Eli Zaretskii <eliz@gnu.org>
06523364
EZ
741
742 * makefile.w32-in ($(BLD)/emacsclientw.exe): Use $(MWINDOWS)
743 instead of a literal -mwindows, which is not supported by MSVC.
744 (Bug#11405)
745
61b108cc
SM
7462012-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
747
748 * make-docfile.c: Improve comment style.
749 (search_lisp_doc_at_eol): New function.
750 (scan_lisp_file): Use it.
751
fe453991
GM
7522012-05-26 Glenn Morris <rgm@gnu.org>
753
754 * Makefile.in (INSTALL_DATA): Remove; unused.
755
34374650
PE
7562012-05-22 Paul Eggert <eggert@cs.ucla.edu>
757
758 Remove src/m/*.
759 * makefile.w32-in: Remove dependencies on
760 $(EMACS_ROOT)/src/m/intel386.h.
761
32514cfe
GM
7622012-05-22 Glenn Morris <rgm@gnu.org>
763
764 * Makefile.in (install): Remove unneeded chmods.
765
261cb4bb
PE
7662012-05-21 Paul Eggert <eggert@cs.ucla.edu>
767
768 Assume C89 or later.
769 * etags.c (static, const): Remove macros.
770 (PTR): Remove; all uses replaced with void *. Omit needless casts.
771
b847032c
GM
7722012-05-21 Glenn Morris <rgm@gnu.org>
773
774 * Makefile.in (insrcdir, $(DESTDIR)${archlibdir}):
775 Scrap superfluous subshells.
776
ed4affe1
GM
7772012-05-18 Glenn Morris <rgm@gnu.org>
778
779 * Makefile.in (install): Ensure $bindir exists.
780
3a4155de
GM
7812012-05-17 Glenn Morris <rgm@gnu.org>
782
783 * Makefile.in (ns_appbindir): New, set by configure.
784
005ad204
GM
7852012-05-12 Glenn Morris <rgm@gnu.org>
786
787 * Makefile.in (MKDIR_P): New, set by configure.
788 ($(DESTDIR)${archlibdir}): Use $MKDIR_P.
789
db5a3003
PE
7902012-05-10 Paul Eggert <eggert@cs.ucla.edu>
791
792 etags: pacify gcc -Wstack-protector on Ubuntu 12.04 x86
793 * etags.c: Include <stdarg.h>.
794 (error): Declare as printf-style, as that's what it really is.
795 All uses changed.
796 (add_regex): Use single char rather than array-of-one char.
797
eceeb5fc
CY
7982012-05-05 Jim Meyering <meyering@redhat.com>
799
38942b9c 800 * pop.c (pop_stat, pop_list, pop_multi_first, pop_last):
eceeb5fc
CY
801 NUL-terminate the error buffer (Bug#11372).
802
069a7756
JB
8032012-05-02 Juanma Barranquero <lekktu@gmail.com>
804
805 * emacsclient.c (min): Undef before redefining it.
806
1e6f32f8
JM
8072012-05-02 Jim Meyering <jim@meyering.net>
808
809 * emacsclient.c (send_to_emacs): Avoid invalid strcpy upon partial
810 send (Bug#11374).
811
a706a3bc
AS
8122012-04-29 Andreas Schwab <schwab@linux-m68k.org>
813
814 * make-docfile.c (scan_lisp_file) [DEBUG]: Also skip if and
815 byte-code forms. (Bug#11380)
816
c07a4c0b 8172012-04-20 Chong Yidong <cyd@gnu.org>
9a864fa2
CY
818
819 * emacsclient.c (decode_options): Move -t -n corner case handling
820 into server.el (Bug#11102).
5d3385a0 821 (main): Send -tty to Emacs under more circumstances (Bug#8314).
9a864fa2 822
6c94c34f 8232012-04-18 Paul Eggert <eggert@cs.ucla.edu>
b8df54ff 824
9f46df23 825 configure: new option --enable-gcc-warnings (Bug#11207)
b8df54ff
PE
826 * Makefile.in (C_WARNINGS_SWITCH): Remove.
827 (WARN_CFLAGS, WERROR_CFLAGS): New macros.
828 (BASE_CFLAGS): Use new macros rather than old.
829
15142f27
PE
8302012-04-16 Paul Eggert <eggert@cs.ucla.edu>
831
832 Assume less-ancient POSIX support.
833 * update-game-score.c: Include <getopt.h> rather than rolling our
834 own decls for optarg, optind, opterr. See
835 <http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html>.
836
bdf35b6a 8372012-04-14 Juanma Barranquero <lekktu@gmail.com>
6c91c9f0 838
9401b326
JB
839 * emacsclient.c (decode_options) [WINDOWSNT]:
840 Call ttyname instead of passing its address (typo in 2011-12-04T17:13:01Z!lekktu@gmail.com).
841
9078ead6
EZ
8422012-04-07 Eli Zaretskii <eliz@gnu.org>
843
844 * makefile.w32-in (obj): Add xml.o.
845
d67a9a85
EZ
8462012-04-07 Eli Zaretskii <eliz@gnu.org>
847
848 * makefile.w32-in (ALL): Now the list of executables, not of phony
849 targets.
850 (.PHONY): Only make-docfile is its prerequisite now.
851 (make-docfile): Don't depend on stamp_BLD. Add a comment about
852 the need in this target.
853 (ctags, etags, ebrowse, hexl, movemail, emacsclient)
854 (test-distrib): Phony targets removed.
855 ($(BLD)/test-distrib.exe): Run test-distrib as part of the recipe.
856 (all): Don't depend on stamp_BLD.
e4ecc6a2 857 (ALL): Include $(BLD)/test-distrib.exe.
d67a9a85 858
6b0c8984
AS
8592012-03-11 Andreas Schwab <schwab@linux-m68k.org>
860
e29ab36b
AS
861 * emacsclient.c (main): Handle -print-nonl command.
862
2b84f674
AS
863 * emacsclient.c (main): Handle multiple messages in a single
864 datagram.
865
6b0c8984
AS
866 * emacsclient.c (socket_name): Add const.
867 (get_server_config): Add parameter config_file, use it instead of
868 global server_file.
869 (set_tcp_socket): Add parameter local_server_file, pass it down to
870 get_server_config.
871 (set_local_socket): Add parameter local_socket_name, use it
872 instead of global socket_name.
873 (set_socket): Adjust calls to set_local_socket and set_tcp_socket.
874 Don't clobber global server_file or socket_name.
875 (main): No longer reset server_file or socket_name.
876
1c6e5a32
GM
8772012-01-05 Glenn Morris <rgm@gnu.org>
878
879 * ebrowse.c (version) <emacs_copyright>:
880 * etags.c (print_version) <emacs_copyright>:
881 * rcs2log (Copyright): Update short copyright year to 2012.
882
28796b3a
AS
8832011-12-25 Andreas Schwab <schwab@linux-m68k.org>
884
885 * etags.c (C_entries): Properly skip over string and character
886 constants and comments inside brackets. (Bug#10357)
887
520fca41
JB
8882011-12-04 Juanma Barranquero <lekktu@gmail.com>
889
890 * emacsclient.c (decode_options) [WINDOWSNT]: Don't force tty = 0;
891 instead, treat both -c and -t as always requesting a new "tty" frame,
892 and let server.el decide which kind is actually required.
893 Reported by Uwe Siart <usenet@siart.de> in this thread:
894 http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00303.html
895
e7308292
CY
8962011-11-30 Chong Yidong <cyd@gnu.org>
897
898 * emacsclient.c (main): Condition last change on WINDOWSNT
899 (Bug#10155).
900
8c9afb46
EZ
9012011-11-27 Eli Zaretskii <eliz@gnu.org>
902
903 * makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS).
904
905 * emacsclient.c (main) <environ>: Remove declaration, already
75f1671a 906 pulled in by unistd.h on POSIX hosts and stdlib.h on MS-Windows.
8c9afb46 907
420b63ad
GM
9082011-11-24 Glenn Morris <rgm@gnu.org>
909
910 * make-docfile.c (scan_lisp_file): Treat defcustom like defvar.
911
5ef215d8
DN
9122011-11-14 Dan Nicolaescu <dann@ics.uci.edu>
913
914 * Makefile.in (all): Make sure "all" is the first target.
915
657d08d3
JB
9162011-10-27 Juanma Barranquero <lekktu@gmail.com>
917
918 * emacsclient.c (w32_getenv): Silence compiler warnings.
919
0f054abc
GM
9202011-09-07 Glenn Morris <rgm@gnu.org>
921
922 * etags.c (Fortran_functions): Handle "elemental" functions.
923
d0417b4c
DS
9242011-09-07 Dieter Schuster <didischuster@arcor.de> (tiny change)
925
926 * etags.c (Fortran_functions): Handle "pure" functions. (Bug#9359)
927
e39b275c 9282011-09-06 Paul Eggert <eggert@cs.ucla.edu>
24e0f6b1
PE
929
930 * Makefile.in ($(DESTDIR)${archlibdir}): install-sh moved
abec06ff 931 to build-aux (Bug#9169).
24e0f6b1 932
86633eab 9332011-09-04 Paul Eggert <eggert@cs.ucla.edu>
17107bb6 934
005d87bd 935 Integer and memory overflow issues (Bug#9397).
17107bb6
PE
936
937 * emacsclient.c (xmalloc): Accept size_t, not unsigned int, to
938 avoid potential buffer overflow issues on typical 64-bit hosts.
939 Return void *, not long *.
940 (get_current_dir_name): Report a failure, instead of looping
941 forever, if buffer size calculation overflows. Treat malloc
942 failures like realloc failures, as that has better behavior and is
943 more consistent. Do not check whether xmalloc returns NULL, as
944 that's not possible.
945 (message): Do not arbitrarily truncate message to 2048 bytes when
946 sending it to stderr; use vfprintf instead.
947 (get_server_config, set_local_socket)
948 (start_daemon_and_retry_set_socket): Do not alloca
949 arbitrarily-large buffers; that's not safe.
950 (get_server_config, set_local_socket): Do not use sprintf when its
951 result might not fit in 'int'.
952 (set_local_socket): Do not assume uid fits in 'int'.
953
9250f758
PE
954 * etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,
955 to avoid potential buffer overflow issues on typical 64-bit hosts.
956 (whatlen_max): New static var.
957 (main): Avoid buffer overflow if subsidiary command length is
4f405069 958 greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its
9250f758
PE
959 result might not fit in 'int'.
960
644a0faa
PE
961 * movemail.c (main): Do not use sprintf when its result might not fit
962 in 'int'. Instead, put the possibly-long file name into the
963 output of pfatal_with_name.
964
0c6d656d
PE
965 * update-game-score.c: Include <limits.h>
966 (get_user_id): Do not assume uid fits in 'int'. Simplify.
967
044c22e5 9682011-07-28 Paul Eggert <eggert@cs.ucla.edu>
9cfdb3ec 969
0e926e56
PE
970 Assume freestanding C89 headers, string.h, stdlib.h.
971 * ebrowse.c: Include stdlib.h unconditionally.
972 * etags.c, update-game-score.c:
973 Include string.h and stdlib.h unconditionally.
974 * makefile.w32-in (LOCAL_CFLAGS): Don't define STDC_HEADERS.
975 * movemail.c, pop.c: Include string.h unconditionally.
976 * update-game-score.c: No need to include stdarg.h; not used.
977
9cfdb3ec
PE
978 Assume support for memcmp, memcpy, memmove, memset.
979 * etags.c (absolute_filename): Assume memmove exists.
980
ec3b5374
AS
9812011-07-09 Andreas Schwab <schwab@linux-m68k.org>
982
983 * update-game-score.c (usage): Update usage line.
984
bc92abd2
JR
9852011-07-02 Jason Rumney <jasonr@gnu.org>
986
987 * emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on
988 Windows (Bug#5486).
989
3794a2d3
GM
9902011-06-25 Glenn Morris <rgm@gnu.org>
991
992 * emacsclient.c (decode_options) <opt>: Add `F:'.
993 (print_help_and_exit): Mention --frame-parameters.
994
18a4ce5e
AR
9952011-06-25 Andreas Rottmann <a.rottmann@gmx.at>
996
997 * emacsclient.c (longopts, decode_options, main): Add frame-parameters.
998
529a133c
PE
9992011-06-10 Paul Eggert <eggert@cs.ucla.edu>
1000
1001 * movemail.c: Fix race condition and related bugs (Bug#8836).
1002 (main) [!MAIL_USE_SYSTEM_LOCK]: Prefer mkstemp to mktemp, as this
1003 fixes some race conditions. Report mkstemp/mktemp errno rather
1004 than a possibly-garbage errno. Reinitialize the template each
1005 time through the loop, as earlier mkstemp/mktemp calls could have
1006 trashed it. Pass 0600 (not 0666) to mktemp, for consistency
1007 with mkstemp; the permissions don't matter anyway.
1008
fe91f5a0
DN
10092011-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1010
1011 * emacsclient.c (socket_status): Use constant pointer.
1012
55d4c1b2
PE
10132011-05-28 Paul Eggert <eggert@cs.ucla.edu>
1014
1015 Use 'inline', not 'INLINE'.
1016 * etags.c (hash): Now inline unconditionally.
1017 * make-docfile.c (put_char): inline, not INLINE.
1018
7bdede3f
GM
10192011-05-25 Glenn Morris <rgm@gnu.org>
1020
e9490743
GM
1021 * Makefile.in (.c.o): Remove (every .o file has an explicit rule).
1022 (insrcdir): New.
1023 (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
1024 Use $insrcdir to suppress unaesthetic ignored errors.
1025 (clean): Simplify list of things to delete.
497c74cd 1026 (all, clean): Use $EXE_FILES.
e9490743 1027
d114d4f3
GM
1028 * Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.
1029
7bdede3f
GM
1030 * Makefile.in (REGEXPOBJ, REGEXPDEPS): Remove. Replace by expansion.
1031 (etags${EXEEXT}): Just depend on regex.o, not regex.h as well.
1032
1c728a9d
GM
10332011-05-24 Glenn Morris <rgm@gnu.org>
1034
1035 * Makefile.in (update-game-score${EXEEXT}): Use a single rule.
1036
4a720484
GM
10372011-05-19 Glenn Morris <rgm@gnu.org>
1038
1039 * makefile.w32-in (echolisp): Remove rule that is no longer needed.
1040 (clean): No more echolisp.tmp.
1041
c136e5cd
GM
10422011-05-18 Glenn Morris <rgm@gnu.org>
1043
1044 * fakemail.c: Remove file.
1045 * makefile.w32-in ($(BLD)/fakemail.exe, fakemail)
1046 ($(BLD)/fakemail.$(O)): Remove.
1047 * Makefile.in (UTILITIES): Remove fakemail${EXEEXT}.
1048 (fakemail${EXEEXT}): Remove rule.
1049
418401a5
TZ
10502011-04-24 Teodor Zlatanov <tzz@lifelogs.com>
1051
17519c90 1052 * makefile.w32-in (obj): Add gnutls.o.
418401a5 1053
c5443aa5
PE
10542011-04-16 Paul Eggert <eggert@cs.ucla.edu>
1055
fd35b6f9
PE
1056 Static checks with GCC 4.6.0 and non-default toolkits.
1057
5a9c1e26
PE
1058 * movemail.c (mail_spool_name): Protoize.
1059 (main): Remove unused var. Mark var as initialized.
1060 Move locals to avoid shadowing, and use time_t for times.
1061
cd52b244
PE
1062 * fakemail.c (xmalloc, xreallc): Use standard C prototypes
1063 with void *. This avoids warnings about pointer casts.
1064
c5443aa5
PE
1065 * emacsclient.c (main): Don't use uninitialized var.
1066 (IS_ANY_SEP): Remove; unused.
1067 (get_current_dir_name): Add an extern decl.
1068
41cf7d1a 10692011-04-06 Paul Eggert <eggert@cs.ucla.edu>
72b04a8a 1070
41cf7d1a 1071 Fix more problems found by GCC 4.6.0's static checks.
72b04a8a 1072
41cf7d1a 1073 * emacsclient.c (message): Mark it as a printf-like function.
8e48d7bc
PE
1074
1075 * make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.
1076 (write_c_args): Use it to suppress GCC warning.
1077
77861b95 10782011-03-30 Paul Eggert <eggert@cs.ucla.edu>
8c422c30 1079
77861b95 1080 Fix a problem found by GCC 4.6.0's static checks.
8c422c30
PE
1081 * etags.c (just_read_file): Remove dummy variable and simplify.
1082
9af30bdf
GM
10832011-03-27 Glenn Morris <rgm@gnu.org>
1084
1085 * emacsclient.c: Replace SIGTYPE with void.
1086
9c88f339
JB
10872011-03-23 Juanma Barranquero <lekktu@gmail.com>
1088
1089 * ntlib.c: Include <ctype.h>.
1090
8cc1d519
GM
10912011-03-23 Glenn Morris <rgm@gnu.org>
1092
1093 * Makefile.in ($(DESTDIR)${archlibdir}):
1094 Use `install-sh -d' rather than mkinstalldirs.
1095
c9c49752 10962011-03-23 Paul Eggert <eggert@cs.ucla.edu>
d5cad867 1097
b1f961e1
PE
1098 * ebrowse.c: Use size_t, not int, for sizes.
1099 This avoids a warning with gcc -Wstrict-overflow, and works
1100 better for very large objects.
1101 (inbuffer_size): Now size_t. All uses changed.
1102 (xmalloc, xrealloc, operator_name, process_file): Use size_t for
1103 sizes. Don't bother testing whether a size_t value can be negative.
1104
58cb46fb
PE
1105 * etags.c (Ada_funcs): Redo slightly to avoid overflow warning.
1106
3ef271f2
PE
1107 etags: In Prolog functions, don't assume int fits in size_t.
1108 This avoids a warning with gcc -Wstrict-overflow.
1109 * etags.c (Prolog_functions, prolog_pr, prolog_atom): Use size_t,
1110 not int, to store sizes.
1111 (prolog_atom): Return 0, not -1, on error. All callers changed.
1112
f0d80d43
PE
1113 update-game-score: fix bug with -r
1114 * update-game-score.c (main): Don't set 'scores' to garbage when
5d6d7e57
PE
1115 -r is specified and scorecount != MAX_SCORES (Bug#8310). This bug
1116 was introduced in the 2002-04-10 change, and was found with gcc
f0d80d43
PE
1117 -Wstrict-overflow (GCC 4.5.2, x86-64).
1118
d5cad867
PE
1119 fakemail: Remove dependency on ignore-value.
1120 This undoes some of the recent fakemail-related changes.
1121 It is made possible due to recent changes to gnulib's stdio module.
1122 * Makefile.in (fakemail${EXEEXT}): Do not depend on ignore-value.h.
1123 * fakemail.c: Do not include ignore-value.h.
1124 (put_line): Do not use ignore_value.
1125
33383987
JB
11262011-03-07 Chong Yidong <cyd@stupidchicken.com>
1127
1128 * Version 23.3 released.
1129
0b973fc5
DW
11302011-03-03 Drake Wilson <drake@begriffli.ch> (tiny change)
1131
1132 * emacsclient.c (longopts): Add quiet.
1133 (decode_options): Handle q/quiet.
1134 (print_help_and_exit): Add q/quiet.
1135 (main): Suppress some messages if quiet option is used.
1136
a54af40e
EZ
11372011-02-26 Eli Zaretskii <eliz@gnu.org>
1138
00030ef0
EZ
1139 * Makefile.in (fakemail${EXEEXT}): Depend on lib/ignore-value.h.
1140
a54af40e
EZ
1141 * emacsclient.c (xstrdup) [WINDOWSNT]: Function added back.
1142 (w32_getenv): Use xstrdup to return all values in malloc'ed
1143 storage.
1144
34e6d782
PE
11452011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1146
6c0668d9
PE
1147 * ebrowse.c (parse_qualified_param_ident_or_type): Make it clear
1148 to reader (and to the compiler) that the loop always executes at
1149 least once. This prevents a warning with recent GCC.
9e1b7fe6 1150 (BROWSE_STRUCT): Remove unused macro.
6c0668d9 1151
a4fe4e89
PE
1152 * fakemail.c: Include <ignore-value.h>.
1153 (put_line): Explicitly ignore fwrite return value, for benefit of
1154 recent glibc + gcc.
1155 (close_the_streams): Diagnose output errors instead of merely
1156 exiting with nonzero status.
1157 (my_fclose, main): Diagnose input errors, and exit with nonzero status.
1158 Formerly, input errors were silently ignored.
1159
34e6d782
PE
1160 * ebrowse.c (putstr): Rename from PUTSTR and turn into a function.
1161 All callers changed. This is cleaner, and avoids GCC warnings about
1162 passing NULL to fputs.
70279bd1 1163 (insert_keyword): Rename parameter to avoid shadowing diagnostic.
34e6d782 1164
564ff1f2
PE
11652011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1166
7e6bb4c9 1167 * emacsclient.c (main): Avoid dangling 'if'.
b9170155 1168 (xstrdup): Remove; no longer needed.
35e951cd 1169 (get_current_dir_name, w32_getenv, get_server_config, find_tty)
b9170155
PE
1170 (set_local_socket, main):
1171 Use const char *, not char *, for pointers that are not assigned
1172 through.
4be3dfc5
PE
1173 (IF_LINT): New macro.
1174 (set_local_socket, main): Use it to suppress warnings with
1175 GCC -Wuninitialized.
7e6bb4c9 1176
b0bbc07d
PE
1177 * emacsclient.c: Redo local variables to avoid shadowing problems.
1178 (message, socket_status, start_daemon_and_retry_set_socket):
1179 Rename locals.
1180 (main): Move decl of "i".
1181
3f5e6230
PE
1182 * etags.c (ISUPPER): Move to inside the only #ifdef where it's used.
1183 This avoids an unused-macro warning with some GCC settings.
1184
564ff1f2
PE
1185 * make-docfile.c (write_globals): Change char * to char const *
1186 to avoid a GCC "assignment discards qualifiers" diagnostic
1187 in some configurations.
8dfa32f6
PE
1188 (scan_c_file): Refactor local variable decls to make their scope
1189 more accurate and to avoid a GCC -Wuninitialized diagnostic.
564ff1f2 1190
b97decf2
EZ
11912011-02-22 Eli Zaretskii <eliz@gnu.org>
1192
32e793fa
EZ
1193 * etags.c (canonicalize_filename, ISUPPER): Fix last change.
1194
61b108cc
SM
1195 * makefile.w32-in ($(BLD)/ebrowse.$(O), $(BLD)/pop.$(O)):
1196 Depend on ../lib/min-max.h.
b97decf2 1197
f68c809d
PE
11982011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1199
e5075711
PE
1200 etags: Downcase drive letters, for consistency with Emacs proper.
1201 * etags.c (upcase): Remove; no longer used.
1202 (canonicalize_filename): Downcase drive letters.
1203
f68c809d
PE
1204 Assume S_ISLNK etc. work, since gnulib supports this.
1205 * etags.c (S_ISREG): Remove.
1206
b97decf2
EZ
12072011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1208
1209 Assume S_ISLNK etc. work, since gnulib supports this.
1210 * etags.c (S_ISREG): Remove.
1211
602a5739
JB
12122011-02-22 Juanma Barranquero <lekktu@gmail.com>
1213
1214 * makefile.w32-in (obj): Remove filemode.o.
1215
b23b5a5b
PE
12162011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1217
ba01e9d7
PE
1218 New file "lib/min-max.h".
1219 * ebrowse.c (min, max): Define them by including <min-max.h>
1220 instead of defining it ourselves.
1221 * pop.c (min): Likewise.
d47d6319 1222 * Makefile.in (ebrowse${EXEEXT}, pop.o): Depend on min-max.h.
ba01e9d7 1223
f0939c31
PE
1224 * movemail.c (popmail): Report fchown failure instead of ignoring it.
1225 But if the file already has the right ownership, don't worry about it.
1226
4df52042 1227 * make-docfile.c (input_buffer): Rename variables to avoid shadowing.
08c69097 1228 * test-distrib.c (buf): Make this local, to avoid shadowing.
4df52042 1229
27d41fb4 1230 * movemail.c (main, pop_retr): Rename locals to avoid shadowing.
1afca8cc 1231 (progname, sfi, sfo, ibuffer, obuffer): Remove unused vars.
5ecec6a7
PE
1232 (DONE): Remove unused macro.
1233 (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_FROM_LINE):
1234 Define these macros only in the contexts that need them.
0d7fdc0e
PE
1235 * pop.c (index): Remove unused macro.
1236 (KPOP_PORT): Define only if KERBEROS is defined.
27d41fb4 1237
b23b5a5b
PE
1238 Declare file-scope functions and variables static if not exported.
1239 This is more consistent, and is nicer with gcc -Wstrict-prototypes.
1240 * ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c:
1241 * profile.c, test-distrib.c, update-game-score.c:
1242 Declare non-'main' functions and variables to be static.
1243 * ebrowse.c: Omit redundant function prototypes.
1244
25c51af3
EZ
12452011-02-21 Eli Zaretskii <eliz@gnu.org>
1246
1247 * makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/emacsclient.$(O))
1248 ($(BLD)/etags.$(O), $(BLD)/movemail.$(O), $(BLD)/ntlib.$(O)):
1249 Depend on $(EMACS_ROOT)/nt/inc/sys/stat.h.
1250
e18c0aa3 12512011-02-21 Ben Key <bkey76@gmail.com>
6ca1c3b4
BK
1252
1253 * make-docfile.c (scan_c_file): Adapt DEFVAR_PER_BUFFER case to
1254 the new BVAR macro.
1255
50a4e25a
JB
12562011-02-20 Juanma Barranquero <lekktu@gmail.com>
1257
1258 * makefile.w32-in (obj): Remove md5.o.
1259
b166dcd8
KC
12602011-02-18 Karl Chen <Karl.Chen@quarl.org>
1261
1262 * emacsclient.c (main): Loop while `recv' return EINTR.
1263
64df8c10
PE
12642011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1265
1266 * make-docfile.c (EMACS_INTEGER): Rename from EMACS_INT.
1267 This avoids collision with config.h's EMACS_INT on some
1268 configurations. All uses changed.
1269
00b3c7ac
TT
12702011-02-08 Tom Tromey <tromey@redhat.com>
1271
1272 * make-docfile.c: Unconditionally include stdlib.h.
1273 (generate_globals): New global.
1274 (xrealloc): New function.
1275 (main): Handle '-g'. Call start_globals, write_globals.
1276 (scan_file): Conditionally call put_filename.
1277 (start_globals): New function.
1278 (struct global): New.
1279 (num_globals, globals): New globals.
1280 (add_global, compare_globals, write_globals): New functions.
1281 (scan_c_file): Update for "-g".
1282 (scan_lisp_file): Fail if "-g".
1283
03fc768b
PE
12842011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1285
602a5739 1286 * emacsclient.c: Conform to C89 pointer rules.
03fc768b
PE
1287 (file_name_absolute_p): Accept const char *, not const unsigned
1288 char *, to satisfy C89 rules.
1289
d9f1f55e
EZ
12902011-02-02 Eli Zaretskii <eliz@gnu.org>
1291
b166dcd8
KC
1292 * makefile.w32-in (ETAGS_CFLAGS, CTAGS_CFLAGS):
1293 Add ``-DEMACS_NAME="\"GNU Emacs\""''.
83cc5772 1294 (obj): Remove strftime.o.
d9f1f55e 1295
70b0d280
EZ
12962011-01-31 Eli Zaretskii <eliz@gnu.org>
1297
1298 * makefile.w32-in (VERSION): Don't define, defined on nt/config.nt.
1299 (ECLIENT_CFLAGS): Remove -DVERSION.
1300 ($(BLD)/emacsclient.$(O)): Don't depend on makefile.w32-in.
1301
16fab143
PE
13022011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1303
1304 src/emacs.c now gets version number from configure.in
1305 * ebrowse.c: Adjust comment to say that.
1306
8aec9916
JM
13072011-01-30 Jim Meyering <meyering@redhat.com>
1308
c295fc18 1309 * make-docfile.c: Don't corrupt heap for an invalid .elc file
8aec9916
JM
1310 "printf '#@1a' > in.elc; ./make-docfile in.elc" would store 0
1311 one byte before just-malloc'd saved_string buffer.
1312 * make-docfile.c (scan_lisp_file): Diagnose an invalid dynamic
1313 doc string length. Also fix an always-false while-loop test.
1314
f915f0f7
EZ
13152011-01-29 Eli Zaretskii <eliz@gnu.org>
1316
1317 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1318 (GETOPTOBJS, GETOPTDEPS): Remove targets.
1319 (MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
1320 ($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
1321 (ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
1322 and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
1323 (clean): Don't remove getopt.h.
1324 (getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
1325 ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
1326 $(EMACS_ROOT)/lib/getopt.h.
1327
13282011-01-28 Chong Yidong <cyd@stupidchicken.com>
1329
1330 * ntlib.c (setregid): New stub, renamed from setegid.
1331
1332 * ntlib.h: Update prototype.
1333
06d8ace5 13342011-01-25 Chong Yidong <cyd@stupidchicken.com>
fbf4af3a
CY
1335
1336 * movemail.c (main): Use setregid instead of setegid, which is
1337 missing on older systems. Suggested by Peter O'Gorman (Bug#6811).
1338
9055082e
PE
13392011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1340
1341 Check return values of some library calls.
1342 * hexl.c (main): Check fread result.
1343 * make-docfile.c (main): Check chdir result.
1344 (scan_c_file): Check fscanf result.
1345 * movemail.c (main): Check ftruncate result.
1346
33fe4243 13472011-01-17 Paul Eggert <eggert@cs.ucla.edu>
e275c824 1348
4004364e
PE
1349 Include <unistd.h> unilaterally.
1350 * emacsclient.c, etags.c, fakemail.c, make-docfile.c, movemail.c:
1351 * pop.c, test-distrib.c, update-game-score.c:
1352 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1353 unistd.h is always present now, possibly supplied by gnulib.
1354
613f7bda
PE
1355 Include <getopt.h> not "getopt.h".
1356 * ebrowse.c, emacsclient.c: Include <getopt.h>, not "getopt.h".
1357 Since getopt.h is no longer in this directory, there's no point
1358 using the form with double-quotes.
1359
e275c824
PE
1360 Remove unused files.
1361 * getopt.c, getopt1.c, getopt_.h, getopt_int.h: Remove.
1362 These files are now in ../lib, copied from gnulib.
1363
1364 Use gnulib's getopt-gnu module.
1365 * Makefile.in (mostlyclean): Do not clean getopt.h or getopt.h-t,
1366 as these are now done by gnulib.
1367 (GETOPT_H, getopt.h, GETOPTOBJS, GETOPTDEPS, getopt.o, getopt1.o):
1368 Remove; now done by gnulib. All uses removed.
1369
9a514d4a
PE
1370 Automate syncing from gnulib.
1371 * Makefile.in (EXE_FILES): New macro.
1372 (BASE_CFLAGS): Add -I../lib and -I${srcdir}/../lib,
1373 for gnulib's .h files.
1374 (LOADLIBES): Add ../lib/libgnu.a.
1375 ($(EXE_FILES)): Depend on ../lib/libgnu.a.
1376 (../lib/libgnu.a): New rule.
1377
72427c46
PE
13782011-01-08 Paul Eggert <eggert@cs.ucla.edu>
1379
1380 * Makefile.in (EXECUTABLES): Remove; macro unused since 1993.
1381
4967fa34
GM
13822011-01-08 Glenn Morris <rgm@gnu.org>
1383
e7a42417
GM
1384 * Makefile.in (EMACSOPT): Add --no-site-lisp.
1385
4967fa34
GM
1386 * Makefile.in (EMACSOPT): Remove --multibyte, it does nothing any more.
1387
d7bfa7a1
GM
13882011-01-02 Glenn Morris <rgm@gnu.org>
1389
1390 * ebrowse.c (version) <emacs_copyright>:
1391 * etags.c (print_version) <emacs_copyright>:
1392 * rcs2log (Copyright): Set short copyright year to 2011.
1393
da2b5401
JM
13942010-11-27 Joe Matarazzo <joe.matarazzo@gmail.com> (tiny change)
1395
1396 * ebrowse.c (yylex): If end of input buffer encountered while
1397 searching for a newline after "//", return YYEOF. (Bug#7446)
1398
4a47c275 13992010-11-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
76cc4cd6
YM
1400
1401 * emacsclient.c (set_local_socket) [DARWIN_OS]: Add fall-back
1402 definition of _CS_DARWIN_USER_TEMP_DIR for Mac OS X 10.4 and older.
1403
f16cafe3
DN
14042010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1405
1406 * test-distrib.c: Remove include guards for config.h and fcntl.h.
1407 (O_RDONLY): Do not define.
1408 (cool_read): Fix type for variable "sofar".
1409
6a5c2175
GM
14102010-10-25 Glenn Morris <rgm@gnu.org>
1411
1412 * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove easymenu.elc.
1413
17284e30
GM
14142010-10-23 Glenn Morris <rgm@gnu.org>
1415
1416 * digest-doc.c, sorted-doc.c: Remove files.
1417 * Makefile.in (UTILITIES): Remove digest-doc and sorted-doc.
1418 (digest-doc${EXEEXT}, sorted-doc${EXEEXT}): Remove rules.
1419 * makefile.w32-in (ALL): Remove digest-doc and sorted-doc.
1420 ($(BLD)/sorted-doc.exe, $(BLD)/digest-doc.exe, sorted-doc, digest-doc)
1421 ($(BLD)/digest-doc.$(O), $(BLD)/sorted-doc.$(O)): Remove rules.
1422 (install): Don't install digest-doc.exe or sorted-doc.exe.
1423
a4daeecf
DN
14242010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
1425
1426 * Makefile.in (PROFILING_LDFLAGS): Remove, not needed.
1427
3fb78d1f
GM
14282010-10-09 Glenn Morris <rgm@gnu.org>
1429
1430 * b2m.c, b2m.pl: Remove files.
1431 * Makefile.in (INSTALLABLES): Remove b2m.
1432 * makefile.w32-in ($(BLD)/b2m.$(O)): Remove.
1433
4628bef1 14342010-10-08 Glenn Morris <rgm@gnu.org>
b336bfcd
GM
1435
1436 * emacsclient.c (set_local_socket) [DARWIN_OS]: Try as a fall-back
1437 DARWIN_USER_TEMP_DIR. (Bug#3992)
1438
f99d75f5
DN
14392010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
1440
728a982d
DN
1441 * test-distrib.c (cool_read):
1442 * movemail.c (main, concat):
1443 * make-docfile.c (scan_file, write_c_args):
602a5739 1444 * emacsclient.c (get_server_config): Fix -Wconversion warning.
728a982d
DN
1445 (egetenv): Move conditional definition earlier.
1446 (progname): Use const.
1447 * sorted-doc.c (xstrdup): Use const.
1448
f99d75f5
DN
1449 * Makefile.in: Remove ^L, old makes choke on it.
1450
3ecb8d93
WS
14512010-10-02 Wolfgang Schnerring <wosc@wosc.de> (tiny change)
1452
1453 * emacsclient.c (main): Return EXIT_FAILURE if Emacs sends us an
1454 error string (Bug#6963).
1455
54b65f7b
JB
14562010-10-02 Juanma Barranquero <lekktu@gmail.com>
1457
1458 * makefile.w32-in (tags): Remove target.
1459
73077a9a
EZ
14602010-10-01 Eli Zaretskii <eliz@gnu.org>
1461
1462 * makefile.w32-in (tags, TAGS): New targets.
1463
968ef9b4
JB
14642010-09-30 Juanma Barranquero <lekktu@gmail.com>
1465
1466 * emacsclient.c (get_server_config): Don't read Emacs pid from
1467 the authentication file.
1468
6ab88e02
JB
14692010-09-29 Juanma Barranquero <lekktu@gmail.com>
1470
a69edb8a
JB
1471 * makefile.w32-in (../src/config.h): Remove target, it is stale.
1472
6ab88e02
JB
1473 * emacsclient.c (main): Remove unused variables.
1474 (start_daemon_and_retry_set_socket): Use EXIT_FAILURE.
1475
4c964351
UM
14762010-09-25 Ulrich Mueller <ulm@gentoo.org>
1477
1478 * etags.c (compressors, print_language_names): Support xz compression.
1479
988e88ab
J
14802010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1481
70e31436 1482 * fakemail.c: Include stdlib.h for getenv. Remove declaration of
5e3b9a89 1483 popen, fclose and pclose.
70e31436 1484 (my_name, fatal, error, put_line): Use const char*.
5e3b9a89
J
1485 (main): Remove extern getenv, mail_program_name is const char*.
1486
988e88ab
J
1487 * update-game-score.c (get_prefix, write_scores, main): Use const char*.
1488
1489 * sorted-doc.c (error, fatal, states): Use const char *.
1490
1491 * pop.h (pop_multi_first): Use const char *.
1492 (_ARGS): Remove.
1493
70e31436 1494 * pop.c (pop_multi_first, socket_connection, sendline): Use const char*.
988e88ab
J
1495
1496 * movemail.c (fatal, error, concat): Use const char *.
1497
b166dcd8
KC
1498 * make-docfile.c (error, fatal, scan_c_file, scan_lisp_file):
1499 Use const char *.
988e88ab
J
1500
1501 * etags.c (compressor, language, Ada_suffix, Ada_help, Asm_suffixes)
1502 (Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes)
1503 (Cplusplus_help, Cjava_suffixes, Cobol_suffixes, Cstar_suffixes)
1504 (Erlang_suffixes, Erlang_help, Forth_suffixes, Forth_help)
41e9b956 1505 (Fortran_suffixes, Fortran_help, HTML_suffixes, HTML_help)
988e88ab
J
1506 (Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help)
1507 (Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help)
1508 (Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters)
1509 (Perl_help, PHP_suffixes, PHP_help, plain_C_suffixses, PS_suffixes)
1510 (PS_help, Prolog_suffixes, Prolog_help, Python_suffixes, Python_help)
1511 (Scheme_suffixes, Scheme_help, TeX_suffixes, TeX_help, Texinfo_suffixes)
1512 (Texinfo_help, Yacc_suffixes, Yacc_help, auto_help, none_help)
1513 (no_lang_help, print_language_names)
1514 (get_language_from_interpreter, get_language_from_filename)
1515 (init, make_tag, struct C_stab_entry, write_classname, TEX_defenv)
1516 (TEX_decode_env, nocase_tail, savestr, savenstr, fatal, pfatal)
1517 (concat): Use const char*.
1518
1519 * emacsclient.c (message, sock_err_message, send_to_emacs)
1520 (quote_argument, set_local_socket)
1521 (start_daemon_and_retry_set_socket): Use const char*.
1522
1523 * ebrowse.c (struct member): filename, def_filename is const.
1524 (struct sym): filename, sfilename is const.
1525 (struct kw): name is const.
1526 (add_sym, yyerror, token_string, insert_keyword, main): Use const char*.
1527
1528 * b2m.c (concat, fatal): Use const char*.
1529 (main): Don't assign labels a string literal.
1530
0e9c8657
JB
15312010-08-07 Juanma Barranquero <lekktu@gmail.com>
1532
1533 * ebrowse.c (usage, version, mark_virtual):
1534 Remove duplicate declarations.
1535
0613f5d5
DN
15362010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1537
1538 * emacsclient.c: Move socket related #includes together with the
70e31436 1539 rest of the #includes. Move WINDOWSNT includes closer together.
0613f5d5
DN
1540 (HAVE_CONFIG_H): Remove.
1541 (NO_RETURN): Remove, defined in config.h.
1542 (main): Convert definition to standard C.
1543
a94a477d
JB
15442010-07-29 Juanma Barranquero <lekktu@gmail.com>
1545
1546 * make-docfile.c (write_c_args): Warn for old-style empty arglist ().
1547
35a7804d
JB
15482010-07-25 Juanma Barranquero <lekktu@gmail.com>
1549
1550 * emacsclient.c (getcwd): Fix previous change: make getcwd
1551 conditional on HAVE_GETCWD and declare with the correct POSIX
1552 profile (for some reason MinGW headers define its 2nd arg as int,
1553 not size_t; but getcwd is not used on Windows nonetheless).
1554
361358ea
JB
15552010-07-25 Juanma Barranquero <lekktu@gmail.com>
1556
1557 * emacsclient.c (getcwd, w32_getenv):
1558 * ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.
1559
68441b90
DN
15602010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1561
087b38a0 1562 * update-game-score.c (usage): Add NO_RETURN specifier.
68441b90
DN
1563 * movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
1564 * make-docfile.c (fatal):
1565 * hexl.c (usage):
1566 * fakemail.c (fatal):
1567 * etags.c (fatal, suggest_asking_for_help, pfatal):
1568 * emacsclient.c (fatal):
1569 * b2m.c (fatal): Likewise.
1570
554d39be
JB
15712010-07-23 Juanma Barranquero <lekktu@gmail.com>
1572
1573 * make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".
1574
7c3320d8
JB
15752010-07-20 Juanma Barranquero <lekktu@gmail.com>
1576
1577 * emacsclient.c (get_current_dir_name, w32_get_resource)
1578 (w32_getenv, w32_set_user_model_id, w32_window_app, w32_execvp)
1579 (close_winsock, initialize_sockets, w32_find_emacs_process)
1580 (w32_give_focus):
1581 * ntlib.c (getlogin, getuid, getgid, getegid):
1582 Convert definitions to standard C.
1583
e6cfa7c3
AS
15842010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1585
1586 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1587 (PROFILING_LDFLAGS): Set from substitution.
1588 (BASE_CFLAGS): Add ${C_WARNINGS_SWITCH}.
1589 (ALL_CFLAGS, CPP_CFLAGS): Add ${PROFILING_CFLAGS}.
1590 (LINK_CFLAGS): Add ${PROFILING_LDFLAGS}.
1591
f09e4c6b
EZ
15922010-07-12 Eli Zaretskii <eliz@gnu.org>
1593
1594 * makefile.w32-in (lisp2): Change hebrew.el to hebrew.elc (see
1595 2010-07-12T05:25:46Z!handa@etlken).
1596
8966b757
AS
15972010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1598
1599 * emacsclient.c (set_local_socket): Use strchr, strrchr instead of
1600 index, rindex.
1601 * movemail.c (mail_spool_name, popmail): Likewise.
1602 * pop.c (pop_list): Likewise.
1603
994a7c3b
EZ
16042010-07-11 Eli Zaretskii <eliz@gnu.org>
1605
a628ad9d 1606 * makefile.w32-in (obj): Add menu.o, bidi.o, w32uniscribe.o,
994a7c3b
EZ
1607 and unexw32.o. (Bug#6603)
1608
c971758d
EZ
16092010-07-10 Eli Zaretskii <eliz@gnu.org>
1610
1611 * Makefile.in ($(DESTDIR)${archlibdir}): Convert spaces to TABs.
1612
91a7f76d
AS
16132010-07-09 Andreas Schwab <schwab@linux-m68k.org>
1614
1615 * make-docfile.c (write_c_args): Restructure scanning loop.
1616
0508c67f
DN
16172010-07-09 Dan Nicolaescu <dann@ics.uci.edu>
1618
1619 * make-docfile.c (write_c_args): Deal with type names in DEFUN
1620 arguments.
1621
0216627e
DN
16222010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1623
1624 * update-game-score.c (P_): Remove macro.
1625 * ebrowse.c: Remove include guards.
1626 (P_): Remove macro.
1627
72af86bd
AS
16282010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1629
1630 * ebrowse.c (add_sym, make_namespace): Replace bcopy, bzero by
1631 memcpy, memmove, memset.
1632 * pop.c (pop_retrieve, socket_connection, pop_getline): Likewise.
1633
e2ad23ef
AS
16342010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1635
1636 * movemail.c: Add MAIL_USE_POP around prototypes.
1725ae55
AS
1637 Include <string.h> if HAVE_STRING_H.
1638 (strerror): Only declare if !HAVE_STRERROR.
1639 (fatal): Make static.
1640 (error): Likewise.
1641 (pfatal_with_name): Likewise.
70e31436 1642 (pfatal_and_delete): Likewise.
1725ae55
AS
1643 (concat): Likewise.
1644 (xmalloc): Likewise.
1645 (popmail): Likewise.
1646 (pop_retr): Likewise.
1647 (mbx_write): Likewise.
1648 (mbx_delimit_begin): Likewise.
1649 (mbx_delimit_end): Likewise.
e2ad23ef 1650
b8463cbf
DN
16512010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1652
1653 * fakemail.c (action): Convert function definitions to standard C.
1654 (add_a_stream):
35e951cd 1655 * test-distrib.c (cool_read, main): Likewise.
b8463cbf 1656
a52a00a3
AS
16572010-07-03 Andreas Schwab <schwab@linux-m68k.org>
1658
1659 * sorted-doc.c (cmpdoc): Fix signature.
1660 (qsort_compare): Delete.
1661 (main): Remove cast.
1662
35d99b72
JB
16632010-07-03 Juanma Barranquero <lekktu@gmail.com>
1664
1665 * ebrowse.c (match_qualified_namespace_alias): Check for null pointer.
1666
3a35a84c
JB
16672010-07-03 Juanma Barranquero <lekktu@gmail.com>
1668
1669 Fix prototype warnings.
1670
1671 * ebrowse.c (match_qualified_namespace_alias):
1672 Pass sym* to find_namespace, not link*.
1673
1674 * emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET.
1675
1676 * sorted-doc.c (qsort_compare): New typedef.
1677 (main): Use it to cast cmpdoc.
1678
873fbd0b
DN
16792010-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1680
1681 * update-game-score.c: Convert function definitions to standard C.
1682 * sorted-doc.c:
1683 * profile.c:
1684 * pop.c:
1685 * movemail.c:
1686 * make-docfile.c:
1687 * hexl.c:
1688 * fakemail.c:
1689 * etags.c:
1690 * ebrowse.c:
1691 * digest-doc.c:
1692 * b2m.c: Likewise.
1693
c532d349
DN
16942010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1695
1696 * make-docfile.c (xmalloc, xrealloc, concat, readline, fatal):
1697 * b2m.c (scan_file, scan_lisp_file, scan_c_file): Convert to
1698 standard C prototypes.
1699
f57e2426
J
17002010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1701
1702 * ebrowse.c: Remove P_ and __P.
1703 * etags.c:
1704 * movemail.c:
1705 * pop.c:
1706 * update-game-score.c: Likewise.
1707
3b3807f8
JB
17082010-06-24 Juanma Barranquero <lekktu@gmail.com>
1709
1710 * movemail.c (error): Avoid warning when there are no args.
1711
5fee75d4
JB
17122010-06-11 Juanma Barranquero <lekktu@gmail.com>
1713
1714 * makefile.w32-in (lisp2): Fix references to vc/vc-hooks.elc
1715 and vc/ediff-hook.elc.
1716
3085237c
DN
17172010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1718
1719 * ntlib.h: Remove code dealing with BSTRING.
1720
0191e222
CY
17212010-05-29 Chong Yidong <cyd@stupidchicken.com>
1722
1723 * emacsclient.c (longopts, decode_options, print_help_and_exit):
1724 New arg `-parent-id'.
1725 (main): Send parent-id to Emacs.
1726
81ac4f35
GM
17272010-05-27 Glenn Morris <rgm@gnu.org>
1728
1729 * Makefile.in (distclean): No more Makefile.c.
1730
4e3028f8
JD
17312010-05-22 Jan Djärv <jan.h.d@swipnet.se>
1732
1733 * Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPS): New (Bug #6246).
1734 (all): Depend onSTAMP_INST_SCRIPTS, STAMP_SCRIPS (Bug #6246).
1735 (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
1736 New rules (Bug #6246).
1737 (clean): Remove stamp-* (Bug #6246).
1738
44b031a6
GM
17392010-05-12 Glenn Morris <rgm@gnu.org>
1740
1741 * Makefile.in (INSTALLABLES): Remove @LIB_SRC_EXTRA_INSTALLABLES@.
1742
acddf8ae
GM
17432010-05-11 Glenn Morris <rgm@gnu.org>
1744
c88b05a9
GM
1745 * Makefile.in (.m.o): Remove, there are no .m files.
1746 (BASE_CFLAGS): New variable.
1747 (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Use $BASE_CFLAGS.
1748 (check): Update the message.
1749 (update-game-score${EXEEXT}): Do not use $MOVE_FLAGS.
1750
d3b23034
GM
1751 * Makefile.in: Convert comments to makefile format.
1752
acddf8ae
GM
1753 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1754 (config.h) [MSDOS]: Do not include.
1755
7490175b
GM
17562010-05-10 Glenn Morris <rgm@gnu.org>
1757
97efb629
GM
1758 * Makefile.in (LIBS_SYSTEM): Set with configure, not cpp.
1759 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1760 (NOT_C_CODE): Remove, no longer used.
1761 (config.h) [!MSDOS]: No longer include.
1762 (LOADLIBES): Use LIBS_SYSTEM as a variable.
1763
7490175b
GM
1764 * Makefile.in (BLESSMAIL_TARGET): Set with configure, not cpp.
1765
7b42b29f
GM
17662010-05-08 Glenn Morris <rgm@gnu.org>
1767
1768 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1769
61a808e8
CY
17702010-05-07 Chong Yidong <cyd@stupidchicken.com>
1771
1772 * Version 23.2 released.
1773
f6c0ee20
GM
17742010-05-06 Glenn Morris <rgm@gnu.org>
1775
1776 * Makefile.in: Minimize blessmail-related cpp usage.
1777 (BLESSMAIL_TARGET): New variable.
1778 (MOVEMAIL_NEEDS_BLESSING): Remove, replace by above variable.
1779 (blessmail): Always define this rule.
1780 (need-blessmail): New rule, split out from maybe-blessmail.
1781 (maybe-blessmail): Use BLESSMAIL_TARGET.
1782
49628785
GM
17832010-05-04 Glenn Morris <rgm@gnu.org>
1784
1785 * Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than
1786 @c_switch_system@, @c_switch_machine@.
1787
7e10844c
DN
17882010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1789
1790 * Makefile.in (LIBS_MACHINE): Remove all uses, unused.
1791
4794a582
DN
17922010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1793
1794 * Makefile.in (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Move to the
1795 non-cpp section.
1796
76bd8202
DN
17972010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1798
1799 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): Define using
1800 autoconf, not cpp.
1801 (ALL_CFLAGS): Use them as make variables.
1802
53cfe624 18032010-04-07 Christoph Scholtes <cschol2112@googlemail.com>
42d3cab7
C
1804
1805 * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Use parenthesis
1806 for macros for nmake compatibility.
1807
b372fceb
JB
18082010-04-03 Juanma Barranquero <lekktu@gmail.com>
1809
1810 Add stubs for Windows, required after CVE-2010-0825 change.
1811 * ntlib.c (getgid, getegid, setegid): New stubs.
1812 * ntlib.h (getgid, getegid, setegid): Declare them.
1813
51a91f9d
CY
18142010-04-02 Dan Rosenberg <dan.j.rosenberg@gmail.com> (tiny change)
1815
b166dcd8
KC
1816 * movemail.c (main): Check return values of setuid.
1817 Avoid possibility of symlink attack when movemail is setgid mail
51a91f9d
CY
1818 (CVE-2010-0825).
1819
42a2c622
DN
18202010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1821
1822 Remove extern errno declarations.
1823 * movemail.c:
1824 * etags.c:
1825 * emacsclient.c: Remove extern errno declarations.
1826
5e58e3a4
GM
18272010-03-20 Glenn Morris <rgm@gnu.org>
1828
1829 * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
1830 (LIBHESIOD, LIBRESOLV): Make previous change a bit more friendly by
1831 defining these as Makefile variables.
1832 (LIBS_MOVE): Add LIBS_MAIL into this.
1833 (movemail${EXEEXT}): Just use LIBS_MOVE, not LIBS_MAIL as well.
1834
aded53ff
GM
18352010-03-18 Glenn Morris <rgm@gnu.org>
1836
1837 * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
1838 (HESIODLIB, LIBS_MAIL): Set using autoconf rather than cpp.
1839 (BASE_CFLAGS): Remove (identical to CPP_CFLAGS).
1840
f8388570
TO
18412010-03-18 Tetsurou Okazaki <okazaki@be.to> (tiny change)
1842
1843 * Makefile.in (uninstall): Handle the case where archlibdir does not
1844 exist. (Bug#5720)
1845
288f9fc0
CY
18462010-03-10 Chong Yidong <cyd@stupidchicken.com>
1847
1848 * Branch for 23.2.
1849
f9b84f9f
CY
18502010-02-20 Kevin Ryde <user42@zip.com.au>
1851
1852 * etags.c (Scheme_functions): Don't loop past a null character
1853 (Bug#5601).
1854
c14902e0 18552010-01-29 Kester Habermann <kester@linuxtag.org> (tiny change)
9d77a91f 1856
a628ad9d 1857 * etags.c (Fortran_functions): Handle recursive keyword (Bug#5484).
9d77a91f 1858
6589a2f9
GM
18592010-01-11 Glenn Morris <rgm@gnu.org>
1860
1861 * ebrowse.c (version):
1862 * etags.c (print_version):
1863 * rcs2log (Copyright): Set copyright year to 2010.
1864
03dcfe01
CY
18652009-12-09 David Robinow <drobinow@gmail.com> (tiny change)
1866
1867 * makefile.w32-in: Use parenthesis for macros for nmake
1868 compatibility.
1869
5ce6e4f4 18702009-11-23 Tobias Ringström <tobias@ringis.se> (tiny change)
46f3381a 1871
f7e0618c 1872 * etags.c (absolute_filename): Use memmove if we have it for
46f3381a
JD
1873 overlapping copy.
1874
f6195dfb
DN
18752009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1876
1877 * make-docfile.c (scan_lisp_file): Also look for `defvaralias'.
1878
b53f6df2
JB
18792009-10-15 Juanma Barranquero <lekktu@gmail.com>
1880
1881 * .gitignore: Add echolisp.tmp.
1882
9fc3db2b
GM
18832009-10-15 Glenn Morris <rgm@gnu.org>
1884
5f54cae6
GM
1885 * emacsclient.c (print_help_and_exit): Fix bug report instructions.
1886
9fc3db2b
GM
1887 * makefile.w32-in (echolisp): New rule.
1888 (clean): Delete echolisp.tmp.
1889
614bd9cf
EZ
18902009-09-27 Eli Zaretskii <eliz@gnu.org>
1891
1892 * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Add term/internal.elc,
1893 term/pc-win.elc, emacs-lisp/easymenu.elc, and term/ns-win.elc, to
1894 be consistent with src/Makefile.in.
1895
24e9e996
SM
18962009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1897
1898 * update-game-score.c (main): Sort scores before trimming them,
1899 reported by Jason Feng <jfeng@ozbert.com> (bug#4397).
1900
c5a139ca
GM
19012009-09-09 Glenn Morris <rgm@gnu.org>
1902
1903 * Makefile.in ($(DESTDIR)${archlibdir}): Set umask to world-readable
1904 before creating directories and game score files.
1905
a8a8ec61
GM
19062009-08-19 Glenn Morris <rgm@gnu.org>
1907
0916a29e 1908 * cvtmail.c: Remove file.
a8a8ec61
GM
1909 * Makefile.in (UTILITIES): Remove cvtmail.
1910 (cvtmail${EXEEXT}): Remove.
1911
678bc1f5
CY
19122009-07-08 E. Jay Berkenbilt <ejb@ql.org> (tiny change)
1913
1914 * b2m.c (main): Ensure that each message ends in two newlines.
1915
0a3472c7
JR
19162009-07-03 Jason Rumney <jasonr@gnu.org>
1917
1918 * emacsclient.c (w32_set_user_model_id): Use standard types.
1919
f2d6b714
EZ
19202009-07-03 Eli Zaretskii <eliz@gnu.org>
1921
1922 * makefile.w32-in (WINNT_SUPPORT): Add common-win.elc, like
1923 src/Makefile.in did.
1924
ff90fbde
JR
19252009-06-30 Jason Rumney <jasonr@gnu.org>
1926
1927 * emacsclient.c (w32_give_focus): Use GetModuleHandle for library
1928 that is already loaded.
1929 (w32_set_user_model_id): New function.
1930 (main): Use it to associate emacsclient with emacs (bug#1849).
1931
e0f59195
JM
19322009-06-29 Jim Meyering <meyering@redhat.com>
1933
1934 Remove useless if-before-free test.
1935 * make-docfile.c (scan_lisp_file): Remove useless test.
1936
f5f20f6c
DN
19372009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1938
1939 * Makefile.in (movemail.o): Don't pass -Demacs, unused.
1940
70243478
CY
19412009-06-21 Chong Yidong <cyd@stupidchicken.com>
1942
1943 * Branch for 23.1.
1944
fa44da6e
AR
19452006-06-09 Adrian Robert <Adrian.B.Robert@gmail.com>
1946
1947 * mac-fix-env.m:
1948 * Makefile.in (mac-fix-env): Remove.
1949
a7f2b0b1
AR
19502006-06-06 David Reitter <david.reitter@gmail.com>
1951
1952 * Makefile.in (mac-fix-env): Compile it using ALL_CFLAGS.
1953
9dfda22f
JB
19542009-04-20 Juanma Barranquero <lekktu@gmail.com>
1955
1956 * emacsclient.c (print_help_and_exit): Fix typo and tabify (careful
1957 spacing is required in the message output, as the comment suggests).
1958
24d5010d
CY
19592009-04-20 Chong Yidong <cyd@stupidchicken.com>
1960
1961 * emacsclient.c (print_help_and_exit): Clarify argument placement
1962 for short option names.
1963
6133a1a9
DN
19642009-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1965
1966 * emacsclient.c (print_help_and_exit): Fix typo.
1967
22749e9a
EZ
19682009-03-21 Eli Zaretskii <eliz@gnu.org>
1969
1970 * ntlib.c (setuid): Argument is now unsigned.
1971 (getuid): Return value is now unsigned.
1972 (getpwuid): Argument is now unsigned.
1973 (fchown): UID and GID arguments are now unsigned.
1974
1975 * ntlib.h (fchown): UID and GID arguments are now unsigned.
1976 (getuid): Return value is now unsigned.
1977 (setuid): Argument is now unsigned.
1978 (getpwuid): Remove prototype (it's declared in nt/inc/pwd.h).
1979
b57ac69d 19802009-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
6cde1b21
JB
1981
1982 * emacsclient.c (main): Revert part of last change, so
1983 drive-relative file names again work on Windows.
1984
ba528748
SM
19852009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1986
1987 * emacsclient.c (main): Always pass cwd via "-dir". Pass the file
1988 names without prepending cwd to them, so Emacs uses its customary
1989 rules to determine how to interpret the file name.
1990
f213f2c0
GM
19912009-03-04 Glenn Morris <rgm@gnu.org>
1992
1993 * movemail.c (main) [MAIL_USE_POP]: Add -r to usage message.
1994
8ee7d7be
CY
19952009-02-13 Sven Joachim <svenjoac@gmx.de>
1996
1997 * movemail.c: Include time.h unconditionally.
1998 (main): Use time_t for time variables.
1999
d228a23c
GM
20002009-02-11 Glenn Morris <rgm@gnu.org>
2001
2002 * movemail.c (mbx_delimit_begin): Also write the current time.
2003
3f32be22
GM
20042009-02-10 Glenn Morris <rgm@gnu.org>
2005
2006 * movemail.c (mbx_delimit_begin, mbx_delimit_end): Write mbox rather
2007 than Babyl format. (Bug#2196)
2008
e7534fc4
AR
20092009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2010
2011 * emacsclient.c (decode_options): Use a dummy display name under
2012 NS/Cocoa.
2013
9eb67dd9
CY
20142009-01-14 Lars Rasmusson <lars.rasmusson@gmail.com> (tiny change)
2015
2016 * ebrowse.c (matching_regexp): Fix OB1 error.
2017
b433a991
GM
20182009-01-05 Glenn Morris <rgm@gnu.org>
2019
2020 * ebrowse.c (version):
2021 * etags.c (print_version):
2022 * rcs2log (Copyright): Update copyright for 2009.
2023
81f82586
CY
20242009-01-01 Chong Yidong <cyd@stupidchicken.com>
2025
2026 * movemail.c (main): Fatal if hard links cannot be created.
2027
fd95644b
DN
20282008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2029
2030 * emacsclient.c (start_daemon_and_retry_set_socket): Improve error
2031 checking.
2032
67c1df01
DN
20332008-12-14 Dan Nicolaescu <dann@ics.uci.edu>
2034
2035 * emacsclient.c: Include syswait.h instead of sys/types.h.
2036
f0131492 20372008-12-11 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
5445ab06 2038
d4835507
JB
2039 * emacsclient.c (WCONTINUED): New compatibility define
2040 for older systems.
5445ab06 2041
d50299d5
DN
20422008-12-10 Dan Nicolaescu <dann@ics.uci.edu>
2043
2044 * emacsclient.c (main): Fix previous change.
2045
52016647
JB
20462008-12-10 Juanma Barranquero <lekktu@gmail.com>
2047
2048 * emacsclient.c (main): Fix mindless breakage where emacsclient
2049 does not work *at all* on Windows, even if it *can* connect.
2050
802bdb3c
DN
20512008-12-10 Dan Nicolaescu <dann@ics.uci.edu>
2052
2053 * emacsclient.c (EMACS_DAEMON): Remove definition.
2054 (decode_options): Do not allow an empty alternate_editor on
2055 WINDOWSNT.
2056 (print_help_and_exit): Replace EMACS_DAEMON with WINDOWSNT.
2057 (start_daemon_and_retry_set_socket): Likewise.
45ce4570 2058 (main): Fail in case of not being able to connect.
802bdb3c 2059
c3f995a2
JB
20602008-12-10 Juanma Barranquero <lekktu@gmail.com>
2061
2062 * emacsclient.c [!WINDOWSNT] (EMACS_DAEMON): New define.
2063 Changes when EMACS_DAEMON is not defined:
2064 (print_help_and_exit): Don't add daemon information to help.
2065 (start_daemon_and_retry_set_socket): Make a no-op.
2066 (main): Don't set `start_daemon_if_needed' (which is initialized to 0).
2067
636b507b
DN
20682008-12-10 Dan Nicolaescu <dann@ics.uci.edu>
2069
2070 * emacsclient.c (print_help_and_exit): Describe what an empty
2071 string argument does for --alternate-editor.
2072 (set_socket): Make it possible to not exit in case of an error.
2073 (start_daemon_and_retry_set_socket): New function.
2074 (main): Use it. Restore the NULL value for socket_name and
2075 server_file after the set_socket call.
2076
448d4085
DN
20772008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2078
7b641241 2079 * emacsclient.c: Include <arpa/inet.h>.
448d4085 2080
938ebc4f
DN
20812008-12-01 Dan Nicolaescu <dann@ics.uci.edu>
2082
2083 * make-docfile.c (scan_lisp_file): Use xmalloc instead of malloc.
2084
3d864325
GM
20852008-11-22 Derek Peschel <dpeschel@eskimo.com> (tiny change)
2086
2087 * etags.c (add_regex): Pass correct length to re_compile_pattern.
2088
48c2dc68
CY
20892008-11-02 Chong Yidong <cyd@stupidchicken.com>
2090
2091 * emacsclient.c (window_system): Delete redundant variable.
2092 (decode_options): Don't use it.
2093 (find_tty): New function.
2094 (main): Use find_tty, and don't use window_system.
2095
d41784ee
EZ
20962008-11-01 Eli Zaretskii <eliz@gnu.org>
2097
2098 * emacsclient.c (main) [WINDOWSNT]: Don't ifdef away the call to
2099 `ttyname'.
2100 (w32_getenv): Treat $TERM specially: if not found in the
2101 environment and in the Registry, return "w32console".
2102 (ttyname) [WINDOWSNT]: New function.
2103
322ca650
AS
21042008-10-31 Andreas Schwab <schwab@suse.de>
2105
2106 * emacsclient.c (main): Don't force sending tty when in eval mode.
2107
8a8a7cd3
CY
21082008-10-30 Chong Yidong <cyd@stupidchicken.com>
2109
2110 * emacsclient.c (main): If using the current frame, send tty
2111 information to Emacs in case daemon mode needs to occupy this tty.
2112
f8baa639
JB
21132008-10-29 Juanma Barranquero <lekktu@gmail.com>
2114
bc558f3e
JB
2115 * emacsclient.c (EXTRA_SPACE): New macro.
2116 (get_server_config, set_local_socket): Use it.
2117
f8baa639
JB
2118 * makefile.w32-in ($(BLD)/sorted-doc.$(O)): Remove spurious backslash.
2119 Reported by Guillaume Conjat <gconjat.ext@orange-ftgroup.com>.
2120
f77b11a0
JB
21212008-10-29 Ulrich Mueller <ulm@gentoo.org>
2122
2123 * emacsclient.c (set_local_socket): Use TMPDIR (default /tmp)
2124 instead of hardcoded /tmp.
2125
dc1cd5f7
DN
21262008-10-13 Dan Nicolaescu <dann@ics.uci.edu>
2127
2128 * emacsclient.c (longopts, print_help_and_exit): Add -nw.
2129 (decode_options): Use getopt_long_only.
2130
7a09249b
EZ
21312008-09-30 Eli Zaretskii <eliz@gnu.org>
2132
2133 * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove ccl.elc and
2134 codepage.elc.
2135
997ec957
CY
21362008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2137
2138 * emacsclient.c (main): Use stdout rather than stdin to obtain the
2139 terminal (bug#427).
2140
0d80bf29
FP
21412008-08-25 Francesco Potortì <pot@gnu.org>
2142
2143 * etags.c (main): Do not use static space for the tagfile string.
2144
34a23e94
FP
21452008-08-17 Francesco Potortì <pot@gnu.org>
2146
2147 * etags.c (main): Use canonicalize_filename on tags file name.
2148 (relative_filename): Revert 3.85: do not collapse slashes here.
2149 (absolute_dirname): Remove useless call to canonicalize_filename.
2150 (canonicalize_filename): Collapse multiple slashes here.
2151
48fad8e8
DN
21522008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2153
10d1d0af
JB
2154 * Makefile.in (INSTALLABLES): Add LIB_SRC_EXTRA_INSTALLABLES.
2155 Do not special case for NS_IMPL_COCOA.
48fad8e8 2156
6088b51f 21572008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
f4494e84
AR
2158
2159 * Makefile.in (CFLAGS): Drop -universal under NS_IMPL_COCOA.
2160 (.m.o): Dispense with GNUstep-specific flags.
2161
39b8bb9b
CY
21622008-08-05 Ulrich Mueller <ulm@gentoo.org>
2163
2164 * pop.c (socket_connection): Add conditionals for
2165 HAVE_KRB5_ERROR_TEXT and HAVE_KRB5_ERROR_E_TEXT to support
2166 compilation with MIT Kerberos and Heimdal, respectively.
2167
7c2fb837
DN
21682008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
2169
2170 * etags.c:
2171 * emacsclient.c: Remove VMS support.
2172
9e2a2647
DN
21732008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2174
2175 Remove support for Mac Carbon.
2176 * makefile.w32-in:
2177 * emacsclient.c: Remove code for Carbon.
2178
7f619bab
DN
21792008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
2180
2181 * Makefile.in (mac-fix-env): Remove #ifdef around rule.
2182
32cc3925
AS
21832008-07-17 Andreas Schwab <schwab@suse.de>
2184
2185 * Makefile.in (INSTALL_SCRIPT): Remove duplicate definition.
2186 (LIB_STANDARD_LIBSRC): Don't define.
2187 (LOADLIBES): Remove LIB_STANDARD_LIBSRC.
2188
ba60bd44 21892008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
122e9f8f
AR
2190
2191 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
2192 NS_IMPL_COCOA.
2193
50863f58
DN
21942008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
2195
ba60bd44
JB
2196 * ntlib.h (fcloseall, fgetchar, flushall, fputchar, putw):
2197 Remove, unused.
50863f58 2198
ba60bd44 21992008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
edfda783
AR
2200
2201 * .cvsignore: Add mac-fix-env.
2202 * mac-fix-env.m: New file, automatically update
2203 ~/.MacOSX/environment.plist on OS X systems to expose environment
2204 variables inside Emacs started from icon.
2205 * Makefile.in: Add -universal to CFLAGS on OS X, add mac-fix-env to
2206 programs to build.
2207 * make-docfile.c: Add .m to list of file extensions.
2208
bba104c1
DN
22092008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2210
2211 * movemail.c (main): Use int instead of WAITTYPE.
2212
da007124
JB
22132008-07-05 Juanma Barranquero <lekktu@gmail.com>
2214
2215 * makefile.w32-in (OTHER_PLATFORM_SUPPORT):
2216 Remove vmsproc.el and vms-patch.el.
2217
c9fc02c7
JB
22182008-06-26 Juanma Barranquero <lekktu@gmail.com>
2219
2220 * makefile.w32-in (obj): Remove w32bdf.o.
2221
f2a77c3a
DN
22222008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
2223
2224 * fakemail.c: Remove references to obsolete variables.
2225
c2cd06e6
JM
22262008-06-02 Jim Meyering <meyering@redhat.com>
2227
e914c409 2228 * ebrowse.c (xfree): Remove definition; s/xfree/free/.
5c19cd0b 2229
e914c409 2230 Remove useless if-before-free tests.
70fdbb46
JM
2231 * ebrowse.c (xfree): Likewise.
2232 * etags.c (process_file_name, free_tree, free_fdesc): Likewise.
c2cd06e6 2233 (popclass_above, Prolog_functions, Erlang_functions): Likewise.
70fdbb46 2234 * pop.c (pop_quit): Likewise.
c2cd06e6 2235
01b996ad
JB
22362008-05-30 Juanma Barranquero <lekktu@gmail.com>
2237
2238 * makefile.w32-in (lisp2): Add minibuffer.elc.
2239
2926947a
SM
22402008-05-29 Tom Tromey <tromey@redhat.com>
2241
2242 * etags.c (relative_filename): Treat "///" like "/" in filenames.
2243
10fea9c4
EZ
22442008-05-09 Eli Zaretskii <eliz@gnu.org>
2245
2246 * ntlib.c: Include sys/types.h, sys/stat.h, and errno.h.
2247 (IS_DIRECTORY_SEP): New macro.
2248 (convert_time, is_exec, stat): New functions.
2249
86914123
EZ
22502008-05-08 Eli Zaretskii <eliz@gnu.org>
2251
2252 * makefile.w32-in (lisp2): Rename epa-file-hook.elc to epa-hook.elc.
2253
58bb7d50
EZ
22542008-05-03 Eli Zaretskii <eliz@gnu.org>
2255
2256 * makefile.w32-in (lisp2): Add epa-file-hook.elc, to track the
2257 corresponding change in src/Makefile.in.
2258
63b9b605
GM
22592008-04-24 Adam Gołębiowski <adamg@pld-linux.org> (tiny change)
2260
2261 * Makefile.in (etags${EXEEXT}, ctags${EXEEXT}): Fix quote typo.
2262
4429f88c
JR
22632008-04-10 Jason Rumney <jasonr@gnu.org>
2264
2265 * makefile.w32-in (CLIENTRES): New variable and target.
2266 (TRES): Remove.
2267 ($(BLD)/emacsclientw.exe): Use $(CLIENTRES) instead of $(TRES).
2268
14b11401
SM
22692008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2270
2271 * vcdiff: Use "sccs get" rather than "get"; leave PATH alone.
2272
95de358c
RF
22732008-04-18 Steve Grubb <sgrubb@redhat.com> (tiny change)
2274
2275 * vcdiff: Use mktemp (CVE-2008-1694).
2276
6948400c
JR
22772008-04-09 Jason Rumney <jasonr@gnu.org>
2278
2279 * makefile.w32-in (distclean, maintainer-clean): New targets.
2280
afd27920
GM
22812008-03-13 Glenn Morris <rgm@gnu.org>
2282
2283 * makefile.w32-in (VERSION): Set to 23.0.60.
2284
3d193d0f
JB
22852008-03-04 Juanma Barranquero <lekktu@gmail.com>
2286
2287 * .cvsignore: Add oo.
2288
1797886f
SM
22892008-02-27 Yuri Shtil <yuris@juniper.net> (tiny change)
2290
2291 * etags.c (Perl_functions): Fix call to skip_spaces.
2292
9d2818d6
DN
22932008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2294
2295 * Makefile.in (NO_SHORTNAMES):
2296 * emacsclient.c (NO_SHORTNAMES):
2297 * fakemail.c (NO_SHORTNAMES):
2298 * make-docfile.c (NO_SHORTNAMES):
2299 * movemail.c (NO_SHORTNAMES):
2300 * pop.c (NO_SHORTNAMES): Remove references to obsolete variable.
2301
79d48c1a
JR
23022008-02-23 Jason Rumney <jasonr@gnu.org>
2303
2304 * makefile.w32-in (MOUSE_SUPPORT): Remove duplicate tooltip.elc.
2305 (MSDOS_SUPPORT, VMS_SUPPORT): Remove.
290afd83 2306 (OTHER_PLATFORM_SUPPORT): Replace above. Add X specific files too.
79d48c1a
JR
2307 (lisp2): Add new languages.
2308 ($(DOC)): Use OTHER_PLATFORM_SUPPORT.
2309
9c61c734
JB
23102008-02-22 Juanma Barranquero <lekktu@gmail.com>
2311
2312 * makefile.w32-in (lisp2): Remove devanagari.el, kannada.el,
2313 malayalam.el, and tamil.el. Add sinhala.el.
2314
50f271cb
JB
23152008-02-20 Juanma Barranquero <lekktu@gmail.com>
2316
2317 * emacsclient.c (main) [WINDOWSNT]: Understand DRIVE:NAME,
2318 where NAME is relative to DRIVE'S current directory.
2319
d07529f3
JB
23202008-02-15 Juanma Barranquero <lekktu@gmail.com>
2321
2322 * emacsclient.c (print_help_and_exit): Show -d option on Windows.
2323
45c1955d
DN
23242008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
2325
2326 * fakemail.c: Undo previous change.
2327
deeaffe1
DN
23282008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
2329
4624371d
DN
2330 * fakemail.c (MAIL_PROGRAM_NAME): Remove unused conditional.
2331 (main): Replace MAIL_PROGRAM_NAME with its value.
2332
d07529f3 2333 * Makefile.in (REGEXP_IN_LIBC): Remove reference to obsolete variable.
deeaffe1 2334
9997dc15
SM
23352008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
2336
2337 * emacsclient.c (decode_options): Pass --display implicitly if -c
2338 is specified. Only set tty if -t or -c is specified.
2339
0c55bf82
JR
23402008-02-04 Jason Rumney <jasonr@gnu.org>
2341
2342 * makefile.w32-in (lisp1): Use (), not {}.
2343
31cdf671
CY
23442008-02-04 Tom Tromey <tromey@redhat.com>
2345
d07529f3
JB
2346 * etags.c: Add "GTY" as synonym for __attribute__.
2347 Update gperf output.
31cdf671 2348
9303f985 23492008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2 2350
c4cc8b9a 2351 * makefile.w32-in (obj): Sync with src/Makefile.in.
aca7a3d2
MB
2352 (TOOLTIP_SUPPORT, WINDOW_SUPPORT): New definitions.
2353 (WINNT_SUPPORT): Add term/w32-win.elc.
2354 (lisp1, lisp2): Sync with lisp in src/Makefile.in.
2355
9303f985 23562008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2 2357
d07529f3 2358 * makefile.w32-in (obj): Add font.o and w32font.o.
aca7a3d2 2359
d07529f3 23602008-02-01 Zhang Wei <id.brep@gmail.com> (tiny change)
aca7a3d2 2361
290afd83 2362 * makefile.w32-in (lisp1): Delete ucs-tables.elc,
aca7a3d2
MB
2363 utf-8.elc, and latin-*.el.
2364
0ea5797a
SM
23652008-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2366
bcc891c2 2367 * emacsclient.c (decode_options): Default to NULL display, as Emacs-22.
0ea5797a
SM
2368 Allow the -d option under w32 again, for those rare cases where it
2369 actually does make sense.
2370
5ab73228
JB
23712008-01-25 Juanma Barranquero <lekktu@gmail.com>
2372
2373 * emacsclient.c (set_tcp_socket): Don't send "\n" after
2374 the authentication string; there's no need to haste.
2375
702123a8
CY
23762008-01-22 Chong Yidong <cyd@stupidchicken.com>
2377
2378 * pop.c (pop_stat, pop_last): Fix last fix.
2379
76ed5e01
DN
23802008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
2381
2382 * movemail.c: Remove references to XENIX.
2383
e39a993c
DN
23842008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
2385
2386 * movemail.c:
2387 * make-docfile.c: Remove reference to symbols defined by systems
2388 not supported anymore: MAC_OS8, XENIX and STRIDE.
2389
0ebec7d3
EZ
23902008-01-12 Eli Zaretskii <eliz@gnu.org>
2391
2392 * emacsclient.c (decode_options) [WINDOWSNT]: Don't use the value
2393 of DISPLAY in the environment. Don't support -d.
2394 (print_help_and_exit) [WINDOWSNT]: Don't show the --display option.
2395 (longopts) [WINDOWSNT]: Remove --display.
2396
6eae3ad4
CY
23972008-01-10 Chong Yidong <cyd@stupidchicken.com>
2398
2399 * pop.c (pop_stat, pop_last): Check validity of string-to-integer
2400 conversion. Mistakes spotted by Nico Golde.
2401
78da39c6
GM
24022008-01-09 Glenn Morris <rgm@gnu.org>
2403
2404 * emacsclient.c: Add missing final newlines to message calls.
2405
34a14ec9 24062008-01-09 Daniel Hackney <dan@haxney.org> (tiny change)
78da39c6
GM
2407
2408 * emacsclient.c (set_socket): Add final newline to socket error message.
2409
a408ea17
GM
24102008-01-04 Glenn Morris <rgm@gnu.org>
2411
07655e62
JB
2412 * ebrowse.c (version) <emacs_copyright>: New variable.
2413 Just use current year for copyright.
a408ea17
GM
2414
2415 * etags.c (print_version):
2416 * rcs2log (Copyright): Update to 2008.
2417
0dc7a8bc
JR
24182007-11-28 Jason Rumney <jasonr@gnu.org>
2419
2420 * makefile.w32-in (VMS_SUPPORT): No longer byte-compiled.
2421
880820fe 24222007-11-27 Jan Djärv <jan.h.d@swipnet.se>
7291159e
JD
2423
2424 * pop.c (socket_connection): Remove AI_ADDRCONFIG.
2425
880820fe 24262007-11-19 Jan Djärv <jan.h.d@swipnet.se>
ee15f312
JD
2427
2428 * pop.c (socket_connection): Move realhost out of #ifdefs.
2429 Set realhost both for HAVE_GETADDRINFO and !HAVE_GETADDRINFO.
2430
880820fe 24312007-11-18 Jan Djärv <jan.h.d@swipnet.se>
33a2a872
JD
2432
2433 * pop.c (socket_connection): Use getaddrinfo if available.
2434
880820fe 24352007-11-22 Francesco Potortì <pot@gnu.org>
63f018cd 2436
65841dd8 2437 * etags.c (default_C_help) [CTAGS]: Differentiate the help string,
63f018cd 2438 as the defaults in ctags are different from etags.
63f018cd 2439
880820fe 24402007-11-15 Francesco Potortì <pot@gnu.org>
21e14641
FP
2441
2442 * etags.c: Make prototypes for extern definitions, and add all
2443 that are needed to quench warnings on 64-bit.
2444 (main): Use the same defaults for ctags as for etags: find
2445 typedefs, structure tags, macro constants, enum constants, struct
2446 members and global variables.
2447 (make_C_tag) [DEBUG]: Add debugging printout.
2448 (C_entries): In case '}' decrement bracelev before testing it.
2449
7455effc
FP
24502007-11-15 Masatake YAMATO <jet@gyve.org>
2451
2452 * etags.c (C_entries): In case '}', set fvdef to fvnone
2453 unconditioned to (!ignoreindent && lp == newlb.buffer + 1).
2454
04a697fe
DN
24552007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
2456
2457 * makefile.w32-in (obj): Remove sunfns.o.
2458
a2666217
JB
24592007-10-28 Juanma Barranquero <lekktu@gmail.com>
2460
2461 * makefile.w32-in (obj): Remove abbrev.o.
2462
7ce8671d
JB
24632007-10-26 Juanma Barranquero <lekktu@gmail.com>
2464
2465 * emacsclient.c: Add a wrapper for getenv so it also checks the
2466 registry on Windows. Suggestion and algorithm by Eli Zaretskii.
2467 Code partially based on w32_get_resource and init_environment (w32.c).
2468 (egetenv): New wrapper for getenv.
2469 (get_current_dir_name, decode_options, get_server_config)
2470 (set_local_socket, set_socket, main): Use egetenv, not getenv.
2471 (w32_get_resource, w32_getenv) [WINDOWSNT]: New functions.
2472
d22b00e5
JR
24732007-10-25 Jason Rumney <jasonr@gnu.org>
2474
2475 * emacsclient.c (sock_err_message): New function.
2476 (set_tcp_socket): Use it.
2477
c4b858e3
JB
24782007-10-09 Juanma Barranquero <lekktu@gmail.com>
2479
2480 * emacsclient.c (print_help_and_exit): Fix space to improve
2481 alignment in output messages.
2482
dbf60b07
JR
24832007-09-27 Jason Rumney <jasonr@gnu.org>
2484
2485 * makefile.w32-in (emacsclient, emacsclientw): Link to COMCTL32.
2486
2487 * emacsclient.c (w32_window_app): Init common controls when windowed.
2488
165e85b2
GM
24892007-09-21 Glenn Morris <rgm@gnu.org>
2490
2491 * emacstool.c: Remove file.
2492 * Makefile.in (emacstool, nemacstool, xvetool, xveterm):
2493 Delete targets built from emacstool.
2494
c1b8e896
SM
24952007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
2496
2497 * emacsclient.c (decode_options): -t implies -c.
2498
cb06b8dc
SM
24992007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
2500
2501 * emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP)
2502 (IS_ANY_SEP): Only define if !defined(HAVE_GET_CURRENT_DIR_NAME).
2503 (main_argc): Remove.
2504 (strprefix): Use strncmp.
2505
c801ad51
JR
25062007-09-20 Jason Rumney <jasonr@gnu.org>
2507
2508 * emacsclient.c (main) [SIGSTOP]: Change conditional from WINDOWSNT.
2509
31fa6595
SM
25102007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
2511
2512 * emacsclient.c (current_frame): Change the default.
2513 (longopts): Replace --current-frame by --create-frame.
2514 (decode_options): Reverse the meaning of -c.
2515 (print_help_and_exit): Update help text accordingly.
2516 (main): Remove the -version and -good-version messages.
2517
58573230
GM
25182007-09-12 Glenn Morris <rgm@gnu.org>
2519
2520 * Makefile.in (SOURCES, unlock, relock): Delete.
2521
bfd9ce71
GM
25222007-08-29 Glenn Morris <rgm@gnu.org>
2523
2524 * makefile.w32-in (VERSION): Increase to 23.0.50.
2525
8d9cc0b7
MB
25262007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
2527
2528 * emacsclient.c (w32_execvp): Move definition before use.
2529 (decode_options): Don't use a tty on mac carbon or windows.
2530
25312007-08-29 Jason Rumney <jasonr@gnu.org>
2532
31fa6595 2533 * emacsclient.c (SEND_STRING, SEND_QUOTED): Remove obfuscation macros.
35e951cd 2534 (quote_argument, set_tcp_socket, handle_sigcont, handle_sigtstp)
8d9cc0b7
MB
2535 (main): Expand removed macros inline.
2536 (main) [WINDOWSNT]: Don't call ttyname. Don't recognize -suspend
2537 option.
2538 (main) [NO_SOCKETS_IN_FILE_SYSTEM]: Don't call init_signals.
2539
880820fe 25402007-08-29 Károly Lőrentey <lorentey@elte.hu>
8d9cc0b7
MB
2541
2542 * emacsclient.c (signal.h): New include.
2543 (sys/stat.h, errno.h): Always include, even on WINDOWSNT.
31fa6595
SM
2544 (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP, IS_ANY_SEP):
2545 Copy definitions here from src/lisp.h.
2546 (main_argc, main_argv, current_frame, window_system, tty): New vars.
8d9cc0b7
MB
2547 (longopts): Add tty, current-frame.
2548 (xmalloc, xstrdup): New functions.
2549 (get_current_dir_name): New function, copied from src/sysdep.c.
2550 (decode_options): Set display from environment. Add tty and
2551 current_frame options. Make --no-wait imply --current-frame,
2552 except when it is the only option given. Make sure no frame is
2553 opened when --current-frame is set.
2554 (print_help_and_exit): Document tty and current-frame options.
2555 (fail): Change arguments to void.
2556 (main): When sockets are not defined, set main_argc, main_argv,
2557 and call fail() with no arguments.
2558 (emacs_socket): New variable (moved out from main `s').
2559 (quote_file_name): Rename to quote_argument.
2560 (quote_argument): New name for old quote_file_name.
2561 (unquote_argument, strprefix, pass_signal_to_emacs)
2562 (handle_sigcont, handle_sigtstp, init_signals): New functions.
2563 (set_local_socket): Initialize saved_errno to 0. If socket-name
2564 is too long, call `fail' rather than `exit'.
2565 (main): Doc update. Set main_argc, main_argv. New var `str'.
2566 Don't need a filename or argument if tty or window_system set.
2567 Call fail with no arguments. Use get_current_dir_name to send
2568 over the current directory. Send version number to Emacs for
2569 verification. If tty is set, check TERM, and pass name and type
2570 to Emacs. Pass window_system to Emacs. Move sending of eval to
2571 optind loop. Send -position, -file to Emacs. Call fsync after
31fa6595
SM
2572 fflush. Check for a client/server version match.
2573 Handle -emacs-pid, -window-system-unsupported, -print, -error, and
2574 -suspend commands. Don't exit prematurely on --no-wait, let Emacs
2575 close the connection for us. When creating a new frame, send
8d9cc0b7
MB
2576 environment and pwd to Emacs. Send current-frame to Emacs.
2577
ca4ea90f
EZ
25782007-08-25 Eli Zaretskii <eliz@gnu.org>
2579
2580 * Makefile.in (rcs2log, rcs-checkin, grep-changelog, vcdiff):
2581 Prepend "-" to the command, in case srcdir=. and file is copied
2582 into itself.
2583
cacc7b51
GM
25842007-07-25 Glenn Morris <rgm@gnu.org>
2585
2586 * Relicense all FSF files to GPLv3 or later.
2587
2588 * COPYING: Switch to GPLv3.
2589
880820fe 25902007-07-17 Francesco Potortì <pot@gnu.org>
180f5b99
FP
2591
2592 * etags.c (C_entries): Reset the fvdef machine when out of function.
21b2cdc7
FP
2593 (PRINT_UNDOCUMENTED_OPTIONS_HELP): #define as FALSE if undefined.
2594 (print_help): Use it in if() rather than #if.
2595 (print_help): Conditionally print help about --no-line-directive.
180f5b99 2596
9724908a
EZ
25972007-07-16 Eli Zaretskii <eliz@gnu.org>
2598
2599 * makefile.w32-in (clean): Don't delete *~.
2600
5cf9ca93
GM
26012007-06-07 Glenn Morris <rgm@gnu.org>
2602
2603 * etags.c (print_version): Add `emacs_copyright' string, for
2604 easier automatic updating.
2605
880820fe 26062007-05-18 Francesco Potortì <pot@gnu.org>
cabfc1bc
FP
2607
2608 * etags.c: Extern definitions of some more pointer functions for
2609 standalone compilation, especially important for 64bit platforms.
2610 (main, print_help): --members is now the default for etags.
2611 (C_entries): Parse start of C comment as a space == end of token.
2612 This is not necessary for C++ comment, already parsed as newline.
2613
07016031
GM
26142007-04-26 Glenn Morris <rgm@gnu.org>
2615
2616 * makefile.w32-in (VERSION): Increase to 22.1.50.
2617
7dfc4cda
CY
26182007-06-02 Chong Yidong <cyd@stupidchicken.com>
2619
2620 * Version 22.1 released.
2621
880820fe 26222007-02-26 Francesco Potortì <pot@gnu.org>
11d2d983 2623
d620ddb3 2624 * Makefile.in (etags, ctags): Define EMACS_NAME as "GNU Emacs".
11d2d983 2625
0971f887
GM
26262007-02-20 Ulrich Mueller <ulm@kph.uni-mainz.de> (tiny change)
2627
2628 * Makefile.in (EMACS, EMACSOPT): New variables.
2629 (blessmail): Use `--no-site-file' when compiling.
2630
880820fe 26312007-02-05 Francesco Potortì <pot@gnu.org>
933ccc8c
FP
2632
2633 * etags.c (default_C_help, Cplusplus_help, PHP_help, print_help)
2634 (main): Now --members is the default for etags, not for ctags yet.
2635
d881944f 26362007-02-04 Per Cederqvist <ceder@ingate.com> (tiny change)
953dea63 2637
47dad44f 2638 * etags.c (gperf, in_word_set): Change attribute for Java to
953dea63
FP
2639 (C_JAVA & ~C_PLPL). The previous change introduced 2004-09-13 was
2640 broken, as (C_JAVA & !C_PLPL) always evaluates to 0. This caused
2641 import, package, extends, implements and interface to be treated
2642 specially for all kinds of C-style files, not just Java files.
2643
880820fe 26442007-01-02 Francesco Potortì <pot@gnu.org>
ed8bbc0e 2645
47dad44f 2646 * etags.c (longopts): New undocumented option --no-duplicates.
ed8bbc0e
FP
2647 (no_duplicates): Static variables for the above option.
2648 (print_help): Do not print help for --no-warn, now undocumented.
2649 (add_node): Allow duplicate tags in ctags mode unless --no-duplicates.
56c0d866 2650 (main): Pass the -u option to sort in ctags mode.
ed8bbc0e 2651
880820fe 26522006-12-28 Francesco Potortì <pot@gnu.org>
18f9bf25
FP
2653
2654 * etags.c (readline): When creating a relative file name from a
2655 #line directive, leave the file name alone. The previous
a7c29764 2656 behavior was to make it relative to the tags file directory,
18f9bf25
FP
2657 under the hypothesis that the #line directive file name was
2658 relative to the directory of the tagged file. That hypothesis is
2659 wrong with Cpp and Lex.
17d5f8a6 2660 (Makefile_targets): Do not include spaces in tag names.
18f9bf25 2661
5e059fc1
EZ
26622006-12-22 Eli Zaretskii <eliz@gnu.org>
2663
2664 * makefile.w32-in (make-docfile, ctags, etags, ebrowse, hexl)
2665 (movemail, fakemail, sorted-doc, digest-doc, emacsclient)
47dad44f 2666 (test-distrib, $(DOC), all): Depend on stamp_BLD instead of $(BLD).
5e059fc1
EZ
2667 ($(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O))
2668 ($(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O))
2669 ($(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS))
2670 ($(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O))
2671 ($(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O)): Depend on stamp_BLD.
6808dce1 2672 (clean): Delete stamp_BLD.
5e059fc1 2673
880820fe 26742006-12-20 Francesco Potortì <pot@gnu.org>
bd3b41c6
FP
2675
2676 * etags.c (C_entries): DEFUN names were longer by one: corrected.
2677
0e0dced5
JB
26782006-12-18 Juanma Barranquero <lekktu@gmail.com>
2679
2680 * emacsclient.c [WINDOWSNT] (set_fg, get_wc): New variables.
2681 [WINDOWSNT] (w32_find_emacs_process, w32_give_focus): New functions.
2682 (main) [WINDOWSNT]: Remove code to release the focus; call
2683 w32_give_focus instead.
2684
4472aef4
JB
26852006-12-15 Juanma Barranquero <lekktu@gmail.com>
2686
2687 * emacsclient.c (w32_execvp): New function; wrapper for `execvp'.
2688 (execvp) [WINDOWSNT]: Redefine to `w32_execvp'.
2689 (fail): Remove Windows-specific fix (subsumed into w32_execvp).
2690 Suggestions and comment by Eli Zaretskii.
2691
12f7728e 26922006-12-06 Christoph Conrad <christoph.conrad@gmx.de>
c388769e
JB
2693
2694 * makefile.w32-in ($(BLD)/emacsclient.exe, $(BLD)/emacsclientw.exe):
2695 Use $(USER32) for compatibility with Visual Studio .NET 2003.
2696
310afa17
JB
26972006-11-30 Juanma Barranquero <lekktu@gmail.com>
2698
2699 * emacsclient.c (emacs_pid): New variable.
2700 (message): Remove leftover code.
2701 (get_server_config): Set emacs_pid. Don't allow Emacs to grab the
2702 focus yet; emacsclient can still display an informational message
2703 before sending requests to Emacs.
2704 (main): Allow Emacs to grab the focus. Simplify message() call.
2705
27062006-11-30 Michael Mauger <mmaug@yahoo.com>
2707
2708 * emacsclient.c (message): Make sure the message is properly
2709 written even if it contains printf escapes, and flush the result.
2710 (set_tcp_socket): Make the message for non-local connections
2711 informational rather than an error.
2712
8c57275b 27132006-11-28 Kevin Ryde <user42@zip.com.au>
9b492fad
FP
2714
2715 * etags.c (readline): Check for double quote after #line.
2716
880820fe 27172006-11-28 Jan Djärv <jan.h.d@swipnet.se>
9b492fad
FP
2718
2719 * etags.c (readline): sscanf could in principle return 2.
2720
880820fe 27212006-11-28 Francesco Potortì <pot@gnu.org>
9b492fad
FP
2722
2723 * etags.c (readline): lno is unsigned.
2724 (TeX_commands): Use p++ (rather than *p++) to increment p.
2725 (Lua_functions): Explicitly discard LOOKING_AT's return value.
2726
4d91c8f9
JB
27272006-11-27 Juanma Barranquero <lekktu@gmail.com>
2728
2729 * makefile.w32-in (TRES): New macro (copied from nt/makefile.w32-in).
2730 ($(TRES)): New rule (copied from nt/makefile.w32-in).
2731 ($(BLD)/emacsclientw.exe): Add dependency.
2732
340d34a5
EZ
27332006-11-27 Eli Zaretskii <eliz@gnu.org>
2734
d620ddb3 2735 * makefile.w32-in ($(BLD)/emacsclient.$(O)): Depend on makefile.w32-in.
340d34a5 2736
7dce1990
JB
27372006-11-25 Juanma Barranquero <lekktu@gmail.com>
2738
2739 * makefile.w32-in (VERSION): New macro.
2740 (ECLIENT_CFLAGS): Add -DVERSION.
2741
410797a5 27422006-11-25 Jason Rumney <jasonr@gnu.org>
402767e4
JR
2743
2744 * emacsclient.c (file_name_absolute_p) [WINDOWSNT]: Use isalpha().
2745
410797a5 27462006-11-24 Michael Mauger <mmaug@yahoo.com>
cb0297bb 2747
4472aef4
JB
2748 * emacsclient.c (file_name_absolute_p) [WINDOWSNT]: Support absolute
2749 file names with forward slashes.
cb0297bb 2750
30aa95ce
JB
27512006-11-23 Juanma Barranquero <lekktu@gmail.com>
2752
2753 * emacsclient.c (print_help_and_exit): Tweak message contents and
2754 tabs/spaces to improve alignment in message boxes.
2755
42073bfb
JB
27562006-11-22 Lennart Borgman <lennart.borgman.073@student.lu.se>
2757
2758 * emacsclient.c: Include <stdarg.h>.
2759 [WINDOWSNT]: Include <windows.h>.
2760 (w32_check_console_app): New function.
2761 (message): New function.
2762 (decode_options, print_help_and_exit, fail, main)
2763 (initialize_sockets, get_server_config, set_tcp_socket)
2764 (set_local_socket, set_socket): Use message().
2765
32dd9283 27662006-11-13 Jason Rumney <jasonr@gnu.org>
1ac3c910 2767
32dd9283
JR
2768 * emacsclient.c [WINDOWSNT]: Let config.h define HAVE_SOCKETS and
2769 HAVE_INET_SOCKETS.
2770
1bbea9fc
JB
27712006-11-13 Juanma Barranquero <lekktu@gmail.com>
2772
2773 * makefile.w32-in (emacsclient): Depend also on emacsclientw.exe.
2774 ($(BLD)/emacsclientw.exe): New target.
2775 (install): Install emacsclientw.exe.
2776 ($(BLD)/cvtmail.$(O), $(BLD)/emacstool.$(O)): Remove obsolete targets.
2777 (ECLIENT_CFLAGS): Remove redundant flags.
2778
2779 * emacsclient.c [WINDOWSNT]: Undef _WINSOCKAPI_ and _WINSOCK_H.
2780
a48db427
JR
27812006-11-13 Jason Rumney <jasonr@gnu.org>
2782
2783 * makefile.w32-in ($(BLD)/emacsclient.$(O)): Use CFLAGS.
2784
21f89bb7 27852006-11-10 David Reitter <david.reitter@gmail.com>
ed4a3730
JB
2786
2787 * emacsclient.c [!WINDOWSNT]: Include <sys/types.h>.
2788
d5abc12c
JB
27892006-11-08 Juanma Barranquero <lekktu@gmail.com>
2790
ed4a3730
JB
2791 * emacsclient.c (get_server_config) [WINDOWSNT]: Declare set_fg as
2792 FARPROC to avoid a compiler warning.
d5abc12c 2793
18b8c421
JB
27942006-11-07 Juanma Barranquero <lekktu@gmail.com>
2795
88b46d84
JB
2796 * emacsclient.c (get_server_config) [WINDOWSNT]: Look for the server
2797 file on APPDATA if it doesn't exist on HOME, even if HOME is defined.
2798
18b8c421
JB
2799 * emacsclient.c (get_server_config): Extract also the Emacs pid
2800 from the server file. On Windows, try to force the Emacs frame to
2801 the foreground.
2802
b03d27bd
JB
28032006-11-06 Juanma Barranquero <lekktu@gmail.com>
2804
21f89bb7 2805 * emacsclient.c (longopts) [!NO_SOCKETS_IN_FILE_SYSTEM]: Don't show
b03d27bd
JB
2806 option --socket-name.
2807 (decode_options): Don't get EMACS_SERVER_FILE here, it could override
2808 command line options.
21f89bb7 2809 (decode_options) [!NO_SOCKETS_IN_FILE_SYSTEM]: Don't parse "-s" option.
b03d27bd
JB
2810 (fail): Don't check for missing arguments, it is now done in set_socket.
2811 (file_name_absolute_p): New function (loosely based on the one in
2812 fileio.c).
2813 (initialize_sockets): Don't check for duplicate loading of Winsock.
2814 (get_server_config): Only try relative paths in the default
2815 directory locations.
2816 (set_tcp_socket): Don't call INITIALIZE(). Warn when connecting to
2817 a remote server.
2818 (set_socket): Call INITIALIZE(). Search explicit command-line
2819 arguments, then environment variable EMACS_SERVER_FILE, then implicit
2820 socket paths, before trying the alternate editor.
2821 (main): Use file_name_absolute_p.
2822
b20d6154
EZ
28232006-11-04 Eli Zaretskii <eliz@gnu.org>
2824
2825 * makefile.w32-in (../src/$(BLD)/temacs.exe): Create as temporary
2826 file if it doesn't already exist.
2827
9c92edca
JB
28282006-11-03 Juanma Barranquero <lekktu@gmail.com>
2829
2830 * emacsclient.c (initialize_sockets): Don't initialize Winsock
2831 more than once.
2832
b6ce9c46
JB
28332006-11-03 Mark Davies <mark@mcs.vuw.ac.nz>
2834
2835 * Makefile.in (INSTALL_SCRIPT): New macro.
2836 ($(DESTDIR)${archlibdir}, install): Use it, instead of INSTALL_PROGRAM.
2837
4418616b
JB
28382006-11-02 Juanma Barranquero <lekktu@gmail.com>
2839
2840 * grep-changelog: When called with no arguments (not even a
2841 filter), show help instead of blindingly dumping every single
2842 ChangeLog available. Doc fix. Update version.
2843
1e7823d0
JB
28442006-11-02 Tim Van Holder <tim.vanholder@gmail.com> (tiny change)
2845
2846 * emacsclient.c [WINDOWSNT]: Define HAVE_INET_SOCKETS.
2847 [!WINDOWSNT]: Include <netinet/in.h> if available.
2848 [HAVE_SOCKETS]: Also require HAVE_INET_SOCKETS.
2849 (IOCTL, IOCTL_BOOL_ARG): Remove.
2850 (set_tcp_socket): Don't set the socket in blocking mode.
2851 Remove c_arg.
2852
ebc20ca0
JB
28532006-11-01 Juanma Barranquero <lekktu@gmail.com>
2854
2855 * emacsclient.c (fail) [WINDOWSNT]: Force the first argv passed to
2856 execvp to point to alternate_editor (otherwise .BAT scripts can't run).
2857
880820fe 28582006-10-31 Óscar Fuentes <ofv@wanadoo.es> (tiny change)
411b80a5
JB
2859
2860 * emacsclient.c [WINDOWSNT]: Include <malloc.h> and <stdlib.h>.
2861 (close_winsock): Declare as __cdecl.
2862
880820fe 28632006-10-31 Jan Djärv <jan.h.d@swipnet.se>
95d0feaa
JB
2864
2865 * emacsclient.c [!WINDOWSNT]: Include <fcntl.h> if available.
2866 (set_tcp_socket): Prefer O_NONBLOCK, then O_NDELAY, then FIONBIO
2867 to set the socket in non-blocking mode.
2868
e35fc962
JB
28692006-10-31 Tim Van Holder <tim.vanholder@gmail.com> (tiny change)
2870
d4fa60c8 2871 * emacsclient.c [!WINDOWSNT]: Include <netinet/in.h> and <sys/ioctl.h>.
e35fc962
JB
2872 (INVALID_SOCKET): Define.
2873 (initialize_sockets): Put #endif at the right place.
2874 (set_local_socket): Use progname, not argv[0].
2875
ecc54057
JB
28762006-10-31 Juanma Barranquero <lekktu@gmail.com>
2877
2878 * makefile.w32-in (ALL): Add emacsclient.
2879 (ECLIENT_CFLAGS, ECLIENTOBJS): New macros.
2880 (emacsclient, $(BLD)/emacsclient.exe): New targets.
2881 (install): Install emacsclient.
2882
2883 * emacsclient.c: Add support for TCP sockets.
2884 (SEND_STRING, SEND_QUOTED, HSOCKET, CLOSE_SOCKET, IOCTL)
2885 (INITIALIZE): New macros.
2886 (IOCTL_BOOL_ARG): New typedef.
2887 (server_file): New global variable.
2888 (longopts): New option --server-file.
2889 (decode_options): Process new option --server-file and environment
2890 variable EMACS_SERVER_FILE.
2891 (print_help_and_exit): Document new option.
2892 (fail): If no connection available and no alternate editor,
2893 suggest using options to make them explicit.
2894 (AUTH_KEY_LENGTH, SEND_BUFFER_SIZE): New constants.
2895 (send_buffer, sblen): New variables.
31fa6595 2896 (send_to_emacs): New function to buffer output and send it with `send'.
ecc54057
JB
2897 (quote_file_name): Use SEND_STRING.
2898 (close_winsock, initialize_sockets): New functions to load and
2899 unload Winsock.
2900 (get_server_config, set_tcp_socket): New functions to create and
2901 set up TCP sockets.
2902 (set_local_socket): New function to create and set up Unix
2903 socket (code moved from previous implementation).
10d1d0af 2904 (set_socket): New function to choose between TCP and Unix sockets.
ecc54057
JB
2905 (main): Use SEND_STRING and SEND_QUOTED. Most code moved to
2906 set_local_socket. Use set_socket. Get answers from server.el with
2907 recv(), not file stream functions.
2908
70846e2a
EZ
29092006-10-09 Eli Zaretskii <eliz@gnu.org>
2910
2911 * makefile.w32-in (../src/config.h): Fix error message.
2912
e2247cd0
EZ
29132006-09-30 Eli Zaretskii <eliz@gnu.org>
2914
2915 * .cvsignore: Add blessmail.
2916
45a2056c
JB
29172006-09-15 Jay Belanger <belanger@truman.edu>
2918
2919 * COPYING: Replace "Library Public License" by "Lesser Public
2920 License" throughout.
2921
880820fe 29222006-08-09 Jan Djärv <jan.h.d@swipnet.se>
1f4edc37 2923
ecc54057 2924 * etags.c (readline): Expect sscanf returns >= 1.
ea90c5d3 2925 (readline): Change position on %n and \" in sscanf.
1f4edc37 2926
1520a816
JD
29272006-08-07 Masatake YAMATO <jet@gyve.org>
2928
ecc54057
JB
2929 * etags.c (readline): Expect sscanf returns 2, not 1.
2930
867cc23e
JD
29312006-08-07 Masatake YAMATO <jet@gyve.org>
2932
9984b9d5 2933 * etags.c (TEX_mode): Check getc returns EOF.
867cc23e
JD
2934 File ended without newline causes infinite loop.
2935
6088b51f 29362006-07-30 Adrian Aichner <adrian@xemacs.org> (tiny change)
fc185ae6 2937
ecc54057 2938 * etags.c: It's XEmacs, not Xemacs: change all the occurrences.
fc185ae6 2939
880820fe 29402006-07-30 Francesco Potortì <pot@gnu.org>
fc185ae6
FP
2941
2942 * etags.c [ETAGS_REGEXPS]: Now is unconditionally defined.
2943 [LONG_OPTIONS]: Changed to NO_LONG_OPTIONS, which is undefined.
2944 (Objc_suffixes): Suggest using --lang=c for full help.
e1dbe924 2945 (C_entries): Initialize savetoken to 0 to shut up the compiler.
fc185ae6 2946
116e754b
AS
29472006-07-20 Andreas Schwab <schwab@suse.de>
2948
2949 * fakemail.c (fatal): Drop second parameter and treat first
2950 parameter as a plain string. Callers changed.
2951
2381d38d
DN
29522006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
2953
2954 * ebrowse.c (usage, version): Mark as NO_RETURN.
2955
2956 * emacsclient.c (print_help_and_exit): Likewise.
2957
880820fe 29582006-07-10 Francesco Potortì <pot@gnu.org>
327891eb
FP
2959
2960 * etags.c (absolute_filename): Free unused space (cosmetic change).
2961 (in_word_set): In C, also tag #undef symbols.
2962
7cb93181
EZ
29632006-06-09 Eli Zaretskii <eliz@gnu.org>
2964
2965 * yow.c: Remove file.
2966
2967 * makefile.w32-in ($(BLD)/yow.$(O)): Remove target.
2968
2969 * Makefile.in (UTILITIES): Remove yow${EXEEXT}.
2970 yow${EXEEXT}: Remove target.
2971
0f29c66d
MY
29722006-06-04 Masatake YAMATO <jet@gyve.org>
2973
63fbb644 2974 * ebrowse.c (main): Exit with EXIT_FAILURE if BROWSE file
0f29c66d
MY
2975 doesn't exist, is not seekable, not is failed in ftall.
2976
a941b26b
EZ
29772006-06-03 Eli Zaretskii <eliz@gnu.org>
2978
9781fb53
EZ
2979 * makefile.w32-in (ALL): Add sorted-doc and digest-doc.
2980 ($(BLD)/sorted-doc.exe, $(BLD)/digest-doc.exe)
2981 ($(BLD)/test-distrib.exe): New targets.
2982 (sorted-doc, digest-doc, test-distrib): New targets.
2983 (install): Install sorted-doc.exe and digest-doc.exe.
2984 ($(BLD)/sorted-doc.$(O)): Update dependencies.
2985
1b178b99
EZ
2986 * digest-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
2987 (main) [DOS_NT]: Switch stdin to binary mode, if it is not a
2988 terminal device.
2989
ae85efdb
EZ
2990 * sorted-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
2991 [WINDOWSNT] <top level>: Don't redeclare malloc.
2992 (main) [DOS_NT]: Switch stdin to binary mode, if it is not a
2993 terminal device.
6088b51f 2994 (main): Initialize bp, to avoid compiler warnings.
ae85efdb 2995
a941b26b
EZ
2996 * makefile.w32-in: Delete traces of leditcfns.c.
2997
2998 * leditcfns.c: Remove file.
2999
880820fe 30002006-05-23 Francesco Potortì <pot@gnu.org>
8a6d5da7 3001
31fa6595
SM
3002 * pop.c (pop_open, socket_connection, KPOP_SERVICE):
3003 Add comments explaining why the "kpop" service is never used.
8a6d5da7 3004
642c61f3
EZ
30052006-05-13 Eli Zaretskii <eliz@gnu.org>
3006
3007 * makefile.w32-in (lisp1): Add fringe.elc.
3008
880820fe 30092006-05-02 Francesco Potortì <pot@gnu.org>
7e237d24
FP
3010
3011 * etags.c (Perl_functions): Free space allocated for var package.
3012 (Erlang_functions): Possibly free space allocated for var last.
3013 (Prolog_functions): Possibly free space allocated for var last.
3014
7c47913b
DN
30152006-04-29 Dan Nicolaescu <dann@ics.uci.edu>
3016
7fe8b491
DN
3017 * sorted-doc.c (main): Initialize docs to NULL.
3018
cdeda579
DN
3019 * yow.c (yow): Free buf.
3020
7c47913b
DN
3021 * etags.c: Delete c-indentation-style local variable.
3022
2ef88a94
RS
30232006-04-29 Richard Stallman <rms@gnu.org>
3024
5e5b35c7
RS
3025 * movemail.c (main): Check for negative value from `read'.
3026
2ef88a94
RS
3027 * fakemail.c (read_header): Give fatal error if input has no header.
3028
d65b4235
PE
30292006-04-02 Paul Eggert <eggert@cs.ucla.edu>
3030
3031 * b2m.c (main): Don't include <limits.h>.
3032 (TM_YEAR_BASE): New macro.
3033 (TM_YEAR_IN_ASCTIME_RANGE): Don't define if already defined, so
3034 that s/ files can override this. Use the more-conservative range
3035 1000-9999.
3036 (main): Check for asctime returning NULL.
3037 * fakemail.c: Likewise.
3038
f5565804
PE
30392006-03-27 Paul Eggert <eggert@cs.ucla.edu>
3040
3041 * b2m.c: Include <limits.h>.
3042 (TM_YEAR_IN_ASCTIME_RANGE): New macro.
3043 (main): Check for out-of-range time stamps.
3044 * fakemail.c: Likewise.
3045
90c9c343
AS
30462006-03-18 Andre Spiegel <spiegel@gnu.org>
3047
3048 * vcdiff: Use "echo" as a default for $echo, otherwise we'll
3049 execute $DIFF twice, and once with the wrong options.
3050
a6a2b5d4
EZ
30512006-02-23 Claudio Fontana <claudio@gnu.org>
3052
9e2bcc86
EZ
3053 * Makefile.in (install, uninstall): Add DESTDIR variable to
3054 support staged installations.
a6a2b5d4 3055
ef3f69f9
EZ
30562005-12-30 Eli Zaretskii <eliz@gnu.org>
3057
3058 * makefile.w32-in (MOUSE_SUPPORT): Add tooltip.elc.
fc8dc7cf
EZ
3059 (lisp1): Add rfn-eshadow.elc, international/utf-16.elc, image.elc,
3060 international/fontset.elc, dnd.elc, mwheel.elc, and tool-bar.elc.
3061 Rearrange the list to be similar to $(shortlisp) in
3062 src/Makefile.in.
ef3f69f9
EZ
3063 (lisp2): Add language/kannada.el, emacs-lisp/syntax.elc,
3064 emacs-lisp/timer.elc, jka-cmpr-hook.elc, font-lock.elc,
3065 jit-lock.elc. Rearrange the list to be similar to $(shortlisp) in
3066 src/Makefile.in.
3067
30cfcf7f
RS
30682005-12-22 Richard M. Stallman <rms@gnu.org>
3069
3070 * Makefile.in (update-game-score.o): Delete spurious final `\'.
3071
ecc54057 30722005-11-18 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp> (tiny change)
2e0bea68
FP
3073
3074 * etags.c (main): Cxref mode writes to stdout: do not close tagf,
3075 which was never opened.
3076
283879ef 30772005-10-20 Olli Savia <ops@iki.fi> (tiny change)
ce0ae3a9
EZ
3078
3079 * etags.c: Undef STDIN if defined. (LynxOS defines it in system
3080 header files.)
3081
880820fe 30822005-09-27 Francesco Potortì <pot@gnu.org>
55102b5d
FP
3083
3084 * etags.c: Preliminary Forth support.
3085 (prolog_pr): Cast strlen to int before comparison.
3086 (LOOKING_AT, LOOKING_AT_NOCASE): Let the preprocessor check that
3087 the second argument is indeed a literal string.
b9509712 3088 (main): In append mode, sort the tags file after writing it.
55102b5d
FP
3089
30902005-09-27 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3091
3092 * etags.c (longopts, print_help, main): The -a (--append) option
3093 can be used in ctags also; for one, the Linux make file uses it.
3094
41ea4df8
CY
30952005-09-20 Chong Yidong <cyd@stupidchicken.com>
3096
3097 * ebrowse.c (add_sym): Compare namespace names instead of
3098 namespace objects. This prevents the parser from incorrectly
3099 treating classes whose superclass is in another namespace.
3100
5c4757d3
RS
31012005-09-15 Richard M. Stallman <rms@gnu.org>
3102
3103 * Makefile.in (update-game-score.o): New target.
10d1d0af 3104 Compile and link this program separately.
5c4757d3
RS
3105 (update-game-score${EXEEXT}): Use GETOPTDEPTS.
3106
df1b2142
JR
31072005-09-11 Jason Rumney <jasonr@gnu.org>
3108
ecc54057 3109 * makefile.w32-in (../src/config.h): Don't overwrite. Print a
df1b2142 3110 message instead.
31fa6595 3111 (../src/paths.h): Remove.
df1b2142 3112
c638055f
JB
31132005-07-27 Juanma Barranquero <lekktu@gmail.com>
3114
3115 * .cvsignore: Don't ignore fns-* and fns.el, which are no longer
3116 generated. Ignore also ctags.c and getopt.h.
3117
3118 * makefile.w32-in (clean): Delete getopt.h.
3119 (getopt.h): New rule.
3120
9eff9fe3
PE
31212005-07-26 Paul Eggert <eggert@cs.ucla.edu>
3122
3123 Merge gnulib getopt implementation into Emacs.
3124
3125 * Makefile.in (mostlyclean): Remove getopt.h, getopt.h-t.
3126 (GETOPT_H): New macro, from gnulib.
3127 (getopt.h): New rule, from gnulib.
3128 (GETOPTOBJS): Now autoconfigured.
3129 (GETOPTDEPS): getopt.h is now autoconfigured.
3130 (getopt.o, getopt1.o): Depend on $(GETOPT_H), not ${srcdir}/getopt.h.
3131 (getopt.o): Depend on ${srcdir}/gettext.h.
3132 (movemail.o): Depend on $(GETOPT_H).
3133 * getopt.c, getopt1.c: Sync from gnulib.
3134 * getopt_.h, getopt_int.h, gettext.h: New files, from gnulib.
3135 * getopt.h: Removed (now is getopt_.h).
3136
ec641d50
KR
31372005-07-13 Ken Raeburn <raeburn@gnu.org>
3138
0e0dced5
JB
3139 * pop.c: Don't include des.h (or variants thereof); krb.h will do it.
3140 (sendline): Add the \r\n to the line in a temporary buffer, and write
3141 it all at once.
ec641d50 3142
a0ec7a4a
LK
31432005-07-04 Lute Kamstra <lute@gnu.org>
3144
3145 Update FSF's address in GPL notices.
3146
0e0dddda
EZ
31472005-06-13 Eli Zaretskii <eliz@gnu.org>
3148
3149 * makefile.w32-in ($(DOC)): Fix last change.
3150
5a77c8e2
EZ
31512005-06-12 Eli Zaretskii <eliz@gnu.org>
3152
3153 * makefile.w32-in ($(DOC)): Depend on make-docfile.exe,
3154 temacs.exe, and the preloaded *.elc files. This avoids
3155 unnecessary dumping and DOC rebuilding.
3156
1a8fb426
EZ
31572005-06-04 Eli Zaretskii <eliz@gnu.org>
3158
3159 * ntlib.h (fileno): Don't define if already defined.
3160
7235a58f
TTN
31612005-05-25 Thien-Thi Nguyen <ttn@gnu.org>
3162
3163 * yow.c (setup_yow): Use EXIT_FAILURE in case no separators found.
3164 (yow): Use EXIT_FAILURE in case of memory error.
3165
5063dbbf
YM
31662005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3167
3168 * make-docfile.c (DIRECTORY_SEP): New macro.
3169 (IS_DIRECTORY_SEP): Use it.
3170
880820fe 31712005-03-18 Jan Djärv <jan.h.d@swipnet.se>
5b9562c3
JD
3172
3173 * emacsclient.c: Avoid expansion of getcwd when defined as a macro.
3174
ba025f6d
YM
31752005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3176
3177 * make-docfile.c: Undo previous change.
3178
a9eedf40
AS
31792005-02-04 Andreas Schwab <schwab@suse.de>
3180
0e0dced5
JB
3181 * movemail.c (fatal): Accept third parameter and pass down to error.
3182 (pfatal_with_name): Pass error string as format parameter instead of
3183 as part of format string.
a9eedf40
AS
3184 (pfatal_and_delete): Likewise.
3185 (main): Adjust call to fatal.
3186 (xmalloc): Likewise.
3187
5a92a9eb
RS
31882005-01-29 Richard M. Stallman <rms@gnu.org>
3189
3190 * movemail.c (popmail): Don't use Errmsg as format string.
3191
e6973a25
ST
31922004-12-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3193
0e0dced5 3194 * make-docfile.c: Include stdlib.h even if WINDOWSNT is not defined.
e6973a25 3195
1bb3da38
AS
31962004-12-15 Andreas Schwab <schwab@suse.de>
3197
3198 * etags.c (main): Fix typo in conversion of LONG_OPTIONS from
3199 preprocessing to compile time constant.
3200
d4a38fdd
KS
32012004-11-17 Kim F. Storm <storm@cua.dk>
3202
3203 * etags.c: Undo last change.
3204
f2eb41c8
KS
32052004-11-09 Kim F. Storm <storm@cua.dk>
3206
3207 * make-docfile.c (scan_c_file): Set defvarperbufferflag to
3208 silence compiler.
3209
3210 * hexl.c (main): Init local var c to silence compiler.
3211
3212 * etags.c (main, consider_token, C_entries): Add misc switch
3213 default targets to silence compiler.
3214
880820fe 32152004-11-09 Jan Djärv <jan.h.d@swipnet.se>
3cf5c994
JD
3216
3217 * makefile.w32-in (obj): Add all files (X and Mac) to doc so the
3218 resulting DOC file can be used on Unix/Mac also.
3219
880820fe 32202004-09-13 Francesco Potortì <pot@gnu.org>
e057dc50
FP
3221
3222 * etags.c (main): When relative file names are given as argument,
3223 make them relative to the current working dir, rather than
3224 relative to the output tags file, if the latter is in /dev.
3225
880820fe 32262004-09-13 Francesco Potortì <pot@gnu.org>
05d9a399
FP
3227
3228 * etags.c [EXIT_SUCCESS, EXIT_FAILURE]: Define them when no
3229 <stdlib.h> is available.
3230 (enum sym_type): New st_C_attribute value for parsing
3231 gcc's __attribute__. Deleted st_C_typespec value.
3232 (gperf, in_word_set): Use gperf 3, options changed. Added the
3233 __attribute__ keyword, removed all the st_C_typespec keywords,
3234 changed attribute for Java to (C_JAVA & !C_PLPL).
3235 (inattribute): New global bool, part of the C state machine.
3236 (cblev): Identifier renamed to bracelev throughout.
3237 (consider_token, C_entries): Numerous changes for making the
3238 parser more robust and adding support for __attribute__.
3239
32402004-09-13 David A. Capello <dacap@users.sourceforge.net> (tiny change)
3241
ecc54057 3242 * etags.c (Lua_suffixes, Lua_help, lang_names, Lua_functions):
05d9a399
FP
3243 Support the Lua scripting language <http://www.lua.org>.
3244
880820fe 32452004-09-08 Francesco Potortì <pot@gnu.org>
fba74375 3246
d57727c9 3247 * etags.c [LONG_OPTIONS]: Make it TRUE (ifdef) or FALSE (ifndef)
fba74375
FP
3248 for ease of use.
3249
3751eb00
RS
32502004-07-17 Richard M. Stallman <rms@gnu.org>
3251
3252 * emacsclient.c (quote_file_name): Pass COPY thru %s to output it.
3253
86d373e6
JB
32542004-06-01 Juanma Barranquero <lektu@terra.es>
3255
3256 * makefile.w32-in (obj): Add image.c.
3257
80e26b66
TTN
32582004-05-10 Thien-Thi Nguyen <ttn@gnu.org>
3259
0e0dced5 3260 * test-distrib.c (main): For failing cases, exit with `EXIT_FAILURE'.
80e26b66 3261
e6662c8b
JR
32622004-05-08 Jason Rumney <jasonr@gnu.org>
3263
3264 * makefile.w32-in (lisp1, lisp2): Split lisp to avoid long
3265 command-lines.
3266
65396510
TTN
32672004-05-08 Thien-Thi Nguyen <ttn@gnu.org>
3268
3269 * cvtmail.c: Throughout, replace 0 destined for `exit' arg
3270 with `EXIT_SUCCESS'. Likewise, replace 1 with `EXIT_FAILURE'.
3271 (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
3272
3273 * ebrowse.c, emacsclient.c, fakemail.c, hexl.c,
86d373e6
JB
3274 * make-docfile.c, movemail.c, profile.c, sorted-doc.c,
3275 * test-distrib.c, update-game-score.c, yow.c: Likewise.
65396510 3276
c2bcfb19
TTN
32772004-05-08 Thien-Thi Nguyen <ttn@gnu.org>
3278
3279 * Makefile.in (emacsclient${EXEEXT}): Use makefile var `version'.
3280
3f0656ff
TTN
32812004-05-07 Thien-Thi Nguyen <ttn@gnu.org>
3282
3283 * b2m.c (GOOD, BAD): Delete macros. Throughout,
3284 replace w/ `EXIT_SUCCESS' and `EXIT_FAILURE', respectively.
3285 (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
3286
3287 * etags.c: Likewise.
3288
238add5e
JR
32892004-05-03 Jason Rumney <jasonr@gnu.org>
3290
3291 * makefile.nt: Remove.
3292
b09c5608
EZ
32932004-04-26 Eli Zaretskii <eliz@gnu.org>
3294
3295 * make-docfile.c (IS_DIRECTORY_SEP): New macro.
3296 (put_filename): Remove unused variable len. Use IS_DIRECTORY_SEP
3297 instead of a literal '/'.
3298
d814862a
JB
32992004-04-23 Juanma Barranquero <lektu@terra.es>
3300
3301 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3302
442a2160
PE
33032004-04-17 Paul Eggert <eggert@gnu.org>
3304
3305 * rcs2log (Help): Clarify wording of the usage message.
3306 Problem reported by Alan Mackenzie in
3307 <http://mail.gnu.org/archive/html/bug-gnu-emacs/2004-04/msg00188.html>.
3308
d5d66b7e
SM
33092004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3310
3311 * make-docfile.c (xmalloc): Fix return type.
3312 (put_filename): New fun.
3313 (scan_file): Use it.
3314
bdfd0369
JB
33152004-03-09 Juanma Barranquero <lektu@terra.es>
3316
3317 * grep-changelog: Changes to support ChangeLog.10+.
3318 (main): Tidy up usage string. Fix "Use of uninitialized value"
3319 warning. Set version to 0.2. Parse the directory listing to get
3320 any ChangeLog.n file, not just 1..9.
3321 (header_match_p, entry_match_p, print_log, parse_changelog):
3322 Remove Perl prototypes (their purpose is to help the parser, which
3323 isn't needed here, not declare arguments).
3324 (parse_changelog): Make --reverse faster on big batches by not
3325 modifying the entries list.
3326
a64387ee
JB
33272004-03-01 Juanma Barranquero <lektu@terra.es>
3328
3329 * makefile.w32-in (obj): Add fringe.c.
3330
9766d41b
PE
33312004-02-14 Paul Eggert <eggert@twinsun.com>
3332
3333 * rcs2log: Work correctly if CVSROOT specifies :fork: or
3334 :local: methods, or omits the colon between the hostname
3335 and the path. Allow :/ in repository path, since CVS does.
3336 Fix typo: "pository" should be set from $CVSROOT, not $repository.
3337 This fixes a bug reported by Wolfgang Scherer in
3338 <http://mail.gnu.org/archive/html/bug-gnu-emacs/2004-02/msg00085.html>,
3339 along with some related bugs I discovered by inspecting how
3340 CVS itself parses $CVSROOT.
3341
880820fe 33422004-02-04 Jérôme Marant <jmarant@nerim.net> (tiny change)
98c6e531
SM
3343
3344 * emacsclient.c (decode_options): Fix handling of alternate editor.
3345
0734b0d0
SM
33462004-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
3347
3348 * emacsclient.c (main): Don't use the hostname in the socket name.
3349 Look for relative socket names in the /tmp dir rather than in cwd.
3350
2a6fc2d9
RS
33512004-01-24 Richard M. Stallman <rms@gnu.org>
3352
3353 * emacsclient.c (main): Restore errno from saved_errno,
3354 so the error message comes from socket_status.
3355
0734b0d0
SM
33562004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
3357
3358 * emacsclient.c (main): Stop if socket name too long.
3359 Only try su-fallback if the socket name was not explicit.
3360 Check socket name length in su-fallback case as well.
3361
152b6e83
AS
33622004-01-08 Andreas Schwab <schwab@suse.de>
3363
3364 * emacsclient.c (main): Save errno from socket_status.
3365
e8228824
AS
33662004-01-04 Andreas Schwab <schwab@suse.de>
3367
3368 * emacsclient.c (main): Fix socket name when using another user.
3369
c9140662
PE
33702003-12-27 Paul Eggert <eggert@twinsun.com>
3371
3372 * rcs2log (rlog_options): Append -rbranchtag if CVS/Tag indicates
3373 a tag, and if the user has not specified an rlog option.
3374 Adapted from a suggestion by Martin Stjernholm in
3375 <http://mail.gnu.org/archive/html/bug-gnu-emacs/2003-07/msg00066.html>.
3376 (Copyright): Update to 2003.
3377
8babaa59
TTN
33782003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3379
3380 * make-docfile.c (main): For return code, no longer special-case VMS.
3381 Instead, use `EXIT_SUCCESS' and `EXIT_FAILURE' from stdlib.h.
3382
880820fe 33832003-09-28 Andreas Büsching <crunchy@tzi.de> (tiny change)
14ef7288
EZ
3384
3385 * emacsclient.c (quote_file_name): Print the result instead of
3386 returning it. Fix the return type accordingly.
1ae7cf5e
RS
3387 (main): With --eval, if no file name, read from stdin.
3388 Quote file names.
14ef7288 3389
f387bdea
RS
33902003-09-10 Richard M. Stallman <rms@gnu.org>
3391
07655e62 3392 * emacsclient.c (main): Use socket_name.
f387bdea 3393
880820fe 33942003-09-10 Andreas Büsching <crunchy@tzi.de> (tiny change)
f387bdea
RS
3395
3396 * emacsclient.c (socket_name): New variable.
3397 (longopts, decode_options, print_help_and_exit):
3398 Handle --socket-name argument.
3399
0b7e7337
FP
34002003-08-25 Takaaki Ota <Takaaki.Ota@am.sony.com> (tiny change)
3401
783bcffa 3402 * etags.c (consider_token): Check C++ `operator' only when the
0b7e7337
FP
3403 token len is long enough.
3404
ac06b30b
DL
34052003-08-20 Dave Love <fx@gnu.org>
3406
3407 * Makefile.in: Remove obsolete references to alloca.
3408
32b0a3c6
JB
34092003-07-29 Ken Brush <ken@wirex.com>
3410
3411 * emacsclient.c (main)
3412 * etags.c (suggest_asking_for_help)
3413 * movemail.c (main): Fix having macros in a printf statement.
3414
3867c42d
JB
34152003-05-31 Juanma Barranquero <lektu@terra.es>
3416
3417 * makefile.w32-in (lisp): Fix references to byte-run.el,
3418 float-sup.el and map-ynp.el, which are now in emacs-lisp.
3419
7933722a
DL
34202003-05-22 Dave Love <fx@gnu.org>
3421
3422 * update-game-score.c (difftime) [!HAVE_DIFFTIME]: Define.
3423 (strerror) [!HAVE_STRERROR && !WINDOWSNT]: New.
3424
463f55ee
DL
34252003-05-20 Dave Love <fx@gnu.org>
3426
3427 * movemail.c: Check HAVE_LIBLOCKFILE like HAVE_LIBMAIL.
3428
3429 * Makefile.in [HAVE_LIBLOCKFILE]: Define LIBS_MAIL=-llockfile.
3430
1b7a835b
JB
34312003-04-27 Oliver Scholz <alkibiades@gmx.de>
3432
0e0dced5 3433 * update-game-score.c (read_scores): Fix corruption of scores on read.
1b7a835b 3434
eec54bd7
SM
34352003-04-12 Stefan Monnier <monnier@cs.yale.edu>
3436
3437 * emacsclient.c (main): Use new safe location for socket.
3438
ff4bd681
JB
34392003-03-12 Tom Tromey <tromey@redhat.com>
3440
eec54bd7
SM
3441 * emacsclient.c (print_help_and_exit): Print to stdout.
3442 Exit successfully. Added some blank lines for readability.
ff4bd681
JB
3443 (decode_options): Don't call print_help_and_exit in default case.
3444 Print version information to stdout.
3445 (main): Don't call print_help_and_exit.
3446
dd132e44
RS
34472003-02-15 Richard M. Stallman <rms@gnu.org>
3448
3449 * cvtmail.c: Cast result of malloc and realloc.
10d1d0af 3450 Don't include stdlib.h, because config.h does.
dd132e44 3451 (malloc, realloc): Declarations deleted.
ff4bd681 3452
dd132e44
RS
3453 * yow.c (yow): Cast result of malloc and realloc.
3454 (malloc, realloc): Declarations deleted.
3455
71ffc53a
JB
34562003-02-11 Juanma Barranquero <lektu@terra.es>
3457
3458 * makefile.w32-in (lisp): Add malayalam.el and tamil.el.
3459
0dfd93c0
AS
34602003-02-08 Andreas Schwab <schwab@suse.de>
3461
3462 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
3463 instead of the substitution.
3464
37d1e680
RS
34652003-02-04 Richard M. Stallman <rms@gnu.org>
3466
3467 * update-game-score.c (push_score, read_scores): Cast values
3468 of malloc and realloc.
3469 (main, lock_file): Avoid assignment inside if.
3470
c60ee5e7
JB
34712003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
3472
3473 * Makefile.in: Use @EXEEXT@ for Cygwin.
3474
b24e2dc7
DL
34752003-01-21 Dave Love <fx@gnu.org>
3476
3477 * etags.c (Cplusplus_help, Cjava_help): Re-phrase and avoid
3478 column-0 `('.
3479
3480 * yow.c: Don't include string.h.
3481
675d000f
RS
34822003-01-20 Richard M. Stallman <rms@gnu.org>
3483
3484 * Makefile.in (rcs2log, rcs-checkin, grep-changelog, vcdiff):
3485 New targets.
3486
207aa3ff
KS
34872003-01-06 Kim F. Storm <storm@cua.dk>
3488
31fa6595 3489 * pop.c (__P): Rename from _P to avoid problems on Cygwin.
207aa3ff
KS
3490 All uses changed.
3491
cf6d30d7
AI
34922002-12-18 Andrew Innes <andrewi@gnu.org>
3493
3494 * makefile.w32-in ($(DOC)): Use -o and -a options to make-docfile,
3495 because GNU make doesn't append when using >> redirection.
3496
f0131492 34972002-12-12 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
649fc2c5
PJ
3498
3499 * b2m.pl: Make sure every message ends with a blank line, because
3500 some mbox parsers require a blank line before "From " lines.
3501
85cce843
RS
35022002-12-08 Richard M. Stallman <rms@gnu.org>
3503
3504 * getopt.c: Do include libintl.h if HAVE_LIBINTL_H.
3505 (_): Test only HAVE_LIBINTL_H to decide what to do.
3506
2ccc4d34
RS
35072002-12-05 Richard M. Stallman <rms@gnu.org>
3508
3509 * getopt.c: Comment out include of libintl.h or gettext.h.
3510
c5992177
RS
35112002-12-04 Richard M. Stallman <rms@gnu.org>
3512
3513 * Update getopt from gnulib version; changes described below.
3514
3515 * getopt1.c: Conditionally find getopt.h.
3516 [_LIBC] (getopt_long, getopt_long_only): Do libc_hidden_def.
3517
3518 * getopt.c (const): Move outside !HAVE_CONFIG_H conditional.
3519 (libintl.h): Include this if _LIBC. Otherwise include gettext.h.
c60ee5e7 3520 (wchar.h): Include, maybe.
10d1d0af 3521 (attribute_hidden): Define if not defined.
c5992177 3522 (__getopt_initialized): Use attribute_hidden.
b166dcd8 3523 (__libc_argc, __libc_argv): Rename from original_argc, etc.
d7982012
JB
3524 (__getopt_nonoption_flags, nonoption_flags_max_len)
3525 (nonoption_flags_len): Conditional on USE_NONOPTION_FLAGS.
c5992177
RS
3526 (SWAP_FLAGS): New definitions.
3527 (exchange): Test USE_NONOPTION_FLAGS.
3528 (_getopt_initialize): Test USE_NONOPTION_FLAGS.
3529 (_getopt_internal): Error if argc < 1. New local var print_errors.
3530 Improve test for ambiguous long option.
3531 Add LIBIO support for error message output.
3532 (NONOPTION_P): Test USE_NONOPTION_FLAGS.
3533
3534 * getopt.h: Maybe include ctype.h.
3535 Treat __cplusplus like __STDC__.
3536 (decls): Use __ in arg names.
3537
4b5e69bd
SE
35382002-12-02 Stephen Eglen <stephen@gnu.org>
3539
3540 * emacsclient.c (main): Tell user how to start server within Emacs
3541 if socket could not be found.
3542
19fa03f3
RS
35432002-12-02 Richard M. Stallman <rms@gnu.org>
3544
3545 * emacsclient.c (main): Test HAVE_GETCWD rather than BSD_SYSTEM.
3546
7be215b4
JB
35472002-11-19 Ben Key <bkey1@tampabay.rr.com>
3548
29f538e6
BK
3549 * makefile.w32-in: Fixed a bug that caused the documentation for
3550 the built in function play-sound-internal not to be included in
3551 /etc/DOC.
7be215b4 3552
1998560a
DL
35532002-11-18 Dave Love <fx@gnu.org>
3554
3555 * update-game-score.c: Include unistd.h, string.h, stdlib.h,
3556 fcntl.h, stdarg.h conditionally.
3557 (_GNU_SOURCE, __attribute__): Don't define.
3558 (optarg, optind, opterr): Declare.
3559 (lose, lose_syserr): Use NO_RETURN.
3560 (get_user_id): Use P_.
3561
8b96caf3
RS
35622002-11-17 Richard M. Stallman <rms@gnu.org>
3563
3564 * Makefile.in (${archlibdir}): Ignore errors operating on $(gamedir).
3565
59daa29a
DL
35662002-11-14 Dave Love <fx@gnu.org>
3567
3568 * movemail.c (pop_retr): Declare comment.
3569
3570 * make-docfile.c (read_c_string_or_comment): Declare msgno.
9a007cb7 3571
61b108cc 3572 * Makefile.in (YACC): Delete.
9a007cb7 3573
f1b443bf
AS
35742002-10-19 Andreas Schwab <schwab@suse.de>
3575
3576 * Makefile.in (${archlibdir}): Always create $(gamedir).
3577 (update-game-score): Pass $(gamedir) as HAVE_SHARED_GAME_DIR.
3578
52402e4f
JB
35792002-10-04 Juanma Barranquero <lektu@terra.es>
3580
3581 * makefile.w32-in (lisp): Load devanagari.el, not .elc.
3582
15dab115
MR
35832002-09-30 Markus Rost <rost@math.ohio-state.edu>
3584
3585 * emacsclient.c (main): Remove reference to SERVER_HOME_DIR
3586 completely.
3587
30be2360
SM
35882002-09-27 Stefan Monnier <monnier@cs.yale.edu>
3589
3590 * emacsclient.c: Remove SYSV support.
3591 (eval, display): New vars.
3592 (longopts): Add --eval and --display.
3593 (decode_options): Add -e and -d processing.
3594 (print_help_and_exit): Update the usage string.
3595 (main): Add support for --eval and --display.
3ecdcd59 3596 (main): Always use /tmp and non-qualified hostname.
30be2360 3597
4208da83
SM
35982002-09-25 Stefan Monnier <monnier@cs.yale.edu>
3599
3600 * emacsserver.c: Remove.
3601
3cf8c6aa
SM
36022002-09-17 Stefan Monnier <monnier@cs.yale.edu>
3603
3604 * emacsclient.c (quote_file_name): Quote \n.
3605 (main): Print a final \n when needed.
3606
880820fe 36072002-09-03 Francesco Potortì <pot@gnu.org>
4c6dce51
FP
3608
3609 * etags.c (regex_tag_multiline, readline): Never pass pfnote a
3610 string that cannot be freed.
3611
880820fe 36122002-08-30 Francesco Potortì <pot@gnu.org>
ba88f8eb
FP
3613
3614 * etags.c (consider_token, C_entries): Switch to C++ parsing when
3615 auto-detection is enabled and the `::' qualifier is met.
3616 (consider_token, C_entries): Several bugs corrected that tagged
3617 some declarations even though --declarations was not used.
3618 (plainc): New macro.
3619 (C_entries): Use it.
3620 (C_entries): Several cosmetic changes.
3621 (C_entries): Invalidate the token is some cases.
3622
880820fe 36232002-08-29 Francesco Potortì <pot@gnu.org>
09cd1a74 3624
eec54bd7 3625 * etags.c (C_entries): Correct a problem with const C++ funcs.
b166dcd8 3626 (ignoreindent): Rename from noindentypedefs.
09cd1a74
FP
3627 (cjava, cplpl): They are now macros instead of local vars.
3628
880820fe 36292002-08-28 Francesco Potortì <pot@gnu.org>
09cd1a74
FP
3630
3631 * etags.c (HTML_labels): Tag ID= also.
3632
880820fe 36332002-08-27 Francesco Potortì <pot@gnu.org>
87046df8
FP
3634
3635 * etags.c (Ada_funcs): Do not tag "use type Xxxx;".
3636
ecc54057 3637 * etags.c (HTML_labels): New language HTML.
8ee14629
FP
3638 (etags_strcasecmp): Like BSD's, for compatibility.
3639 (strcaseeq): Make it into a macro.
3640
3641 * etags.c (make_tag): Never generate null length tag names.
b166dcd8 3642 (linebuffer_init): Rename from initbuffer. All callers changed.
87046df8
FP
3643 (pattern): Structure renamed to `regexp', member regex renamed to
3644 pattern.
3645 (node_st): Member pat renamed to regex.
eec54bd7
SM
3646 (pattern); New member force_explicit_name, for future use.
3647 Now always set to true, cannot be reset.
87046df8
FP
3648 (add_regex, regex_tag_multiline, readline): Use it.
3649 (main): Free some global structures.
8ee14629 3650 (fdesc): New member `written'.
e1dbe924 3651 (readline, process_file): Initialize it.
87046df8
FP
3652 (put_entries): Set it.
3653 (main): Use it to create entries for files without tags.
3654 (total_size_of_entries): Do not count invalid tags.
87046df8 3655
02ce3e80
SM
36562002-08-19 Stefan Monnier <monnier@cs.yale.edu>
3657
3658 * make-docfile.c (scan_keyword_or_put_char, write_c_args): Use `fn'
3659 for the function name in the usage info.
3660
5fba5c21
CW
36612002-07-31 Colin Walters <walters@gnu.org>
3662
3663 * update-game-score.c (P_): New macro. Use it for all prototypes.
3664 (lose): Don't use varargs.
3665 (lose_syserr): New function.
3666
3667 * update-game-score.c: Change all functions to K&R style.
3668
712eaee0
AS
36692002-07-30 Andreas Schwab <schwab@suse.de>
3670
3671 * Makefile.in (localstatedir): New variable.
3672
f0131492 36732002-07-29 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
c89ed6ef
PJ
3674
3675 * b2m.pl: Fix regexp for finding return address fields.
3676
1e042160
SM
36772002-07-15 Stefan Monnier <monnier@cs.yale.edu>
3678
3679 * make-docfile.c (scan_c_file): Warn about missing `usage' info.
3680
f0131492 36812002-07-05 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
e9b60209 3682
02ce3e80 3683 * b2m.pl: Obey the rmail file and use the unpruned header properly.
e9b60209 3684
880820fe 36852002-06-26 Pavel Janík <Pavel@Janik.cz>
9ee028d2
PJ
3686
3687 * b2m.pl: New file.
3688
880820fe 36892002-06-21 Francesco Potortì <pot@gnu.org>
e1af8d40 3690
ecc54057 3691 * etags.c (F_getit, Fortran_functions, Ada_getit, Asm_labels)
e1af8d40
FP
3692 (Python_functions, PHP_functions, PHP_functions, PHP_functions)
3693 (PHP_functions, PHP_functions, Cobol_paragraphs)
3694 (Makefile_targets, Postscript_functions, Texinfo_nodes)
3695 (prolog_pr, erlang_func, erlang_attribute)
3696 (Perl_functions, Perl_functions, Pascal_functions)
3697 (TeX_commands, get_tag): Use make_tag instead of pfnote.
3698 (get_tag): Prototype changed, all callers changed.
3699
880820fe 37002002-06-20 Francesco Potortì <pot@gnu.org>
ceaeb365 3701
d76132d0
FP
3702 * etags.c: Implement implicit tag names, that is, unnamed tags
3703 whose name is automatically deduced by etags.el. The advantage is
3704 that there is no explicit tag name in most tags, so the size of
3705 the tags file is reduced, yet find-tag is able to do a match as
eec54bd7 3706 accurate as with named tags. See the comment in make_tag for details.
ceaeb365
FP
3707 (make_tag): New function (was the disabled function new_pfnote).
3708 (make_C_tag): Use it.
3709
880820fe 37102002-06-19 Francesco Potortì <pot@gnu.org>
f175bfff
FP
3711
3712 * etags.c (add_regex): Invalid regexp modifiers are ignored.
3713 (Makefile_targets): Tag variables unless --no-globals.
3714 (LOOP_ON_INPUT_LINES): Serious bug corrected.
3715
880820fe 37162002-06-13 Francesco Potortì <pot@gnu.org>
82ef78b3
FP
3717
3718 * etags.c (erlang_atom, erlang_attribute): Bugs corrected.
3719 (invalidate_nodes): Bug corrected.
3720 (print_help): Better help for regexps.
3721
7a8940da
JB
37222002-06-13 Juanma Barranquero <lektu@terra.es>
3723
3724 * makefile.w32-in (lisp): Add international/ucs-tables.elc and
3725 font-core.elc.
3726
880820fe 37272002-06-12 Francesco Potortì <pot@gnu.org>
6861f0e3
FP
3728
3729 * etags.c: New multi-line regexp and new regexp syntax.
3730 (arg_type): at_icregexp label removed (obsolete).
3731 (pattern): New member multi_line for multi-line regexps.
3732 (filebuf): A global buffer containing the whole file as a string
3733 for multi-line regexp matching.
3734 (need_filebuf): Global flag raised if multi-line regexps used.
3735 (print_help): Document new regexp modifiers, remove references to
3736 obsolete option --ignore-case-regexp.
3737 (main): Do not set regexp syntax and translation table here.
3738 (main): Treat -c option as a backward compatibility hack.
3739 (main, find_entries): Init and free filebuf.
3740 (find_entries): Call regex_tag_multiline after the regular parser.
10d1d0af 3741 (scan_separators): Check for unterminated regexp and return NULL.
6861f0e3
FP
3742 (analyse_regex, add_regex): Remove the ignore_case argument, which
3743 is now a modifier to the regexp. All callers changed.
3744 (add_regex): Manage the regexp modifiers.
3745 (regex_tag_multiline): New function. Reads from filebuf.
3746 (readline_internal): If necessary, copy the whole file into filebuf.
3747 (readline): Skip multi-line regexps, leave them to regex_tag_multiline.
3748
880820fe 37492002-06-11 Francesco Potortì <pot@gnu.org>
6861f0e3
FP
3750
3751 * etags.c (add_regex): Better check for null regexps.
3752 (readline): Check for regex matching null string.
6772c8e1 3753 (find_entries): Reorganization.
6861f0e3 3754
880820fe 37552002-06-07 Francesco Potortì <pot@gnu.org>
f0da41a6
FP
3756
3757 * etags.c (scan_separators): Support all character escape
3758 sequences supported by Gcc.
02ce3e80 3759 (find_entries): Rewind unconditionally.
f0da41a6
FP
3760 (find_entries): Do not call language functions directly, now calls
3761 itself.
e1dbe924 3762 (find_entries): Do general initializations here.
f0da41a6
FP
3763 (CNL_SAVE_DEFINEDEF, C_entries, LOOP_ON_INPUT_LINES, F_getit)
3764 (Ada_getit, Pascal_functions, Pascal_functions)
3765 (prolog_skip_comment): Do not do them here.
3766 (readline_internal): Increment lineno here.
3767 (readline): Conditionally undo readline_internal increment.
3768 (readline): Do not return a value.
3769
880820fe 37702002-06-06 Francesco Potortì <pot@gnu.org>
5526f1f6 3771
88c71720 3772 * etags.c: New option --parse-stdin=FILE.
97b90b0a
FP
3773 (enum arg_type): New label at_stdin.
3774 (STDIN): New constant.
3775 (parsing_stdin): New flag.
3776 (longopts): New option --parse-stdin=NAME.
3777 (print_help): Document it.
3778 (main): Handle it.
3779 (process_file): Split into process_file and process_file_name.
3780 (process_file_name): New function.
3781
88c71720 3782 * etags.c: Improvements and bug squashing in TeX handling.
97b90b0a 3783 (TeX_commands): Skip comments.
10d1d0af 3784 (TEX_defenv): Now contains more constructs.
5526f1f6
FP
3785 (TEX_cmt): Make it a static char and move it before TeX_commands.
3786 (TeX_commands): Shorten the tag to the brace after the name.
3787 (TeX_commands): Names now include the initial backslash.
3788 (TeX_commands): Names do not include numeric args #n.
3789 (TeX_commands): Correct line char number in tags.
61b108cc 3790 (TEX_tabent, TEX_token): Delete.
5526f1f6
FP
3791 (TeX_commands, TEX_decode_env): Streamlined.
3792
880820fe 37932002-06-05 Francesco Potortì <pot@gnu.org>
50496bd9
FP
3794
3795 * etags.c (main): Avoid a buffer overrun with sprintf.
3796
a71867c5
RS
37972002-05-30 Richard M. Stallman <rms@gnu.org>
3798
b166dcd8
KC
3799 * Makefile.in (LIBS_MAIL): Rename from LIB_MAIL.
3800 (LIBS_MOVE): Rename from MOVE_LIBS.
a71867c5 3801
b7e67db6
PE
38022002-05-26 Paul Eggert <eggert@twinsun.com>
3803
3804 Reinstate the following change from 2002-03-22, which was
3805 inadvertently lost on 2002-04-13.
3806
3807 * etags.c (main): Use `sort -o TAGFILE TAGFILE' instead of
3808 `sort TAGFILE -o TAGFILE', as POSIX 1003.1-2001 disallows
3809 the latter usage.
3810
5f226e2c
EZ
38112002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
3812
3813 * pop.c (socket_connection): Move the code to resolve the POP
3814 host right before trying to connect with it.
3815
9021bb49
GM
38162002-05-05 Eli Zaretskii <eliz@is.elta.co.il>
3817
3818 * tcp.c: Delete file since the TCP emulation is no longer in use on any
3819 platform.
3820
5167cfda
CW
38212002-04-28 Colin Walters <walters@verbum.org>
3822
3823 * Makefile.in (${archlibdir}): Don't conditionalize on
3824 HAVE_SHARED_GAME_DIR. Instead, test at installation time whether
3825 or not we have access to the specified game user.
50496bd9 3826
5167cfda
CW
3827 * update-game-score.c (SCORE_FILE_PREFIX): Delete.
3828 (main): New argument -d, for specifying directory.
3829 (usage): Document.
02ce3e80 3830 (get_user_id): Compute.
61b108cc 3831 (get_home_dir): Delete.
5167cfda
CW
3832 (get_prefix): New function, taken from main.
3833 (main): Check whether or not we are running setuid. Move prefix
3834 computation to get_prefix. Don't call getpwent; we don't need to
3835 any more. Instead, move it to get_user_id().
3836
880820fe 38372002-04-24 Pavel Janík <Pavel@Janik.cz>
beedfcf1
PJ
3838
3839 * ebrowse.c (skip_initializer): Return void.
3840
973c3c87
CW
38412002-04-23 Colin Walters <walters@verbum.org>
3842
3843 * update-game-score.c (read_score) [HAVE_GETDELIM]: Trim trailing
3844 space.
3845
880820fe 38462002-04-22 Francesco Potortì <pot@gnu.org>
8378bcd3 3847
ecc54057 3848 * etags.c (last_node): Make it a global variable.
8378bcd3
FP
3849 (process_file): Print the tags from the nodes as soon as
3850 possible, and delete the nodes. This brings down the memory
3851 occupancy as etags to almost the same level as when the #line
3852 directives were not parsed.
3853 (free_fdesc): New function.
3854 (find_entries): Use it.
3855 (invalidate_nodes): In etags mode, do not just mark the nodes as
3856 invalid, do delete them.
3857
c901ceff
GM
38582002-04-21 Gerd Moellmann <gerd@gnu.org>
3859
3860 * ebrowse.c (add_declarator): Test *CLS instead of CLS.
3861
c42d6dbd
EZ
38622002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
3863
3864 * update-game-score.c: Move config.h before the other headers, to
3865 avoid compiler warnings.
3866
880820fe 38672002-04-16 Francesco Potortì <pot@gnu.org>
090416ca
FP
3868
3869 * etags.c (find_entries): Bug fix in list management.
3870
880820fe 38712002-04-15 Francesco Potortì <pot@gnu.org>
5dab24c1
FP
3872
3873 * etags.c (get_language_from_filename): Add one argument.
3874 (strcaseeq): New function.
10d1d0af 3875 (get_language_from_filename): Use it to do a case insensitive
5dab24c1
FP
3876 comparison if called with appropriate args.
3877 (find_entries): Try with case insensitive match.
3878 (process_file): Bug fixed.
3879
880820fe 38802002-04-13 Francesco Potortì <pot@gnu.org>
c150db23
FP
3881
3882 * etags.c (find_entries): Delete tags previously obtained from
3883 file xxx.c's #line directives when parsing file xxx.y. This is
3884 generally done for automatically generated files containing
3885 #line directives. This handles the case when xxx.y is tagged
3886 before xxx.c, and the entries of xxx.c pointing to xxx.y should
3887 be discarded.
eec54bd7 3888 (language): Add the metasource member. Initializers changed.
c150db23
FP
3889 (invalidate_nodes): New function.
3890 (readline): Discard lines after having found a #line
02ce3e80 3891 directive pointing to an already tagged file. This handles the
c150db23
FP
3892 case when xxx.y is tagged before xxx.c, and the entries of
3893 xxx.c pointing to xxx.y should be discarded.
3894 (fdesc): New structure for keeping track of input files.
3895 (fdesc): Remove `file' member (a string) and use instead a pointer
3896 to a file description structure.
02ce3e80
SM
3897 (curfile, curfiledir, curtagfname, curlang, nocharno)
3898 (forced_lang): Global variables removed in favor of fdhead and
10d1d0af 3899 curfdp, pointers to file description structures.
c150db23
FP
3900 (longopts, main, print_help): Use the CTAGS conditional to include
3901 or exclude options that work on etags or ctags only.
02ce3e80
SM
3902 (process_file, find_entries, pfnote, add_node, put_entries)
3903 (readline): Use fdhead and curfdp.
c150db23
FP
3904 (process_file, find_entries): Do not take an arg string, all
3905 callers changed.
3906
3907 * etags.c (longopts, print_help, main): Test CTAGS to disallow
3908 options that are not right for either etags or ctags.
3909
3910 * etags.c (number_len, total_size_of_entries): Define them also
3911 in CTAGS mode, because gcc does not compile all refs away.
3912
e9d1f248
CW
39132002-04-14 Colin Walters <walters@debian.org>
3914
3915 * update-game-score.c (lock_file): If the lock file is older than
3916 an hour, delete it. Reset attempts to zero if we have to break
3917 the lock.
3918
7605f1bd
AS
39192002-04-14 Andreas Schwab <schwab@suse.de>
3920
3921 * update-game-score.c (read_score): Fix type of second parameter
3922 of getdelim to be of type size_t instead of int. Use 0 instead of
3923 ESUCCES.
3924
e82defd1
CW
39252002-04-10 Colin Walters <walters@verbum.org>
3926
ecc54057 3927 * update-game-score.c (toplevel): Include stdarg.h.
b9b966e0
CW
3928 (MAX_DATA_LEN, MAX_SCORES): New.
3929 (SCORE_FILE_PREFIX): If HAVE_SHARED_GAME_DIR is not defined,
3930 default to ~/.emacs.d/games.
3931 (get_user_id): Don't zero uid in the case where we can't get the
3932 username.
3933 (lose): New function.
3934 (main): Actually use `max', and default it to MAX_SCORES.
3935 Correctly handle new default for SCORE_FILE_PREFIX. Use `lose'
3936 function.
3937 (read_score): Handle the case of reading unamelen characters, then
3938 finishing. Use mktemp if mkstemp isn't available.
3939 (lock_file, unlock_file): Delete unused versions.
3940 (lock_file): Always sleep, even if we unlinked the lock file.
3941
e82defd1
CW
3942 * Makefile.in (gamedir, gameuser): New variables.
3943 (toplevel, UTILITIES): Add update-game-score.
3944 (${archlibdir}): Handle HAVE_SHARED_GAME_DIR.
3945
5795b420
CW
39462002-04-07 Colin Walters <walters@verbum.org>
3947
3948 * update-game-score.c (SCORE_FILE_PREFIX): Don't hardcode.
3949 (get_user_id): Take struct passwd as an argument.
3950 (get_home_dir): New function.
3951 (main): Read in user information here. Discover home directory if
3952 necessary.
3953 (read_score): Trim newline only in `getline' case.
3954
cd553ffb 39552002-04-05 Colin Walters <walters@debian.org>
c150db23 3956
cd553ffb
CW
3957 * update-game-score.c (toplevel): Include pwd.h.
3958 (struct score_entry): Add username field.
3959 (push_score): Use it.
3960 (get_user_id): New function.
3961 (main): Don't malloc excessively.
3962 (main): Use username field.
3963 (read_score): Read it.
3964 (push_score): Handle it.
07655e62 3965 (write_scores): Write it.
c150db23
FP
3966 (read_score): Handle arbitrary length data.
3967
b74bd4a3
EZ
39682002-03-30 Eli Zaretskii <eliz@is.elta.co.il>
3969
3970 * ebrowse.c (add_declarator): Fix the first call to add_member_defn.
3971
fa8bc89d
GM
39722002-03-29 Gerd Moellmann <gerd@gnu.org>
3973
3974 * ebrowse.c (add_declarator, skip_initializer): New functions.
3975 (declaration): Use them.
3976
dd87b4cc
JR
39772002-03-28 Jason Rumney <jasonr@gnu.org>
3978
3979 * makefile.w32-in (lisp): Move backquote.elc into emacs-lisp.
3980
cd553ffb
CW
39812002-03-27 Colin Walters <walters@debian.org>
3982
3983 * update-game-score.c: New file.
3984
dfef6d49
PE
39852002-03-22 Paul Eggert <eggert@twinsun.com>
3986
3987 * etags.c (main): Use `sort -o TAGFILE TAGFILE' instead of
3988 `sort TAGFILE -o TAGFILE', as POSIX 1003.1-2001 disallows
3989 the latter usage.
3990
880820fe 39912002-03-12 Francesco Potortì <pot@gnu.org>
a13d6523 3992
4fff90e4 3993 * etags.c (Python_functions): Skip spaces at beginning of lines.
a13d6523
FP
3994 (Python_functions, PHP_functions): Name tags, for ctags' sake.
3995 (TeX_commands): Name tags. Correction of old disabled code.
3996
3997 * etags.c (curfiledir, curtagfname): New global variables.
e1dbe924 3998 (process_file): Initialize them.
a13d6523 3999 (readline): Canonicalize the name found in #line directive.
893a741e 4000
4fff90e4 40012002-03-06 Jason Rumney <jasonr@gnu.org>
ca55a1e3 4002
893a741e
JR
4003 * etags.c (put_entries): Use #if !CTAGS, to fix link error on
4004 compilers that don't optimize out dead code.
4005
880820fe 40062002-03-05 Francesco Potortì <pot@gnu.org>
51aeded3 4007
b9edfa5c 4008 * etags.c: Honor #line directives.
a7c29764 4009 (no_line_directive): New global var; set it for old behavior.
51aeded3
FP
4010 (main): Remove some #ifdef in the getopt switch.
4011 (add_node, put_entries): Code added to merge different chunks of
4012 nodes referring to the same file. Currently the tags are just
4013 appended, without any check for duplicates.
4014 (Perl_functions): Do not special case ctags.
4015 (readline): Identify #line directives and do the right thing.
4016 (nocharno, invalidcharno): New global vars.
4017 (process_file): Reset nocharno.
4018 (readline): Set nocharno.
4019 (pfnote): Read nocharno and maybe put invalidcharno in node.
4020 (total_size_of_entries, put_entries): Use invalidcharno.
4021
4022 * etags.c: Keep the whole tag table in memory, even in etags mode.
4023 (main): Call put_entries here even in CTAGS mode.
4024 (main, process_file): Check the return values of fclose and pclose.
4025 (process_file): Do not call put_entries after parsing each file.
333f9019 4026 (process_file): Canonicalize file names even for ctags.
51aeded3
FP
4027 (process_file): Set curfile here...
4028 (find_entries): ... not here any more.
4029 (add_node): In etags mode, build a linked list of entries (on
4030 right pointer) for each file, and link the first entry of each
4031 file on left nodes.
4032 (put_entries): Print here the name of the file.
4033 (put_entries): Print the entries starting from the first file.
c150db23 4034 (number_len, total_size_of_entries): Define these only in etags
51aeded3
FP
4035 mode, make the second work only on the right nodes.
4036
4037 * etags.c: Make all global variables static.
4038
50ce1f62
JB
40392002-02-25 Juanma Barranquero <lektu@terra.es>
4040
4041 * makefile.w32-in (lisp): Add missing backslash.
4042
82a399d2
JR
40432002-02-24 Jason Rumney <jasonr@gnu.org>
4044
4045 * makefile.w32-in (WINNT_SUPPORT, MOUSE_SUPPORT, lisp): Revert to
4046 using .elc files.
c4cc8b9a 4047 (lisp): Sync with list in src/Makefile.in.
82a399d2
JR
4048 (VMS_SUPPORT, MSDOS_SUPPORT): Define, so DOC files can be shared.
4049
a279c920
PE
40502002-02-10 Paul Eggert <eggert@twinsun.com>
4051
4052 * rcs-checkin: Use `sort -k 2', not `sort +1', as POSIX 1003.1-2001
4053 disallows the old syntax.
4054
0caa685d
PE
40552002-02-03 Paul Eggert <eggert@twinsun.com>
4056
d7982012 4057 * rcs2log (Copyright): Update to 2002.
0caa685d
PE
4058 (AWK, TMPDIR): Work around portability problem in broken shells that
4059 don't understand `: ${VAR=val}'.
4060 (SORT_K_OPTIONS): New var, for hosts that conform to POSIX 1003.1-2001.
4061 Prefer the new -k option to the traditional +M -N option.
4062
880820fe 40632002-01-01 Pavel Janík <Pavel@Janik.cz>
03950b5b
PJ
4064
4065 * b2m.c (main): Parenthesize assignment when used as truth value
4066 to prevent gcc warnings.
4067
4068 * fakemail.c: Include <config.h>.
4069
880820fe 40702001-12-29 Pavel Janík <Pavel@Janik.cz>
2f8fe2f4
PJ
4071
4072 * cvtmail.c, emacsclient.c, emacsserver.c, pop.c, sorted-doc.c,
4073 * yow.c: Include <config.h>.
4074
880820fe 40752001-12-21 Francesco Potortì <pot@gnu.org>
a60e4de9
FP
4076
4077 * etags.c (Perl_functions): Tag packages and use them in sub tags.
4078 (get_tag): Return a pointer to the tag that is found.
4079
4080 * etags.c (LOOKING_AT): Use !intoken instead of iswhite.
b166dcd8
KC
4081 (F_takeprec): Rename from takeprec. All callers changed.
4082 (F_getit): Rename from getit. All callers changed.
4083 (nocase_tail): Rename from tail. All callers changed.
4084 (Ada_getit): Rename from adagetit. All callers changed.
eec54bd7 4085 (L_getit): Simplify by using get_tag.
a60e4de9
FP
4086 (Perl_functions, Postscript_functions, erlang_attribute): Use the
4087 modified LOOKING_AT.
e1dbe924 4088 (notinname): Remove '[' and added ')' to the recognized chars.
a60e4de9
FP
4089 (LOOKING_AT, get_tag, PHP_functions): Use notinname.
4090 (Ada_getit, Ada_funcs, Python_functions, Scheme_functions):
4091 Clarified, using strneq or notinname.
61b108cc 4092 (L_isdef, L_isquote): Remove.
a60e4de9
FP
4093 (Lisp_functions, L_getit): Clarified.
4094
b166dcd8 4095 * etags.c (P_): Rename to __P for consistency with config.h.
a60e4de9
FP
4096 [HAVE_CONFIG_H]: Let config.h deal with __P.
4097 [__STDC__] [!HAVE_CONFIG_H]: Define PTR as in config.h.
4098 [!__STDC__] [!HAVE_CONFIG_H]: Do not undefine static, because
4099 gperf code needs it.
ecc54057
JB
4100 [HAVE_CONFIG_H] [!PTR]: Define PTR (for use with XEmacs).
4101 [HAVE_CONFIG_H] [!__P]: Define __P (for use with XEmacs).
a60e4de9
FP
4102 (xmalloc, xrealloc): Use PTR instead of long *.
4103 (bool): Make it a define, not a typedef, for C++ compilers.
4104 (pattern): Members renamed to avoid name clash in some C++ compilers.
4105 (get_language_from_langname): Use const argument.
4106
880820fe 41072001-12-22 Pavel Janík <Pavel@Janik.cz>
c95eaa61
PJ
4108
4109 * makefile.nt, makefile.w32-in: Remove mocklisp files.
4110
880820fe 41112001-12-19 Pavel Janík <Pavel@Janik.cz>
69bfc389 4112
b8509940
PJ
4113 * emacsserver.c: Conditionally include config.h.
4114
594aa066
PJ
4115 * fakemail.c: Likewise.
4116
e69233c2
PJ
4117 * emacsclient.c: Include "config.h", not <../src/config.h>.
4118 (main): Parenthesize assignment when used as truth value to
4119 prevent gcc warnings.
4120
69bfc389
PJ
4121 * ebrowse.c: Include stdlib.h and string.h conditionally.
4122
e4e34e31
EZ
41232001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4124
4125 * yow.c (main): Use time_t, not long, to avoid a compiler warning.
4126
880820fe 41272001-12-18 Pavel Janík <Pavel@Janik.cz>
ffb7c9c6
PJ
4128
4129 * test-distrib.c: Fix previous change.
4130
fb5aa7ac
DL
41312001-12-18 Dave Love <fx@gnu.org>
4132
4133 * test-distrib.c: Conditionally include fcntl.h.
4134
4135 * fakemail.c: Include "config.h", not <../src/config.h>.
4136 (_XOPEN_SOURCE): Define as 500.
4137
4138 * emacsserver.c: Include "config.h", not <../src/config.h>.
4139
4140 * cvtmail.c: Include config.h, stdlib.h.
4141 (xmalloc, xrealloc, skip_to_lf sysfail): Prototype.
4142
4143 * yow.c: Conditionally include various headers. Use "epaths.h",
4144 not <../src/epaths.h>.
4145 (malloc, realloc) [!HAVE_STDLIB_H]: Prototype.
4146
880820fe 41472001-12-12 Francesco Potortì <pot@gnu.org>
e94a3679 4148
13dc0576 4149 * etags.c (PHP_functions): New function for parsing PHP.
e94a3679
FP
4150 (LOOKING_AT): New macro.
4151 (Perl_functions, Python_functions, PHP_functions)
4152 (Scheme_functions, Texinfo_nodes): Use it.
4153 (Perl_functions): Use strneq.
b166dcd8 4154 (prolog_pred): Rename to prolog_pr.
e1dbe924 4155 (prolog_pr): Recognize Prolog rules in addition to predicates.
e94a3679 4156 [ETAGS_REGEXPS] [!HAVE_CONFIG_H] [__CYGWIN__]: Prevent
13dc0576 4157 unmodified compile, as Cygwin's regex.h is incompatible with us.
e94a3679
FP
4158 [!HAVE_CONFIG_H] [!__STDC__]: #define const as the empty string.
4159
34e39c95
RS
41602001-12-11 Richard M. Stallman <rms@gnu.org>
4161
4162 * Makefile.in (clean): Don't delete ../etc/DOC*.
4163
880820fe 41642001-12-11 Pavel Janík <Pavel@Janik.cz>
296071e7
PJ
4165
4166 * COPYING: Moved back.
4167
76054cc8
AI
41682001-11-30 Andrew Innes <andrewi@gnu.org>
4169
35e951cd
JB
4170 * makefile.w32-in (FACE_SUPPORT, MOUSE_SUPPORT, FLOAT_SUPPORT)
4171 (WINNT_SUPPORT, lisp): Reference .el files instead of .elc files,
4172 to simplify bootstrapping.
76054cc8
AI
4173 ($(DOC)): Change dependency to just `make-docfile'.
4174
880820fe 41752001-11-29 Pavel Janík <Pavel@Janik.cz>
0142178a
PJ
4176
4177 * COPYING: Removed.
4178
e8d6a09b
PE
41792001-11-28 Paul Eggert <eggert@twinsun.com>
4180
4181 * rcs2log (Copyright): Add '(C)' as per coding guidelines.
4182
4183 The following changes are derived from suggestions by Bob Chapman
4184 <rechapman@compuserve.com>.
4185
4186 * rcs2log (printlogline): Also allow tab and newline to separate
4187 '(function):' from the rest of a comment.
4188 (reformat the sorted log entries): Require date and author to
4189 match the clumpname.
4190
9a190096
GM
41912001-11-16 Gerd Moellmann <gerd@gnu.org>
4192
4193 * ebrowse.c (matching_regexp): Escape '\\'.
4194
880820fe 41952001-11-15 Pavel Janík <Pavel@Janik.cz>
8ec1b917
PJ
4196
4197 * Makefile.in: Add support for --program-prefix, --program-suffix
4198 and --program-transform-name options.
4199
6d8f7d5d
RS
42002001-11-03 Richard M. Stallman <rms@gnu.org>
4201
4202 * cvtmail.c (xrealloc): Always pass two args to `fatal'.
4203
4204 * movemail.c (popmail): Always pass two args to `error'.
4205
84e70f78
KR
42062001-10-24 Ken Raeburn <raeburn@gnu.org>
4207
4208 * Makefile.in (HESIODLIB) [HAVE_LIBHESIOD]: Set to include
4209 -lhesiod and maybe -lresolv.
4210 (CRYPTOLIB) [HAVE_LIBK5CRYPTO]: Use -lk5crypto for Kerberos
4211 support if it's available.
4212
386ca361
MB
42132001-10-21 Miles Bader <miles@gnu.org>
4214
a3b10252
MB
4215 * make-docfile.c (struct rcsoc_state): New type.
4216 (read_c_string_or_comment): Add SAW_USAGE
386ca361 4217 parameter, and implement scanning for a `usage:' keyword.
a3b10252
MB
4218 Use a variable of type `rcsoc_state' to hold most of our state.
4219 (put_char): Add STATE parameter, and remove all other parameters
4220 except CH. Use STATE to get access to all needed state.
4221 (scan_keyword_or_put_char): New function.
386ca361
MB
4222 (scan_c_file): Pass SAW_USAGE argument to read_c_string_or_comment.
4223 Don't output a usage-string if there was one in the doc-string.
4224
71431a0e
GM
42252001-10-20 Gerd Moellmann <gerd@gnu.org>
4226
6aa97356 4227 * (Version 21.1 released.)
71431a0e 4228
880820fe 42292001-10-19 Pavel Janík <Pavel@Janik.cz>
37a9305e
PJ
4230
4231 * b2m.c: Properly spell the name of Emacs.
4232
945220bd
MB
42332001-10-17 Miles Bader <miles@gnu.org>
4234
4235 * make-docfile.c (put_char): New function.
4236 (read_c_string_or_comment): Strip trailing spaces and newlines.
4237
14242528
MB
42382001-10-16 Miles Bader <miles@gnu.org>
4239
4240 * make-docfile.c (scan_c_file): Handle `new style' doc strings in
4241 comments [with `doc:' keyword prefix].
4242
9f5eb4a3
GM
42432001-10-15 Gerd Moellmann <gerd@gnu.org>
4244
4245 * make-docfile.c (read_c_string_or_comment): Don't drop a '*'
4246 in a C doc comment.
4247
e641b454
GM
42482001-10-13 Gerd Moellmann <gerd@gnu.org>
4249
b166dcd8 4250 * make-docfile.c (read_c_string_or_comment): Rename from
e641b454
GM
4251 read_c_string. Add parameter COMMENT. Read C-style comments.
4252 (scan_c_file): Handle doc strings in C comments.
4253
967d7793
AI
42542001-10-12 Andrew Innes <andrewi@gnu.org>
4255
4256 * makefile.nt (ALL): Do not include fakemail.
4257
4258 * makefile.w32-in (install): Do not copy fakemail.
4259
d682756a
JR
42602001-10-10 Jason Rumney <jasonr@gnu.org>
4261
07655e62 4262 * makefile.w32-in (ALL): Do not include fakemail.
d682756a 4263
07655e62 4264 * makefile.nt (install): Ditto.
d682756a 4265
14a3dff7
GM
42662001-10-09 Gerd Moellmann <gerd@gnu.org>
4267
4268 * emacsserver.c (main): Cast geteuid in sprintf to int.
14a3dff7 4269
95bc7904 4270 * emacsclient.c (main): Cast isdigit argument to unsigned char.
14a3dff7 4271
880820fe 42722001-10-07 Pavel Janík <Pavel@Janik.cz>
f98d41f5
PJ
4273
4274 * profile.c: Include config.h, not ../src/config.h.
4275 Include systime.h, not ../src/systime.h.
4276
ab952a4f
GM
42772001-10-05 Gerd Moellmann <gerd@gnu.org>
4278
4279 * Branch for 21.1.
dff28924 4280
12c64503
GM
42812001-10-01 Alexander Zhuckov <zuav@int.spb.ru>
4282
4283 * ebrowse.c (struct alias): Add two new struct members: NAMESP and
4284 ALIASEE to help work with namespace aliases.
4285 (struct sym): Remove struct member NAMESP_ALIASES.
4286 (namespace_alias_table): New variable.
4287 (make_namespace): Add parameter CONTEXT.
4288 (check_namespace): New function.
4289 (find_namespace): Add parameter CONTEXT.
4290 (check_namespace_alias): New function.
02ce3e80
SM
4291 (register_namespace_alias): Change type of parameter OLD_NAME.
4292 Search for already defined alias in NAMESPACE_ALIAS_TABLE.
12c64503
GM
4293 (check_namespace): New function.
4294 (enter_namespace): Call find_namespace with CONTEXT parameter.
4295 (match_qualified_namespace_alias): New function.
eec54bd7 4296 (parse_qualified_ident_or_type): Fix typo in comment.
02ce3e80 4297 While parsing qualified ident or type update namespace context and
12c64503 4298 restore it on exit.
eec54bd7
SM
4299 (parse_qualified_param_ident_or_type): Fix typo in comment.
4300 (globals): Change handling of namespace aliases.
4301 (version): Add year 2001.
12c64503 4302
990e1190
FP
43032001-09-15 Eli Zaretskii <eliz@is.elta.co.il>
4304
4305 * etags.c (analyse_regex): If regex_arg is NULL, return
4306 immediately after a call to free_patterns.
4307
f2e7e23e
AS
43082001-09-05 Paul Eggert <eggert@twinsun.com>
4309
4310 * rcs2log (Help, mainline code): Add new option -L FILE.
4311 (Copyright): Update year.
02ce3e80
SM
4312 (LANG, LANGUAGE, LC_ALL, LC_COLLATE, LC_CTYPE, LC_MESSAGES)
4313 (LC_NUMERIC, LC_TIME): New shell vars, to make sure we live in the
f2e7e23e
AS
4314 C locale.
4315 (mainline code): Handle nonstandard -u option differently, by
4316 transforming it to standard form. Check for "Working file: ", not
4317 "Working file:". Allow file names with spaces.
4318 (SOH, rlogfile): New shell vars.
dff28924 4319 (rlogout): Remove. Its old functionality is mostly migrated to
f2e7e23e
AS
4320 rlogfile.
4321
4322 Append ';;' to the last arm of every case statement, for
4323 portability to ancient broken BSD shells.
4324
02ce3e80 4325 (logins): Fix bug; was not being computed at all, lowering performance.
f2e7e23e
AS
4326 (pository): New var. This fixes some bugs where repositories are
4327 remote, or have trailing slashes.
02ce3e80 4328 (authors): $llogout is never an empty shell var, so don't worry
f2e7e23e 4329 about that possibility.
dff28924 4330 (printlogline, mainline code): Fix bug with SOH's being put into
f2e7e23e 4331 the output.
dff28924 4332
75c911eb
EZ
43332001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
4334
4335 * ebrowse.c (SEEK_END): #define if not defined by system headers.
4336 Suggested by Dave Love <d.love@dl.ac.uk>.
4337
5ae10f4a
EZ
43382001-08-29 Eli Zaretskii <eliz@is.elta.co.il>
4339
4340 * makefile.nt (lisp): Synchronize with src/Makefile.in.
4341 * makefile.w32-in (lisp): Ditto.
4342
0e4011d8 43432001-07-25 Juanma Barranquero <lektu@terra.es>
e743f599
GM
4344
4345 * grep-changelog (parse_changelog): Remove unused local variable.
4346
4347 * grep-changelog (main): Add new option --reverse.
4348 (print_log): Use it.
4349 (parse_changelog): Use it.
4350
3c88ae74
GM
43512001-07-20 Gerd Moellmann <gerd@gnu.org>
4352
4353 * grep-changelog: Remove RCS Id keyword.
4354
41848daa
GM
43552001-07-20 Juanma Barranquero <lektu@terra.es>
4356
6e07c0a5
GM
4357 * grep-changelog (parse_changelog): Add tests for defined values
4358 to quiet warning from Perl 5.005 or above.
177ab8ce 4359 (entry_match_p, header_match_p): Fix handling of null or empty
0e4011d8
GM
4360 argument to prevent duplicate headers.
4361
4362 * grep-changelog (main, parse_changelog): Make "use strict"-clean.
41848daa 4363
467f1209
GM
43642001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4365
4366 * emacsclient.c (print_help_and_exit): Fix help message for
4367 +LINE:COLUMN option.
4368
43692000-07-17 Han-Wen Nienhuys <hanwen@cs.uu.nl>
990e1190 4370
467f1209
GM
4371 * emacsclient.c (main): Add support for +LINE:COLUMN command line
4372 argument.
4373
bb24c64f
GM
43742001-07-16 Gerd Moellmann <gerd@gnu.org>
4375
4376 * ebrowse.c (main): Check that the output file exists and
4377 is non-empty if invoked with `--append'.
4378
880820fe 43792001-05-14 Francesco Potortì <pot@gnu.org>
fa829470 4380
e335b66a
GM
4381 * etags.c (add_regex): Reset the whole newly allocated pattern
4382 buffer instead of the individual members. It's safer and works
ecc54057 4383 with XEmacs.
fa829470 4384
e335b66a 4385 * etags.1: Markups corrected.
fa829470 4386
6da5c7da
GM
43872001-05-08 Gerd Moellmann <gerd@gnu.org>
4388
02ce3e80 4389 * ebrowse.c (enter_namespace): Fix reallocation of namespace_stack.
6da5c7da 4390
efbecf9d
GM
43912001-05-03 Gerd Moellmann <gerd@gnu.org>
4392
4393 * ebrowse.c (globals): Fix handling of namespace aliases.
4394
f4976ebc
EZ
43952001-04-27 Eli Zaretskii <eliz@is.elta.co.il>
4396
4397 * etags.c (print_help): Enclose the regexp in the help text
4398 example in quotes.
4399
23431241
DL
44002001-04-05 Dave Love <fx@gnu.org>
4401
4402 * emacsclient.c (fail): Don't return a value.
fa829470 4403 (main): Cast uid values for sprintf.
23431241 4404
476bf681
GM
44052001-04-03 Gerd Moellmann <gerd@gnu.org>
4406
b3f6107b
GM
4407 * emacsclient.c (fail, main): Don't use implicit int return type.
4408
476bf681
GM
4409 * b2m.c (main): Always return a value.
4410
ef53d75e
GM
44112001-03-02 Gerd Moellmann <gerd@gnu.org>
4412
4413 * ebrowse.c (parse_qualified_param_ident_or_type): Return a
4414 freshly allocated object in *LAST_ID.
4415 (read_line): Accept \r\n line endings.
4416
425de386
AI
44172001-02-24 Andrew Innes <andrewi@gnu.org>
4418
4419 * makefile.w32-in: Fix copyright notice.
4420
880820fe 44212001-02-23 Francesco Potortì <pot@gnu.org>
f55ae599
FP
4422
4423 * etags.c (enum sym_type): New label st_C_template.
4424 (gperf input): Use it for switching to C++ from C.
4425 (consider_token): Do it.
e1dbe924 4426 (C_entries): Initialize typdefcblev to quiet compilers.
c2a642c0 4427 [!HAVE_CONFIG_H] [!__STDC__]: #define static as nothing.
f55ae599 4428
f6839838
AI
44292001-02-22 Andrew Innes <andrewi@gnu.org>
4430
4431 * makefile.nt ($(BLD)\movemail.obj): Remove reference to
4432 VMS header files.
4433 ($(BLD)\profile.obj): Ditto.
4434
4435 * makefile.w32-in ($(BLD)/movemail.$(O)): Remove reference to
4436 VMS header files.
4437 ($(BLD)/profile.$(O)): Ditto.
4438
193fba87
AI
44392001-02-05 Andrew Innes <andrewi@gnu.org>
4440
4441 * makefile.w32-in ($(DOC)): Use $(THISDIR) instead of . in
4442 invocation of make-docfile, to work with Windows 2000.
4443
30526cc6
DL
44442001-01-31 Dave Love <fx@gnu.org>
4445
4446 * etags.c (in_word_set): Use `static' in definition (for pcc).
4447
880820fe 44482001-01-31 Francesco Potortì <pot@gnu.org>
8f79fe72 4449
ecc54057 4450 * etags.c [NDEBUG]: #undef assert and #define it as ((void)0), for
8f79fe72
FP
4451 the sake of some buggy assert.h (e.g. in MinGW and sunos4 pcc).
4452 (C_entries): Tag token renamed to still_in_token because sunos4
4453 pcc wants to expand it as the token() macro even though it has no
4454 arguments.
4455
914d7258
AI
44562001-01-30 Andrew Innes <andrewi@gnu.org>
4457
4458 * etags.c (assert) [__MINGW32__]: Redefine assert to work around a
4459 bug in the Mingw32 assert.h header file.
4460
880820fe 44612001-01-30 Francesco Potortì <pot@gnu.org>
b28e26be 4462
ecc54057
JB
4463 * etags.c [WIN32-NATIVE]: #undef MSDOS, #undef WINDOWSNT and
4464 #define it for the sake of XEmacs.
b28e26be
FP
4465 [WINDOWSNT]: #undef HAVE_NTGUI even if built without
4466 HAVE_CONFIG_H. This change only affects a standalone etags.
4467 [WINDOWSNT]: #undef DOS_NT and #define it even if built with
4468 HAVE_CONFIG_H. This change does nothing in Emacs, as DOS_NT is
4469 always defined when HAVE_CONFIG_H and WINDOWS are both defined.
2f2c687b 4470 [!HAVE_UNISTD_H]: Use defined(WINDOWSNT) instead of the bare
b28e26be
FP
4471 WINDOWSNT, as this is the correct way to use it.
4472
880820fe 44732001-01-28 Francesco Potortì <pot@gnu.org>
8c463abe
FP
4474
4475 * etags.c: Be capable to parse nested struct-like structures.
4476 (structdef, structtag): Struct state machine revisited.
4477 (struct tok): Revisited.
4478 (cstack, nestlev, instruct): New struct and macros.
4479 (pushclass_above, popclass_above, write_classname): New functions
13dc0576 4480 for dealing with nested class names.
8c463abe
FP
4481 (consider_token, make_C_tag, C_entries): Many changes for dealing
4482 with arbitrarily nested structures.
4483 (etags_getcwd): #if MSDOS, not #ifdef MSDOS!
4484 (C_entries): Consider templates in C++.
4485 (sym_type): New constant st_C_class for detecting "class" also in
4486 C mode.
4487 (C_AUTO): New macro for automatic detection of C++.
4488 (consider_token): Automatic set C++ mode.
4489 (C_entries): New security check for yacc.
4490 (print_language_names, print_help): Mention the autodetect
07655e62 4491 feature, do not show help for the -C option, now mostly useless.
8c463abe
FP
4492 (C_entries): Tag C++ forward declarations if --declarations.
4493 (C_entries): Don't be fooled by things like XDEFUN.
4494 (consider_token): Discard asm pseudo function.
4495
e26f9ced
EZ
44962001-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4497
4498 * etags.c: Add a coding: tag.
4499
a47b7816
GM
45002001-01-26 Gerd Moellmann <gerd@gnu.org>
4501
8c463abe 4502 * ebrowse.c (matching_regexp_buffer, matching_regexp_end_buf):
a47b7816
GM
4503 New variables.
4504 (matching_regexp): Use them instead of static variables in
4505 function scope.
4506
880820fe 45072001-01-25 Francesco Potortì <pot@gnu.org>
d22a24fa 4508
b166dcd8
KC
4509 * etags.c (struct tok): Rename from struct token.
4510 (token): Rename from tok.
d22a24fa
FP
4511 (structtype): Make it a local variable.
4512 [DEBUG]: Use assert.
4513 (xrnew): Change the synopsis.
b166dcd8 4514 (typedefs_or_cplusplus): Rename from typedefs_and_cplusplus.
d22a24fa 4515 (grow_linebuffer): Don't call xrnew when not needed.
02ce3e80 4516 (token): Buffer renamed to line.
d22a24fa 4517 (C_entries): Three calls to inibuffer moved here from main.
eec54bd7 4518 (C_entries): Remove all references to var methodlen, delete it.
d22a24fa
FP
4519 (linebuffer_setlen): Was grow_buffer, now also sets len.
4520 (consider_token, C_entries, Pascal_functions): Use it.
4521 (C_entries): Preventing problems relative to extern "C".
4522 (C_entries): Can tag more than one variable or func separated by
4523 comma when --declarations is used.
4524 (C_entries): More accurate tagging of members and declarations.
4525 (yacc_rules): Was global, made local to C_entries.
61b108cc 4526 (next_token_is_func): Remove.
d22a24fa
FP
4527 (fvdef): New constants fdefunkey, fdefunname.
4528 (consider_token, C_entries): Use them.
4529 (C_entries): Build proper lisp names for Emacs DEFUNs.
4530
21c2bbe0
GM
45312001-01-22 Gerd Moellmann <gerd@gnu.org>
4532
4533 * ebrowse.c (xfree): New function.
4534 (member, declaration, globals): Use xmalloc instead of alloca.
4535
880820fe 45362001-01-15 Francesco Potortì <pot@gnu.org>
83be933c
FP
4537
4538 * etags.c (print_language_names): Print filenames in addition to
4539 suffixes.
4540
880820fe 45412001-01-14 Francesco Potortì <pot@gnu.org>
47df1a5e 4542
b166dcd8 4543 * etags.c (get_language_from_langname): Rename from
47df1a5e 4544 get_language_from_name.
b166dcd8 4545 (get_language_from_filename): Rename from get_language_from_suffix.
eec54bd7 4546 Now first looks for the complete file name.
47df1a5e
EZ
4547 (language): New member char **filenames.
4548 (Makefile_filenames): List of possible filenames for makefiles.
eec54bd7 4549 (lang_names): Add a NULL member for every entry, added an entry
47df1a5e 4550 for makefiles.
13dc0576 4551 (Makefile_targets): New function.
c5e87d10 4552 (Texinfo_nodes): Rename from Texinfo_functions and made
47df1a5e
EZ
4553 it conformant to the style of the rest of the code.
4554
291c7e74
GM
45552001-01-13 Gerd Moellmann <gerd@gnu.org>
4556
4557 * make-docfile.c (write_c_args): Print newlines as spaces.
4558
0dac6924
AI
45592001-01-06 Andrew Innes <andrewi@gnu.org>
4560
4561 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
4562 of *.pdb.
4563
3e99d3b4
GM
45642001-01-03 Paul Eggert <eggert@twinsun.com>
4565
290afd83 4566 * rcs2log: Avoid security hole allowing attacker to
3e99d3b4
GM
4567 cause user of rcs2log to overwrite arbitrary files, fixing
4568 a bug reported by Morten Welinder.
4569
4570 Don't put "exit 1" at the end of the exit trap; it's
4571 ineffective in POSIX shells.
4572
d6bb0c0d
GM
45732001-01-02 Gerd Moellmann <gerd@gnu.org>
4574
eec54bd7
SM
4575 * ebrowse.c (yyerror): Change to take two arguments.
4576 Add prototype. Change callers.
d6bb0c0d 4577
d5c00476 45782001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
315f5865
EZ
4579
4580 * ebrowse.c (enter_namespace, main): Cast variables to shut up
4581 compiler warnings.
4582 (yyerror): Change parameter declarations to be of type long, so
4583 that they can take pointers on 64-bit platforms.
4584
4585 * emacsclient.c (main): Remove unused local variable statbfr.
4586 (main) <homedir>: Make its declaration conditional on
4587 SERVER_HOME_DIR, to avoid compiler warnings.
4588
4589 * emacsserver.c (main) <homedir>: Make its declaration conditional
4590 on SERVER_HOME_DIR, to avoid compiler warnings.
4591
4592 * fakemail.c (readline): Cast buffer to "long *" to pacify
4593 over-zealous compilers.
4594
7c89ea61
EZ
45952000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4596
4597 * etags.c (canonicalize_filename) [DOS_NT]: Fix last change.
4598
a6768cc5
GM
45992000-12-15 Gerd Moellmann <gerd@gnu.org>
4600
4601 * ebrowse.c (operator_name): Cast argument of isalpha to
4602 unsigned char.
4603
4604 * etags.c (ISALNUM, ISALPHA, ISDIGIT, ISLOWER): New macros.
4605 Use them throughout instead of ctype functions/macros.
4606 (lowcase): Cast to unsigned char.
4607 (UPCASE): New macro.
4608 (canonicalize_filename): Use UPCASE instead toupper.
4609
4610 * fakemail.c (get_keyword): Make sure that isspace and
4611 similar aren't called with a negative argument.
4612
70de49cc
DL
46132000-12-13 Dave Love <fx@gnu.org>
4614
4615 * ebrowse.c (ensure_scope_buffer_room): Fix xrealloc call.
4616
4e8b894c
AI
46172000-12-06 Andrew Innes <andrewi@gnu.org>
4618
4619 * makefile.w32-in (LOCAL_FLAGS): Remove -DVERSION flag, since we
4620 don't know the real version, and I can't seem to get the quoting
4621 right in all circumstances.
4622
4623 * ebrowse.c (VERSION): Provide default definition, like etags.c
4624 does, because Windows build can't snarf this from version.el.
4625
88257bc8
AI
46262000-11-30 Andrew Innes <andrewi@gnu.org>
4627
4628 * makefile.w32-in ($(BLD)/ebrowse.exe): Use tabs not spaces.
4629 (install): Ditto.
4630
d19249e7
JR
46312000-11-23 Jason Rumney <jasonr@gnu.org>
4632
4633 * makefile.w32-in: Add targets for ebrowse.exe.
4634 (LOCAL_FLAGS): Add -DVERSION flag.
4635
7df6adc3
DL
46362000-09-25 Dave Love <fx@gnu.org>
4637
4638 * sorted-doc.c: Include config.h.
4639 [!HAVE_STDLIB_H]: Declare malloc.
4640
fe83b953
AI
46412000-09-14 Andrew Innes <andrewi@gnu.org>
4642
4643 * makefile.w32-in: Revert to Unix line endings.
4644
517699ca
DL
46452000-09-04 Dave Love <fx@gnu.org>
4646
4647 * movemail.c (index, rindex): Prototype conditionally.
4648
f8803e97
AI
46492000-09-03 Andrew Innes <andrewi@gnu.org>
4650
4651 * makefile.w32-in: Change to DOS line endings.
4652
f72adc12
EZ
46532000-09-01 Eli Zaretskii <eliz@is.elta.co.il>
4654
4034f3a8 4655 * movemail.c (toplevel): Remove redundant fcntl.h.
f72adc12
EZ
4656 [!F_OK]: Provide default definitions only after including both
4657 fcntl.h and unistd.h.
4658
f678f592
DL
46592000-08-29 Dave Love <fx@gnu.org>
4660
4661 * movemail.c: Revert previous change.
4662
5b671d04
EZ
46632000-08-29 Eli Zaretskii <eliz@is.elta.co.il>
4664
4665 * Makefile.in (profile, make-docfile, hexl): Depend on config.h.
4666
6fa86045
DL
46672000-08-28 Dave Love <fx@gnu.org>
4668
4669 * movemail.c (toplevel) [HAVE_STRING_H]: Include string.h.
4670 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
4671
746d9caf
AI
46722000-08-22 Andrew Innes <andrewi@gnu.org>
4673
4674 * ntlib.h (WIN32): Remove unnecessary definition.
4675 (sleep): Make argument unsigned long.
4676 (_WINSOCK_H): Undefine so normal winsock definitions can be used.
4677
4678 * ntlib.c (sleep): Make argument unsigned long.
4679
4680 * movemail.c (main) [WINDOWSNT]: Force binary mode for fileio.
4681
4682 * makefile.w32-in: New file.
4683
3b541489
EZ
46842000-08-20 Eli Zaretskii <eliz@is.elta.co.il>
4685
4686 * etags.c (canonicalize_filename) [DOS_NT]: Upcase the first
4687 letter only if it is a drive letter.
4688
e5acf0ca
GM
46892000-07-14 Gerd Moellmann <gerd@gnu.org>
4690
b166dcd8 4691 * ebrowse.c (xrealloc, xmalloc): Rename from yrealloc and ymalloc.
e5acf0ca
GM
4692
4693 * etags.c (xmalloc, xrealloc): Make externally visible, for use
4694 by alloca.o.
4695
02ce3e80 4696 * Makefile.in (alloca.o): Add -Demacs so that alloca will use xmalloc.
e5acf0ca 4697
4b92c49a
GM
46982000-07-10 Gerd Moellmann <gerd@gnu.org>
4699
4700 * ebrowse.c (yylex): Accept string literals with newlines in them.
4701 (process_pp_line): Handle case of string literal with newline
4702 in it in replacement text, which counts as continuing the
4703 replacement text in GNU C.
4704
831a6cb0
GM
47052000-07-02 Gerd Moellmann <gerd@gnu.org>
4706
4707 * ebrowse.c (token_string): Add missing tokens.
4708 (parm_list): Handle case of qualified pointers.
4709
53245ee2
DL
47102000-06-23 Dave Love <fx@gnu.org>
4711
4712 * ebrowse.c: Move config.h before other includes (which may use
4713 feature tests).
4714
dcbf2cd2
JM
47152000-06-14 Jim Meyering <meyering@lucent.com>
4716
4717 * grep-changelog: Fix typos in comments. Remove trailing blanks.
4718
f1c7754a
JR
47192000-06-11 Jason Rumney <jasonr@gnu.org>
4720
4721 * makefile.nt: Add targets for ebrowse.
4722
4723 * ebrowse.c [WINDOWS_NT]: Use stricmp instead of strcasecmp to
4724 compare filenames.
4725
5f1aea9a
GM
47262000-06-06 Gerd Moellmann <gerd@gnu.org>
4727
b166dcd8
KC
4728 * ebrowse.c (ymalloc): Rename from xmalloc.
4729 (yrealloc): Rename from xrealloc.
5f1aea9a 4730
5bf244f1
DL
47312000-05-21 Dave Love <fx@gnu.org>
4732
4733 * movemail.c: Include config.h, not ../src/config.h.
4734 (Errmsg): Bump length.
4735
4736 * pop.c (ERROR_MAX): Increase to 160.
4737
ec82fb2f
GM
47382000-05-04 Gerd Moellmann <gerd@gnu.org>
4739
4740 * ebrowse.c (DEFAULT_OUTFILE): Set to `BROWSE'.
4741
5c922ea7
EZ
47422000-05-02 Eli Zaretskii <eliz@is.elta.co.il>
4743
02ce3e80
SM
4744 * ebrowse.c (PATH_LIST_SEPARATOR) [__MSDOS__ || WINDOWSNT]:
4745 Define to semi-colon.
5c922ea7 4746 (FILENAME_EQ): New macro, for comparing file names.
02ce3e80 4747 (add_member_decl, add_global_decl, add_member_defn): Use FILENAME_EQ.
5c922ea7
EZ
4748 (process_file): Don't assume that fread always reads as many bytes
4749 as it was told to (DOS-style CR-LF text files fail this logic).
4750 (open_file): Allocate enough space for path->path plus the file
4751 name and the slash.
4752
6142fdcb 47532000-04-19 Dave Love <fx@gnu.org>
97052c63
DL
4754
4755 * etags.c (Texinfo_functions): New function.
4756 (lang_names): Install it.
4757 (Texinfo_suffixes): New variable.
4758
cb9215e4
GM
47592000-04-19 Gerd Moellmann <gerd@gnu.org>
4760
4761 * ebrowse.c (xmalloc, xrealloc): Rewritten.
4762 (declaration): Remove parameter IS_EXTERN.
4763 (class_definition): Remove unused variable.
4764
be0dbdab
GM
47652000-04-09 Gerd Moellmann <gerd@gnu.org>
4766
4767 * Makefile.in (INSTALLABLES): Add ebrowse.
4768 (ebrowse): New target.
4769
4770 * ebrowse.c: New file.
4771
c5aa0fc2
AS
47722000-03-29 Andreas Schwab <schwab@suse.de>
4773
4774 * make-docfile.c (scan_lisp_file): Also look for `defsubst'.
4775
d054101f
GM
47762000-03-02 Gerd Moellmann <gerd@gnu.org>
4777
07e99590 4778 * etags.c (lisp_suffixes): Add `LSP'.
d054101f 4779
880820fe 47802000-02-10 Francesco Potortì <pot@gnu.org>
71cbb895 4781
eec54bd7 4782 * etags.c (iswhite): Redefine not to consider '\0' as white
71cbb895
FP
4783 space, and use it throughout in place of isspace, thus preventing a
4784 potential signed char to int conversion problem.
10d1d0af 4785 (MSDOS): #undefine before redefining.
71cbb895 4786
880820fe 47872000-02-04 Francesco Potortì <pot@gnu.org>
71cbb895
FP
4788
4789 * etags.c (many functions): Add prototypes.
4790
97fa0cc8
DL
47912000-02-10 Dave Love <fx@gnu.org>
4792
4793 * etags.c (pfnote, new_pfnote, C_entries, prolog_pred)
4794 (erlang_func): Add `static' to definitions to keep pcc happy.
4795
880820fe 47962000-01-31 Francesco Potortì <pot@gnu.org>
e4100b7f
FP
4797
4798 * etags.c [MSDOS]: Set MSDOS to 1 if #defined, 0 otherwise.
4799 (get_compressor_from_suffix, process_file): Use MSDOS in if clause.
4800 (etags_strchr, etags_strrchr): Use const char * and int as arguments.
4801 (getenv, getcwd): Only declare them if necessary.
4802 (EMACS_NAME): New constant macro.
4803 (print_version): Use it.
4804 (P_) [__STDC__]: Macro for defining function prototypes.
e4100b7f 4805
19e262bd 48062000-01-18 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
e4100b7f
FP
4807
4808 * etags.c [WINDOWSNT]: #include <direct.h>
4809
19e262bd 48102000-01-18 Martin Buchholz <martin@xemacs.org>
e4100b7f 4811
19e262bd
FP
4812 * etags.c (all functions): Made them static.
4813 (all functions): Write prototypes.
e4100b7f 4814
55e30d2a
RS
48152000-01-29 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4816
4817 * movemail.c (main): Improve error message if can't create lock file.
4818
c60ee5e7 48192000-01-28 Eric Hanchrow <offby1@blarg.net>
875c1439
GM
4820
4821 * emacsclient.c (socket_status): New function.
02ce3e80 4822 (main): If $LOGNAME or $USER exist and differ from our euid, look
875c1439
GM
4823 for a socket based on the UID associated with the name.
4824
e4936aa9
GM
48252000-01-12 Han-Wen Nienhuys <hanwen@cs.uu.nl>
4826
4827 * emacsclient.c: Add option -a EDITOR and environment variable
4828 ALTERNATE_EDITOR. Exec this editor if we fail to contact Emacs.
4829
f0131492 48301999-12-10 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
791a9087
GM
4831
4832 * movemail.c (popmail): Allow mailbox specifications of the
4833 form `po:username:hostname'.
4834
880820fe 48351999-11-19 Francesco Potortì <pot@gnu.org>
e2081362
FP
4836
4837 * etags.c (_GNU_SOURCE): Define only if undefined.
4838 (get_scheme): Declaration deleted.
02ce3e80 4839 (main): Error was called with an integer as second arg, instead of
e2081362
FP
4840 a char pointer.
4841 (canonicalize_filename): Bug removed.
4842
48431999-11-18 Dave Love <d.love@dl.ac.uk>
4844
4845 * etags.c (C_entries): Rename label `intoken', avoiding K&R
4846 lossage from name clash with macro.
4847
b05d3bee
GM
48481999-11-13 Gerd Moellmann <gerd@gnu.org>
4849
4850 * Makefile.in (b2m): Add dependency on GETOPTDEPS.
4851
cb3a6c48
GM
48521999-11-03 Gerd Moellmann <gerd@gnu.org>
4853
4854 * etags.c (print_help): Change email address to send bugs to.
4855
6088b51f 48561999-11-01 Francesco Potortì <pot@gnu.org>
1c478461
FP
4857
4858 * etags.c: Add suffix psw for PSWrap.
4859 (L_getit): Generalize a "cp!=' '" into "!isspace(*cp)".
4860 (Postscript_functions): Add code for PSWrap.
4861 (Scheme_functions): Use local pointer and new get_tag function.
4862 (get_tag): New name for old get_scheme.
4863 (process_file): Do not free NULL when file does not exist.
4864 (typdef): ttypedefseen renamed to tkeyseen, new label ttypeseen.
4865 (C_entries): Modifications that make --members tag even inside
4866 typedefs and C nested structs (one level only).
eec54bd7 4867 (consider_token): Correct a bug which prevented tagging of enum
1c478461 4868 constants.
eec54bd7 4869 (C_stab_entry): Add if, for, while, switch, return as
1c478461
FP
4870 st_C_ignore. This makes it simpler to work when cblev!=0.
4871
02ce3e80 4872 * etags.c (C_entries): Tag member function declarations when
1c478461
FP
4873 --declarations is used.
4874
4875 * etags.c (C_entries, consider_token): C++ `operator' now is
4876 tagged in most cases.
e1dbe924 4877 As before, :: is not recognized if surrounded by spaces.
1c478461
FP
4878
4879 * etags.c (relative_filename): Account for DOS file names such
4880 that is impossible to make one relative to another.
4881
4882 * etags.c (sym_type): New st_C_extern tag.
4883 (gperf input): Use it for spotting external declarations.
a7c29764 4884 (print_help): Document the new behavior of --declarations.
1c478461
FP
4885 (fvextern): New global variable.
4886 (consider_token, C_entries): Use it.
4887
4888 * etags.c (HAVE_GETCWD) [WINDOWSNT]: Define if undefined.
4889 (etags_getcwd): Remove test for WINDOWSNT.
4890
4891 * etags.c (process_file) [MSDOS]: If foo.c.gz is not found, try
4892 foo.cgz, foo.cz, etc.
4893
4894 * etags.c (declarations): New global switch.
4895 (longopts): Describe it.
4896 (print_help): Document it.
4897 (C_entries): Use it.
4898 (process_file): Don't process a file twice.
4899
4900 * etags.c (Fortran_functions): No tags for "procedure".
4901
49021999-11-01 Eli Zaretskii <eliz@is.elta.co.il>
4903
4904 * etags.c (get_compressor_from_suffix): Second argument EXTPTR, if
4905 non-zero, returns a pointer to where the extension begins; callers
4906 changed.
4907 [MSDOS]: Support DOS file names by handling e.g. foo.cgz as if it
4908 were foo.c.gz.
4909
880820fe 49101999-11-01 Francesco Potortì <pot@gnu.org>
1c478461
FP
4911
4912 * etags.c (sym_type, C_stab_entry): New constant st_C_operator.
4913 (fvdev): New constant foperator.
4914 (consider_token): Use it to get "operator" in C++.
4915 (C_entries): Extend length of operator@ function name.
4916 (C_entries): Use foperator when necessary.
4917
4918 * etags.c (main) [!ETAGS_REGEXPS]: Do not call free_patterns.
4919
4920 * etags.c (compressor): New struct for compressed files.
4921 (get_compressor_from_suffix): New function.
4922 (get_language_from_suffix): Use it. Also, semantics changed.
4923 (process_file): Consider compressed files, close file.
4924 (find_entries): Use different call arg for get_language_from_suffix,
4925 don't close file.
4926
4927 * etags.c (main): Call free_tree.
4928 (find_entries): Do not free curfile.
4929 (pfnote): Cosmetic change: NULL and '\0' where appropriate.
4930 (prolog_pred, erlang_func, substitute): Cast strlen to int when
4931 comparing.
4932 (canonicalize_filename): Shut up compiler warning.
4933 (Perl_functions): Make tag significant.
4934
49351999-11-01 Dave Love <d.love@dl.ac.uk>
4936
4937 * etags.c (longopts, optstring): New option --ignore-case-regex (-c).
4938 (argument_type): New member at_icregexp.
4939 (lc_trans): New global.
4940 (main): Fill lc_trans. Process -c args.
4941 (add_regex): New arg determining whether to use translation table.
4942 (analyse_regex): New arg. Use it for add_regex.
4943
880820fe 49441999-11-01 Francesco Potortì <pot@gnu.org>
1c478461
FP
4945
4946 * etags.c (init): Cosmetic change: NULL --> '\0'.
4947 (erlang_attribute): Bug corrected (uninitialized variable).
4948 (filename_is_absolute): New function replaces absolutefn macro and
02ce3e80 4949 corrects a bug. All callers changed.
1c478461
FP
4950 (canonicalize_filename): New function.
4951 (process_file, etags_getcwd, absolute_dirname): Use it.
b166dcd8 4952 (relative_filename, absolute_filename): Remove var shadowing.
1c478461 4953 (C_entries, Pascal_functions): Add fake initializations to keep
02ce3e80 4954 compilers quiet.
1c478461
FP
4955 (TeX_functions, Prolog_functions, Erlang_functions): Cleanup.
4956
4957 * etags.c (xrnew): New macro. All callers of xrealloc changed.
4958 (language): New typedef (was struct lang_entry).
4959 (curlang): New global variable.
02ce3e80 4960 (node): Typedef renamed from NODE.
1c478461
FP
4961 (linebuffer): New typedef (was struct linebuffer).
4962 (pattern): New typedef (was struct pattern). Some members added.
4963 Now used as element of a linked list.
4964 (patterns, num_patterns): Global variables deleted.
4965 (p_head): New global variable.
a64387ee 4966 (forced_lang): New global variable (replaces lang_func).
02ce3e80
SM
4967 (get_language_from_name, get_language_from_interpreter)
4968 (get_language_from_suffix): Semantics changed. All callers changed.
1c478461 4969 (last_node): New global variable.
02ce3e80
SM
4970 (free_tree, add_node, put_entries, total_size_of_entries):
4971 Change name of local vars to avoid clashes with typedef node.
1c478461
FP
4972 (number_len): Rewritten for elegance.
4973 (token): New typedef replaces TOKEN.
4974 (analyse_regex, add_regex): Rewritten for new functionality.
4975 (free_patterns): New function called from main and add_regex.
4976 (initbuffer, readline_internal, readline, grow_linebuffer):
02ce3e80 4977 Change name of local vars to avoid clashes with typedef linebuffer.
1c478461
FP
4978 (readline): Rewritten for new functionality.
4979
ecc54057 4980 * etags.c (Scheme_suffixes): New suffix ".ss".
1c478461
FP
4981 (print_help): --globals is now used for more than C-type languages.
4982 (Perl_functions): Tag global variables ("my" and "local").
4983
4984 * etags.c (print_help): Some messages clarified.
4985 (LOOP_ON_INPUT_LINES): New macro.
02ce3e80
SM
4986 (just_read_file, Fortran_functions, Asm_labels, Perl_functions)
4987 (Python_functions, Cobol_paragraphs, Pascal_functions)
4988 (Lisp_functions, Postscript_functions, Scheme_functions)
4989 (TeX_functions, Prolog_functions, Erlang_functions): Use it.
4990 (Cobol_paragraphs, Postscript_functions, TeX_functions)
4991 (Prolog_functions, Erlang_functions): Use a local variable instead
1c478461
FP
4992 of the global variable dbp.
4993 (Pascal_functions, L_isquote, Scheme_functions): Use GNU coding
4994 standard indentation.
4995
02ce3e80
SM
4996 * etags.c (Python_suffixes, lang_names, Python_functions):
4997 Python support.
1c478461 4998 (skip_spaces, skip_non_spaces): Utility functions.
02ce3e80
SM
4999 (find_entries, takeprec, getit, Fortran_functions, Perl_functions)
5000 (Python_functions, L_getit, Lisp_functions, Scheme_functions)
5001 (prolog_pred, erlanf_func, erlang_attribute): Use them.
61b108cc 5002 (eat_white): Delete.
1c478461
FP
5003
5004 * etags.c (CHAR, init): Keep into account non US-ASCII
5005 characters and compilers with default signed chars.
5006 (L_getit): Tag "(defstruct (foo", "(defun (operator" and similar
5007 constructs.
ecc54057 5008 (C_stab_entry): "interface" in Java behaves like "class".
1c478461 5009
ecc54057 5010 * etags.c (HAVE_NTGUI) [WINDOWSNT]: #undef if HAVE_CONFIG_H.
1c478461
FP
5011 (main): Put interval syntax here.
5012 (add_regex): And remove it from here.
5013
5014 * etags.c (suggest_asking_for_help): Provide a
5015 meaningful help message with and without LONG_OPTIONS.
5016
d07529f3 5017 * etags.c (<io.h>) [MSDOS]: Include it, don't include string.h.
1c478461
FP
5018 <stdlib.h, string.h>: Don't test MSDOS when including them.
5019 (white, nonam, endtk): Like elsewhere, use \r instead of \013.
5020 (put_entries): Correctly use %ld instead of %d in printf.
5021
d07529f3 5022 * etags.c (<unistd.h>) [HAVE_UNISTD_H]: Include conditionally, else
1c478461
FP
5023 declare getcwd if HAVE_GETCWD.
5024 (consider_token): Dead break instruction removed.
5025
4ee9629e
PE
50261999-10-19 Paul Eggert <eggert@twinsun.com>
5027
5028 Add support for large files. Merge glibc 2.1.2.
1c478461 5029
4ee9629e 5030 * b2m.c, emacsclient.c, emacsserver.c, fakemail.c, make-docfile.c,
d07529f3 5031 * movemail.c, pop.c:
4ee9629e
PE
5032 Do not include <stdlib.h>, as <config.h> does this now.
5033
5034 * b2m.c, emacsserver.c, etags.c, profile.c:
5035 Include <config.h> before any system include files.
1c478461 5036
4ee9629e 5037 * emacsclient.c, emacsserver.c, fakemail.c, movemail.c, pop.c,
d07529f3 5038 * test-distrib.c:
4ee9629e
PE
5039 (read, write, open, close): Do not undef.
5040
5041 * getopt.c, getopt1.c: Adopt glibc 2.1.2, with the following fix:
5042 (const): Do not define if HAVE_CONFIG_H; that's config.h's job.
5043
5044 * getopt.h: Adopt glibc 2.1.2.
1c478461 5045
93c8d183
DL
50461999-10-15 Dave Love <fx@gnu.org>
5047
5048 * Makefile.in (pop.o): Depend on config.h.
5049
b358f91c
GM
50501999-10-11 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5051
5052 * pop.c: Use "pop3" as the POP service name on all platforms,
5053 instead of using "pop" on Unix and "pop3" on Windows NT. "pop3"
5054 has been the standard service name since RFC 1340 was published in
5055 July 1992, so I think it's safe to start using it by default.
5056
362bc2da
DL
50571999-09-27 Dave Love <fx@gnu.org>
5058
5059 * make-docfile.c (scan_lisp_file): Fix typo causing infloop.
5060
74e4cb59
PR
50611999-09-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5062
5063 * make-docfile.c (scan_lisp_file): Fix previous changes;
5064 swallow CRLF like just CR or just LF.
5065
362bc2da
DL
50661999-09-03 Richard Stallman <rms@gnu.org>
5067
5068 * make-docfile.c: Include config.h not ../src/config.h.
5069 (main, fopen, chdir): Add #undef.
5070 (read_c_string, scan_c_file, skip_white, read_lisp_symbol)
5071 (scan_lisp_file): Handle \r like \n.
5072
50731999-08-30 Andreas Schwab <schwab@gnu.org>
5074
5075 * make-docfile.c, fakemail.c: Include <stdlib.h> if available.
5076
5077 * emacsserver.c: Include <stdlib.h> if available. Don't declare
5078 errno if it's a macro.
5079
5080 * test-distrib.c: Include <unistd.h> if available.
5081
50821999-08-29 Richard Stallman <rms@gnu.org>
5083
5084 * emacsclient.c (print_help_and_exit): Mention --version.
5085
50861999-08-25 Richard M. Stallman <rms@gnu.org>
5087
5088 * emacsclient.c (decode_options): Update version output.
5089 (print_help_and_exit): Update bug report address.
5090
50911999-08-13 Richard M. Stallman <rms@gnu.org>
5092
5093 * emacsclient.c (main): Move the dynamic allocation of
5094 system_name outside of the SERVER_HOME_DIR conditional.
5095 * emacsserver.c (main): Likewise.
5096
50971999-08-10 Gerd Moellmann <gerd@gnu.org>
5098
5099 * grep-changelog: New.
5100 * Makefile.in (INSTALLABLE_SCRIPTS): Add it.
5101
51021999-07-12 Richard Stallman <rms@gnu.org>
5103
5104 * Version 20.4 released.
5105
51061999-06-30 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
5107
1c478461 5108 * Makefile.in (clean): Remove fns*.el.
362bc2da
DL
5109
51101999-06-23 Dave Love <fx@gnu.org>
5111
5112 * etags.c (erlang_attribute): Fix undefined variable usage (after
c91c771d 5113 Potortì).
362bc2da 5114
86e888c2 51151999-05-02 Andrew Innes <andrewi@gnu.org>
362bc2da
DL
5116
5117 * movemail.c (main) [WINDOWSNT]: Call ftruncate, which is now
5118 mapped to _chsize.
5119
51201999-04-29 Richard M. Stallman <rms@gnu.org>
5121
5122 * emacsclient.c (main, both versions): Use quote_file_name on cwd.
5123
51241999-03-30 Dave Love <fx@gnu.org>
5125
5126 * sorted-doc.c (main): Split up tables. Modify the preamble
5127 somewhat.
5128
51291999-03-05 Geoff Voelker <voelker@cs.washington.edu>
5130
5131 * makefile.nt: Remove common multiple file compilation commands.
5132
51331999-02-26 Richard Stallman <rms@gnu.org>
5134
362bc2da
DL
5135 * Makefile.in (yow): Depend on epaths.h, not paths.h.
5136
5137 * yow.c: Refer to epaths.h.
5138
51391999-02-22 Simon Josefsson <jas@pdc.kth.se>
5140
5141 * emacsserver.c (perror_1, fatal_error): Don't compile unless needed.
5142
51431999-01-27 Andrew Innes <andrewi@gnu.org>
5144
5145 * makefile.nt: Do make version comparison as strings.
5146
51471999-01-25 Richard Stallman <rms@gnu.org>
5148
5149 * emacsclient.c (xmalloc): Fix previous change.
5150
51511999-01-24 Richard M. Stallman <rms@borg.ai.mit.edu>
5152
5153 * emacsclient.c (xmalloc): Declare to return long.
5154
51551999-01-22 Geoff Voelker <voelker@cs.washington.edu>
5156
5157 * etags.c (etags_getcwd, absolute_filename) [DOS_NT]: Canonicalize
5158 the case of the drive letter.
5159
51601999-01-15 Richard Stallman <rms@psilocin.ai.mit.edu>
5161
5162 * emacsserver.c (main): Eliminate arbitrary limit on
5163 length of system_name.
5164
5165 * emacsclient.c (main): Eliminate arbitrary limit on
5166 length of system_name.
5167 (xmalloc): Define unconditionally.
5168
51691999-01-12 Darrin B. Jewell <jewell@mit.edu>
5170
5171 * etags.c (relative_filename): Stop backward search at beginning
5172 of string, since non-Unix systems can have absolute paths with no
5173 initial slash.
5174
51751998-12-08 Geoff Voelker <voelker@cs.washington.edu>
5176
b0b19974 5177 * makefile.nt: Do string comparison of _NMAKE_VER.
362bc2da 5178
c60ee5e7 51791998-11-03 Theodore Jump <tjump@cais.com>
362bc2da
DL
5180
5181 * makefile.nt: Compile multiple source files when possible.
5182
51831998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
5184
5185 * Makefile.in: Replace tabs with spaces
5186 when they might confuse some Make versions.
5187
51881998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
5189
5190 * emacsclient.c (main): Null-terminate system_name.
5191
5192 * emacsserver.c (main): Null-terminate system_name.
5193
51941998-09-21 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5195
5196 * movemail.c (popmail, pop_retr) [MAIL_USE_POP]: When displaying
5197 an error message from POP, mention that it's from POP, to
5198 distinguish it from local error messages.
5199
52001998-09-04 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5201
5202 * movemail.c [MAIL_USE_POP]: Add the "-r" flag to reverse the
5203 order of messages downloaded from a POP server (e.g., if the
5204 server stores messages in mailboxes in reverse order).
5205
52061998-08-19 Richard Stallman <rms@psilocin.ai.mit.edu>
5207
5208 * Version 20.3 released.
5209
52101998-08-11 Paul Eggert <eggert@twinsun.com>
5211
5212 * rcs2log: Update copyright date and bug report address.
5213 (initialize_fullname): Prefer getent if available.
5214
52151998-07-30 Paul Eggert <eggert@twinsun.com>
5216
290afd83 5217 * Makefile.in (REGEXPDEPS, regex.o):
362bc2da 5218 Prepend $(srcdir)/ to rule dependencies outside this dir.
1c478461 5219
362bc2da
DL
52201998-06-09 Andrew Innes <andrewi@harlequin.co.uk>
5221
5222 * etags.c (etags_getcwd) [WINDOWSNT]: Use getcwd on Windows.
5223
52241998-06-06 Richard Stallman <rms@psilocin.ai.mit.edu>
5225
5226 * Makefile.in: Properly terminate a comment.
5227
52281998-06-01 Andrew Innes <andrewi@mescaline.gnu.org>
5229
5230 * movemail.c (sys_wait): Rename to wait.
5231
5232 * ntlib.h: Undefine _WINSOCKAPI_.
5233
5234 * makefile.nt (LOCAL_FLAGS): Define HAVE_CONFIG_H.
5235
52361998-05-30 Geoff Voelker <voelker@cs.washington.edu>
5237
5238 * ntlib.c (getppid): Look for EM_PARENT_PROCESS_ID.
5239
52401998-05-01 Andrew Innes <andrewi@harlequin.co.uk>
5241
b166dcd8
KC
5242 * movemail.c [WINDOWSNT]: Undefine DISABLE_DIRECT_ACCESS.
5243 Force all file i/o to be in binary mode. Include ntlib.h.
362bc2da
DL
5244
52451998-04-27 Andreas Schwab <schwab@delysid.gnu.org>
5246
5247 * make-docfile.c: Include <unistd.h> for chdir.
5248
52491998-04-25 Richard Stallman <rms@psilocin.gnu.org>
5250
5251 * etags.c (TEX_decode_env): Don't free the value getenv returns.
5252
52531998-04-17 Geoff Voelker <voelker@cs.washington.edu>
5254
5255 * makefile.nt (obj): Update with new files in src.
5256 (clean): Delete patch scratch files, optimized compilation dir.
5257
52581998-04-08 Dave Love <fx@gnu.org>
5259
5260 * emacsclient.c: Move inclusion of unistd.h to top, else fails on
5261 Irix6, at least.
5262
52631998-04-06 Andreas Schwab <schwab@gnu.org>
5264
5265 Silence -Wimplicit:
5266 * movemail.c: Move cancelations up. Include <stdlib.h> if
5267 available.
5268 * fakemail.c (_XOPEN_SOURCE): Define for declaration of cuserid.
5269 (parse_header): Explicitly declare return type.
5270 * emacsserver.c: Include <unistd.h> if available.
5271 (main, handle_signals, perror_1, fatal_error): Explicitly declare
5272 return types. Add forward declarations.
5273 * emacsclient.c: Include <stdlib.h> and <unistd.h> if available.
5274 Don't declare geteuid.
b166dcd8
KC
5275 (print_help_and_exit): Change return type to void.
5276 Forward declare it.
362bc2da
DL
5277 * b2m.c: Include <stdlib.h> if available.
5278 (main): Explicitly declare return type.
5279
362bc2da
DL
52801998-04-03 Richard Stallman <rms@psilocin.gnu.org>
5281
5282 * etags.c (put_entries): Use %ld.
5283
5284 * b2m.c (fatal): Declare the arg.
5285
52861998-03-26 Richard Stallman <rms@psilocin.gnu.org>
5287
b166dcd8 5288 * pop.c (pop_getline): Rename from getline.
362bc2da
DL
5289
52901998-03-05 Richard Stallman <rms@psilocin.gnu.org>
5291
5292 * Makefile.in (install): Use INSTALL_STRIP with INSTALL_PROGRAM
5293 for the utilities.
5294
52951998-01-23 Dave Love <d.love@dl.ac.uk>
5296
5297 * etags.c (getit, Cobol_paragraphs, Pascal_functions,
5298 Postscript_functions, prolog_pred, erlang_func, erlang_attribute):
5299 Always make named tags.
5300 (Fortran_functions): Grok BLOCK DATA.
5301
53021998-01-23 Andreas Schwab <schwab@gnu.org>
5303
5304 * movemail.c (main): Fix interwoven brace and cpp conditional
5305 nesting.
5306
362bc2da
DL
53071997-12-03 Paul Eggert <eggert@delysid.gnu.org>
5308
cb438d6e
JB
5309 * movemail.c (mbx_write) [MAIL_USE_POP]: Disable the code which quotes
5310 with a '>' any lines starting with "From " read from the POP server,
5311 but leave the code in place, wrapped in #ifdef
362bc2da 5312 MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later
b166dcd8
KC
5313 because it turns out that something is depending on it.
5314 Change suggested by Paul Eggert <eggert@twinsun.com>.
362bc2da
DL
5315 Convert the character \037 (^_) at the beginning of a line into
5316 the character '^' followed by the character '_', because otherwise
5317 Emacs can't parse the resulting file as a valid BABYL file.
5318 Change suggested by Paul Eggert <eggert@twinsun.com>.
5319
53201997-12-03 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5321
5322 * movemail.c, pop.c, pop.h: Allow messages retrieved from the POP
5323 server to contain embedded nulls.
5324
53251997-12-02 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
1c478461 5326
362bc2da
DL
5327 * movemail.c (mbx_write) [MAIL_USE_POP]: Disable the code which
5328 quotes with a '>' any lines starting with "From " read from the
5329 POP server, but leave the code in place, wrapped in #ifdef
5330 MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later
b166dcd8
KC
5331 because it turns out that something is depending on it.
5332 Change suggested by Paul Eggert <eggert@twinsun.com>.
362bc2da
DL
5333
5334 Convert the character \037 (^_) at the beginning of a line into
5335 the character '^' followed by the character '_', because otherwise
5336 Emacs can't parse the resulting file as a valid BABYL file.
5337 Change suggested by Paul Eggert <eggert@twinsun.com>.
5338
53391997-11-22 Richard Stallman <rms@gnu.org>
5340
5341 * b2m.c: Include getopt.h.
5342 (main): Use getopt_long to handle --version and --help.
5343
5344 * Makefile.in (b2m): Define VERSION. Link with $(GETOPTOBJS).
5345
53461997-10-31 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5347
b166dcd8
KC
5348 * pop.c (fullwrite): Get rid of an extra call to write.
5349 Problem pointed out by Chiaki Ishikawa.
362bc2da
DL
5350
53511997-10-16 Dave Love <d.love@dl.ac.uk>
5352
ecc54057
JB
5353 * etags.c (L_getit): Always make named tags so that Emacs
5354 completion on symbols containing `:' etc. works.
5355 (get_scheme): Likewise.
362bc2da
DL
5356
53571997-09-24 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5358
5359 * pop.c: Use system header files instead of declaring C-library
5360 functions explicitly.
5361
53621997-09-19 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5363
5364 * Version 20.2 released.
5365
53661997-09-15 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5367
5368 * Version 20.1 released.
5369
53701997-09-02 Andrew Innes <andrewi@harlequin.co.uk>
5371
5372 * makefile.nt (movemail.exe): Link wsock32.lib before LIBS.
5373
5374 * ntlib.c (getpid): Delete function.
5375
53761997-08-28 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5377
5378 * make-docfile.c (scan_lisp_file): Handle custom-declare-variable.
5379
53801997-08-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5381
5382 * emacsclient.c [HAVE_SYSVIPC]: Include errno.h, as in the other case.
5383 (main) [!BSD_SYSTEM]: Fix error message for getcwd failure.
5384
53851997-08-14 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5386
5387 * emacsserver.c (main): Use SOCKLEN_TYPE for fromlen, if it is defined.
5388
53891997-08-13 Kazushi (Jam) Marukawa <jam@poboxes.com>
5390
5391 * profile.c (get_time): Cast arg to fprintf.
5392
5393 * hexl.c (main): Use %08lx instead of %08x in printf because the
5394 variable named addresses is long.
5395
53961997-08-08 Geoff Voelker <voelker@cs.washington.edu>
5397
5398 * makefile.nt (lisp): Update paths to lisp files that have moved.
5399
54001997-08-08 Andrew Innes <andrewi@harlequin.co.uk>
5401
5402 * makefile.nt (ctags.obj): New target.
5403 (etags.obj, getopt.obj, make-docfile.obj): Update dependencies.
5404
5405 * ntlib.h: Add includes.
5406 Undo definitions of crt routines from config.h.
5407
54081997-08-06 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5409
5410 * etags.c (Yacc_suffixes, Asm_suffixes): Add some alternatives.
5411
54121997-07-22 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5413
5414 * pop.c: Support auto-configuration of both Kerberos V4 and
ecc54057
JB
5415 Kerberos V5 for movemail, including detection of V4 and V5 header
5416 files and libraries.
362bc2da 5417 Include <string.h> when STDC_HEADERS is defined, to get
ecc54057 5418 declarations of string functions.
362bc2da 5419 [KERBEROS5] (socket_connection): Support the current MIT Kerberos
ecc54057 5420 V5 API rather than the old one.
362bc2da 5421 [KERBEROS] (socket_connection): Change a constant name from
ecc54057
JB
5422 SOCKET_ERROR to POP_SOCKET_ERROR to avoid a namespace conflict
5423 with a constant in a header file.
362bc2da
DL
5424
5425 * Makefile.in: Support auto-configuration of both Kerberos V4 and
ecc54057
JB
5426 Kerberos V5 for movemail, including detection of V4 and V5 header
5427 files and libraries.
362bc2da
DL
5428
54291997-07-17 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5430
5431 * fakemail.c [HAVE_UNISTD_H]: Include unistd.h.
5432
5433 * etags.c [HAVE_UNISTD_H]: Include unistd.h.
1c478461 5434
362bc2da
DL
54351997-07-09 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5436
5437 * emacsclient.c [C_ALLOCA] (xmalloc): New function.
5438
54391997-07-04 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5440
5441 * movemail.c (rindex): Add declaration.
5442
d57727c9 54431997-07-01 Geoff Voelker <voelker@cs.washington.edu>
362bc2da
DL
5444
5445 * makefile.nt (GETOPTOBJS, GETOPTDEFS, MOVEMAILOBJS): Define.
5446 (movemail.exe): Depend upon and link with getopt files.
5447 (obj): Include new source files.
5448 (FACE_SUPPORT, MOUSE_SUPPORT, FLOAT_SUPPORT, WINNT_SUPPORT): Define.
5449 (lisp): Include new and reorganized elisp files.
5450
54511997-06-27 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5452
5453 * Makefile.in (blessmail): Find blessmail.el in mail subdirectory.
5454
54551997-06-25 Paul Eggert <eggert@twinsun.com>
5456
5457 * rcs2log: Don't assign to $0 in awk; some awks don't allow this.
5458
54591997-06-14 Karl Heuer <kwzh@gnu.ai.mit.edu>
5460
5461 * b2m.c (readline): Terminate buffer properly when EOF seen.
5462 Test for valid pointer before dereferencing it.
5463
880820fe 54641997-05-30 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5465
5466 * Makefile.in (etags): Remove -DETAGS_REGEXPS, because now it is
5467 defined inside etags.c if HAVE_CONFIG_H is defined.
5468
880820fe 54691997-05-29 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da 5470
ecc54057 5471 * etags.c (logical): Type name changed to bool.
362bc2da
DL
5472 (ETAGS_REGEXPS, LONG_OPTIONS) [HAVE_CONFIG_H]: #define them.
5473 (<getopt.h>) [LONG_OPTIONS]: Include conditionally.
5474 (getopt_long) [!LONG_OPTIONS]: Redefine as macro.
5475 (main): Accepted options depend on ETAGS_REGEXPS and LONG_OPTIONS.
5476 (longopts): New long options without short counterpart are
5477 globals, members, no-globals, no-members. Regexp options are now
5478 defined conditionally to ETAGS_REGEXPS.
78be8b64 5479 (print_help): Update.
362bc2da 5480
880820fe 54811997-05-22 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5482
5483 * etags.c (C_entries): Use "." instead of "::" for Java.
5484 (consider_token): is_func renamed to is_func_or_var.
5485 (C_entries): is_func renamed to funorvar.
e1dbe924 5486 (C_entries): Initialize tok.named.
362bc2da
DL
5487 (sym_type, C_stab_entry, consider_token): st_C_ignore is used to
5488 get rid of "import", "package" and "friend".
b166dcd8
KC
5489 (fvdef): Rename from funcdef. Also some constants renamed.
5490 All users changed.
362bc2da
DL
5491 (C_entries): Make separate tags for variables separated by comma.
5492 (globals, members): New flags.
5493 (main, C_entries): Use them.
5494 (make_C_tag, C_entries): Make tok a global variable.
1c478461 5495
880820fe 54961997-05-16 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5497
5498 * etags.c (funcdef): New vignore constant.
5499 (consider_token, C_entries): Use it to tag global variables.
5500 (print_help): Update for global variables.
5501 (consider_token, C_entries): Set the len member of token_name.
5502 (prolog_pred): Cleanup according to GNU coding standards.
5503 (Cobol_suffixes, lang_names, Cobol_paragraphs): Cobol support.
b166dcd8 5504 (prolog_white, erlang_white): Rename to eat_white, callers changed.
362bc2da 5505
880820fe 55061997-05-15 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5507
5508 * etags.c (CHARS, CHAR): New constant and macro.
5509 (iswhite, begtoken, intoken, endtoken): Use them.
5510 (notinname, _nin, nonam): New macro, array, string.
5511 (init): Cleanup and init _nin.
5512 (new_pfnote): New function.
5513 (make_C_tag) [traditional_tag_style]: Use it.
10d1d0af 5514 (traditional_tag_style): Constant set to TRUE for now.
362bc2da 5515
880820fe 55161997-05-14 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5517
5518 * etags.c (C_entries, Pascal_functions): Cleanup.
5519 (TeX_functions): NULL as a function arg needs a cast.
5520 (Erlang_functions, erlang_func, erlang_attribute): Cleanup.
5521
880820fe 55221997-05-13 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5523
5524 * etags.c (TeX_functions): Cleaned up.
61b108cc 5525 (tex_getit): Remove.
362bc2da
DL
5526
55271997-05-13 Paul Eggert <eggert@twinsun.com>
5528
5529 * rcs2log (files): When computing arguments automatically, ignore
ecc54057 5530 non-files within the RCS subdirectory.
362bc2da 5531
880820fe 55321997-05-13 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5533
5534 * etags.c (C_JAVA): New #define.
5535 (Cjava_suffixes): .java is Java.
5536 (Cjava_entries): New function.
5537 (lang_names): Add Java.
5538 (sym_type): Add st_C_javastruct for Java.
5539 (C_stab_entry): Add `extends' and `implements' keywords.
e1dbe924 5540 (consider_token, C_entries): Recognize Java structures.
362bc2da 5541
880820fe 55421997-05-12 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da 5543
7877f373
JB
5544 * etags.c (Cplusplus_suffixes): .pdb is PostScript with C syntax.
5545 (Postscript_suffixes): .ps is PostScript.
5546 (lang_names): Add postscript.
362bc2da
DL
5547 (Postscript_functions): New function.
5548 (TEX_decode_env): Close minor memory leak.
5549 (just_read_file): Correct the char number of the tag.
5550
55511997-05-11 Paul Eggert <eggert@twinsun.com>
5552
5553 * rcs2log (loginFullnameMailaddrs, logins, rlog_options, files):
ecc54057
JB
5554 Don't prepend $nl since this causes some shells to generate the
5555 empty string when IFS is $nl.
362bc2da 5556 (printlogline): Use SOH (octal code 1), not CR, since some
ecc54057 5557 PC-based shells mishandle CR.
362bc2da
DL
5558 (initialize_fullname): Set NIS_PATH to the empty string before invoking
5559 nismatch, in case it's set to some nonstandard value.
1c478461 5560
362bc2da
DL
55611997-05-06 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5562
5563 * pop.c (getline): Don't miss CRLF pairs when the CR and LF are
5564 read in separate blocks.
5565
880820fe 55661997-04-30 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5567
5568 * etags.c [TeX_named_tokens]: Set to FALSE if undefined.
5569 (struct linebuffer): New member `len' is the length of the string.
5570 (find_entries, Pascal_functions, TeX_functions, TEX_getit):
5571 Use it instead of strlen.
5572 (TEX_getit): Declare and define unconditionally as static.
5573 (TeX_functions): Use if instead of #if TeX_named_tokens.
5574 (add_regex): Set RE_INTERVALS flag for regex compilation.
5575 (substitute): Code cleanup.
5576 (readline_internal): Code cleanup, set new member `len'.
5577 (readline): Bug corrected.
5578
55791997-04-23 Geoff Voelker <voelker@cs.washington.edu>
5580
5581 * makefile.nt: Change references of windowsnt.h to ms-w32.h.
5582 (obj): Change references of nt*.c files to w32*.c files.
5583
880820fe 55841997-04-15 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5585
5586 * etags.c (xnew): Add support for debugging with chkmalloc.
5587 (error): Use this instead of printf whenever possible.
e1dbe924 5588 (main): Only call xnew after having initialized progname.
362bc2da
DL
5589 (substitute): Bad memory corruption error corrected.
5590
880820fe 55911997-04-08 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5592
5593 * etags.c (add_regex): Undo previous change.
5594 (relative_filename): Small memory leak closed.
5595 (absolute_filename): Cleaned up the code, possibly closing a bug.
5596 (absolute_dirname): Always return a newly allocated string.
1c478461 5597
362bc2da
DL
55981997-03-21 Paul Eggert <eggert@twinsun.com>
5599
5600 * rcs2log (files): Ignore files in RCS directory whose names are
ecc54057
JB
5601 of the form ,*, or *_; they are probably RCS lock files.
5602 Also, ignore files named .rcsfreeze.log or .rcsfreeze.ver;
362bc2da
DL
5603 they are used by rcsfreeze.
5604
880820fe 56051997-03-14 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da 5606
2f2c687b 5607 * etags.c (add_regex): Reset *putbuf before using it.
362bc2da
DL
5608
56091997-02-23 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5610
5611 * movemail.c (popmail): Remove some unnecessary function
5612 declarations.
5613 (popmail, pop_retr): Since popmail always passes mbx_write and mbf
5614 into pop_retr, there's no reason to pass in mbx_write, and the
5615 file argument can be declared FILE * explicitly. This fixes a
5616 compilation problem on systems with 64-bit pointers.
5617
56181997-02-13 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
5619
5620 * movemail.c: Delete duplicate inclusion of fcntl.h
5621 and duplicate #undefs of open, read, write, close.
5622
56231997-01-20 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5624
5625 * movemail.c (main): Do not display "[POP-password]" in the usage
5626 message when movemail is compiled without POP support.
5627 (main, popmail): Add the optional "-p" argument, which causes
5628 movemail to leave mail in the inbox after copying it into the
5629 output file.
1c478461 5630
362bc2da
DL
5631 * Makefile.in (movemail): Link with getopt.
5632
56331997-01-20 Paul Eggert <eggert@twinsun.com>
5634
ecc54057 5635 * rcs2log (--help, --version): New options, per GNU coding standards.
362bc2da
DL
5636 (Copyright, Help, Id): New variables, for above.
5637 (rlog): Use -q option with cvs log, to avoid useless chatter.
5638
5639 Treat logs of "Initial revision" (RCS) or "file F was initially added
5640 on branch B." (CVS) as if they said "New file.", for consistency with
5641 change log entries.
5642
56431997-01-01 Paul Eggert <eggert@twinsun.com>
5644
5645 * vcdiff (PATH): Add /usr/xpg4/bin,
5646 where XPG4 SCCS hangs out in Solaris 2.5.
5647 (sid1): Don't use bare -r, since XPG4 `get' does not allow it.
5648
56491996-12-19 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5650
5651 * etags.c (streq, strneq): Use == NULL rather than !.
5652
56531996-12-18 Jonathan I. Kamens <jik@annex-1-slip-jik.cam.ov.com>
5654
5655 * Makefile.in (LIBMAIL): New macro. Conditionally includes -lmail.
ecc54057 5656 (movemail): Use LIBMAIL, to link against -lmail.
362bc2da
DL
5657
5658 * movemail.c: Include maillock.h (conditionally).
5659 Remove a redundant inclusion of <stdio.h>.
5660 (MAIL_USE_MAILLOCK): New macro, conditionally defined.
5661 (main): Add variable spool_name.
5662 Support the usage of maillock and mailunlock to
ecc54057 5663 lock and unlock mailboxes.
362bc2da
DL
5664 (mail_spool_name): New function.
5665
5666 * movemail.c: Fix an uninitialized variable which could cause
ecc54057
JB
5667 movemail to exit with an error status incorrectly on systems which
5668 use lock files rather than a system locking function to lock
5669 mailboxes.
362bc2da
DL
5670
56711996-12-16 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5672
5673 * pop.c (socket_connection): Free realhost after using it.
5674
880820fe 56751996-12-04 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5676
5677 * etags.c (C_entries): Test tok.valid. This handles some
5678 particular cases involving function declarations that failed.
5679
56801996-11-22 Charles Hannum <mycroft@gnu.ai.mit.edu>
1c478461 5681
362bc2da
DL
5682 * pop.c (socket_connection):
5683 gethostbyname may return a pointer to static data.
5684 krb_realmofhost can clobber it. So copy it.
5685
880820fe 56861996-11-14 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5687
5688 * etags.c (pfnote, fatal, error): Callers using a NULL pointer
5689 must cast it to (char *) because we have no prototypes.
5690 (make_C_tag): Macro deleted, new function.
5691 (C_entries): Calls to make_C_tag macro changed to call function.
5692
880820fe 56931996-11-13 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5694
5695 * etags.c (grow_linebuffer): New function.
5696 (GROW_LINEBUFFER): Macro deleted. All callers changed.
5697 (make_tag): Macro renamed to make_C_tag. All callers changed.
5698 (<stdlib.h>, <string.h>) [STDC_HEADERS]: New #include's.
5699 (Prolog_functions): prolog_skip_comment was called with wrong
5700 number of arguments.
6088b51f 5701 (xrealloc): fatal was called with wrong number of arguments.
362bc2da 5702
880820fe 57031996-11-08 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5704
5705 * etags.c (relative_filename): Bug corrected.
5706 (etags_getcwd): Avoid warning of unused variable.
b166dcd8 5707 (C_entries, consider_token): Add support for enum labels.
362bc2da
DL
5708
57091996-11-03 Paul Eggert <eggert@twinsun.com>
5710
5711 * rcs2log: When processing cvs log output, remove `Attic/' from
ecc54057 5712 repository file names.
362bc2da
DL
5713
57141996-10-22 Karl Heuer <kwzh@gnu.ai.mit.edu>
5715
5716 * emacsserver.c: Fix 1996-09-02 change.
5717
57181996-10-12 Paul Eggert <eggert@twinsun.com>
5719
5720 * rcs2log (rlog_options): Look for ' option' rather than 'unknown
ecc54057 5721 option', since CVS says 'invalid option'.
362bc2da
DL
5722 (datearg): Use the empty string, not '-d>1970-01-01', to extract all
5723 revisions, since some hosts reject 1970-01-01 when east of UTC.
5724 (date): Remove.
5725
57261996-10-06 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5727
5728 * etags.c (etags_getcwd) [WINDOWSNT]: Convert backslashes to slashes.
5729
880820fe 57301996-10-02 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5731
5732 * etags.c (print_version): Print copyright info.
5733
5734 * etags.c (print_help): Print the bug reporting address.
5735 (main): Use return as the last instruction, instead of exit.
5736
5737 * etags.c (main): Don't open the tags file in cxref mode.
5738
57391996-09-29 Dave Love <d.love@dl.ac.uk>
5740
5741 * rcs2log (date): Make default format acceptable to CVS post v1.8
ecc54057 5742 as well as earlier CVSs and RCS.
362bc2da
DL
5743
57441996-09-29 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5745
5746 * movemail.c (main): If the lock call fails with EBUSY or
5747 EAGAIN, retry a few times.
5748
57491996-09-25 Paul Eggert <eggert@twinsun.com>
5750
5751 * rcs2log (rlog_options): Use $rlog, not rlog, when deciding
ecc54057 5752 whether to append -zLT.
362bc2da
DL
5753
57541996-09-16 Karl Heuer <kwzh@gnu.ai.mit.edu>
5755
5756 * fakemail.c: Replaced symbol BSD with BSD_SYSTEM.
5757 * emacsclient.c, movemail.c: Likewise.
5758
57591996-09-09 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5760
5761 * emacsclient.c (longopts): Change nowait to no-wait.
5762 (print_help_and_exit): Fix option name; upcase metavars.
5763
57641996-09-06 Erik Naggum <erik@naggum.no>
5765
5766 * emacsserver.c (main): Declare `fromlen' as size_t.
5767
57681996-09-02 Eli Zaretskii <eliz@is.elta.co.il>
5769
5770 * etags.c (etags_getcwd): Use getcwd if available even if MSDOS.
5771
57721996-09-02 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5773
5774 * emacsclient.c (quote_file_name): Quote with &, not \.
5775 Quote `-' only at start of file name. Terminate the value string.
5776
5777 * emacsserver.c: Include signal.h properly;
5778 delete the duplicate includes for it.
5779
5780 * emacsserver.c: On fatal signal, delete socket-file:
5781 * emacsserver.c: Include signal.h.
ecc54057 5782 (xmalloc, fatal, error): New functions.
362bc2da
DL
5783 (delete_socket, handle_signals): New functions.
5784 (progname, socket_name): New variables.
194d44e7 5785 [HAVE_SOCKETS] (main): Call handle_signals; set the new variables.
362bc2da
DL
5786
57871996-09-01 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5788
5789 * emacsclient.c (quote_file_name): New function.
5790 (main, both versions): Use quote_file_name.
5791 (decode_options): Don't return a value.
5792 (main, both versions): Use optind.
5793 Don't check for -nowait here.
1c478461 5794
362bc2da
DL
5795 * emacsclient.c (decode_options): New function.
5796 (main, both versions): Call decode_options.
5797 (print_help_and_exit): New function.
5798 (VERSION): New macro.
5799
5800 * Makefile.in (emacsclient): Link with getopt.
5801 Add -DVERSION so emacsclient knows its version number.
5802
58031996-08-31 Geoff Voelker <voelker@cs.washington.edu>
5804
5805 * makefile.nt (lisp): Include dos-nt.elc.
5806
58071996-08-31 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5808
5809 * Makefile.in (blessmail): Use $srcdir to find blessmail.el.
5810
58111996-08-28 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5812
5813 * emacsclient.c (both versions): Handle -nowait and --nowait
5814 by sending data to the server.
5815
58161996-08-26 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5817
5818 * Makefile.in (INSTALL_STRIP): New variable.
5819 (${archlibdir}): Use INSTALL_STRIP.
5820
5821 * Makefile.in (MOVE_LIBS): Use conditionals on KERBEROS,
5822 HAVE_LIBKRB, HAVE_LIBDES, HAVE_LIBCOM_ERR to set it up.
5823
5824 * pop.c: Reverse conditional in previous change.
5825
58261996-08-24 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5827
5828 * pop.c: Include des.h krb.h with no dir name if SOLARIS2.
5829
58301996-08-24 Paul Eggert <eggert@twinsun.com>
5831
5832 * rcs2log: Use ISO 8601 date format, with time zone appended
5833 if change-log-time-zone-rule is non-nil, instead of
5834 traditional Unix date format.
5835
5836 (datearg): When computing default from ChangeLog, handle ISO format
5837 dates in addition to old-fashioned dates from Emacs 19.31 and earlier.
5838 Don't worry about hh:mm:ss since the resolution is now by day.
10d1d0af 5839 Use empty datearg, not empty rlog_options, to decide whether to pass
362bc2da
DL
5840 "$datearg" option to $rlog.
5841 (logTZ): New variable, set to TZ specified by change-log-time-zone-rule.
5842 (month_data): Remove `mo'; no longer needed.
10d1d0af 5843 (rlog_options): Use -zLT for localtime output, if `rlog' supports it.
362bc2da
DL
5844
5845 Match `revision' line of rlog output more accurately.
5846
5847 Add -c, -v options.
5848
58491996-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5850
5851 * hexl.c: Include <config.h>, so DOS_NT is defined on MSDOS.
5852
58531996-08-11 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5854
5855 * Version 19.33 released.
5856
58571996-07-31 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5858
5859 * Version 19.32 released.
5860
58611996-07-23 Andrew Innes <andrewi@harlequin.co.uk>
5862
5863 * etags.c (readline_internal) [DOS_NT]: Don't include CRs when
5864 computing character positions in source files.
5865
58661996-07-16 Andrew Innes <andrewi@harlequin.co.uk>
5867
5868 * makefile.nt (clean): Use OBJDIR macro.
5869
58701996-07-16 Karl Heuer <kwzh@gnu.ai.mit.edu>
5871
5872 * cvtmail.c, sorted-doc.c, yow.c, emacsserver.c: Undo previous change.
5873
c60ee5e7 58741996-07-15 David Mosberger-Tang <davidm@AZStarNet.com>
362bc2da 5875
ecc54057 5876 * cvtmail.c, sorted-doc.c, yow.c [__GNU_LIBRARY__]: Use <string.h>.
362bc2da
DL
5877 * emacsserver.c (main) [__GNU_LIBRARY__]: Use size_t for fromlen.
5878 * etags.c, fakemail.c, profile.c: Declare main as int, not void.
5879
58801996-07-15 Andrew Innes <andrewi@harlequin.co.uk>
5881
5882 * ntlib.h: Correct return type of getwd.
5883 * ntlib.c (getwd): Correct return type.
5884
58851996-07-02 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
5886
5887 * emacsserver.c (main) [HAVE_SOCKETS]: Call rewind before writing
5888 to infile.
5889
58901996-07-01 Andrew Innes <andrewi@harlequin.co.uk>
5891
5892 * makefile.nt: Remove all references to wakeup.
5893
880820fe 58941996-06-28 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5895
5896 * etags.c (C_stab_entry): New keywords for C++ namespace, bool,
5897 explicit, mutable, typename.
5898
58991996-06-29 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5900
5901 * emacsclient.c (main) [HAVE_SOCKETS]: Use two separate stdio
5902 streams, one for sending and one for reading the reply.
5903
59041996-06-21 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5905
5906 * Makefile.in (timer, timer.o, getdate.o, $(srcdir)/getdate.c)
5907 (wakeup): Target deleted.
5908 (UTILITIES): Delete wakeup and timer.
5909
5910 * wakeup.c, timer.c, getdate.y, getdate.c: Files deleted.
5911
59121996-06-11 Geoff Voelker <voelker@cs.washington.edu>
5913
5914 * etags.c (etags_getcwd) [DOS_NT]: Change conditional to MSDOS only.
5915 * makefile.nt (ETAGS_CFLAGS): Define HAVE_GETCWD macro.
5916
59171996-06-06 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5918
5919 * etags.c (main): Copy cwd when appending slash.
5920
59211996-05-25 Karl Heuer <kwzh@gnu.ai.mit.edu>
5922
5923 * Version 19.31 released.
5924
880820fe 59251996-05-17 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
5926
5927 * etags.c (CNL_SAVE_DEFINEDEF): Set linecharno for use by readline.
5928 (Pascal_functions): Increase linecharno by the correct number of
5929 chars, inline the GET_NEW_LINE macro and delete its definition.
5930
c60ee5e7 59311996-05-03 Andrew Innes <andrewi@harlequin.co.uk>
362bc2da
DL
5932
5933 * makefile.nt (OBJDIR, BLD): Remove macro definitions.
5934
c60ee5e7 59351996-05-03 Andrew Innes <andrewi@harlequin.co.uk>
362bc2da
DL
5936
5937 * makefile.nt (LOCAL_FLAGS): Include path to NT shadow includes.
6088b51f 5938 (movemail.exe, fakemail.exe): Now built under Win32.o.
362bc2da
DL
5939
5940 * ntlib.c: Include ntlib.h.
5941 (nt_sleep): Rename to sleep.
5942 (getwd): Return directory.
5943 (getlogin, cuserid, getuid, setuid, getpwuid, getpass, fchown,
5944 sys_ctime, sys_fopen): New functions.
5945
5946 * ntlib.h: New file.
5947
59481996-04-29 Richard Stallman <rms@delasyd.gnu.ai.mit.edu>
5949
b166dcd8 5950 * pop.c (SEND, RECV): Rename from send, recv.
362bc2da
DL
5951 (pop_open, pop_trash): Make the trash_started code unconditional.
5952 (socket_connection): Delete casts to void.
5953
59541996-04-28 Richard Stallman <rms@delasyd.gnu.ai.mit.edu>
5955
b166dcd8
KC
5956 * movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
5957 Definitions copied from lisp.h.
362bc2da
DL
5958
59591996-04-22 Andrew Innes <andrewi@harlequin.co.uk>
5960
5961 * fakemail.c [WINDOWSNT]: Include ntlib.h.
5962
5963 * hexl.c [DOSNT]: Include fcntl.h.
5964 [WINDOWSNT]: Include io.h.
5965 (main) [MSDOS]: Change conditional to DOS_NT.
5966
5967 * movemail.c (access, unlink) [WINDOWSNT]: Macros undefined.
5968 (fork, syswait, DISABLE_DIRECT_ACCESS) [WINDOWSNT]: Macros defined.
5969 [WINDOWSNT]: Include locking.h.
5970 (main): Update usage message. Use IS_DIRECTORY_SEP.
5971 (main) [DISABLE_DIRECT_ACCESS]: Don't check access if defined.
5972 (main) [WINDOWSNT]: Invoke locking instead of flock.
5973 (main) [MAIL_USE_SYSTEM_LOCK && WINDOWSNT]: Emulate ftruncate.
5974 (main) [MAIL_USE_POP]: Pass password to popmail if used.
5975 Include winsock.h; don't include unix inet headers.
5976 (popmail): Add password argument and pass it to pop_open.
5977 Open output file in binary mode.
5978
5979 * pop.c [WINDOWSNT]: Include winsock.h and ntlib.h.
1c478461 5980 Macro SOCKET_ERROR undefined.
362bc2da
DL
5981 Don't declare h_errno.
5982 [!WINDOWSNT]: Define macros recv and send.
5983 [!WINDOWSNT] (POP_SERVICE): Change to pop3.
5984 (pop_open) [WINDOWSNT]: Initialize trash_started.
5985 (have_winsock) [WINDOWSNT]: New variable.
5986 (socket_connection) [WINDOWSNT]: Initialize winsock.
5987 (socket_connection): Use closesocket instead of close.
5988 (getline): Use recv instead of read.
5989 (fullwrite): Use send instead of write.
5990 (pop_trash): Use closesocket instead of close.
5991 (pop_trash) [WINDOWSNT]: Cleanup winsock.
5992 Check if being called recursively by sendline.
5993
5994 * pop.h (struct _popserver): New field trash_started.
5995
5996 * wakeup.c [HAVE_CONFIG_H]: Only include config.h when defined.
5997
59981996-04-14 Richard Stallman <rms@mole.gnu.ai.mit.edu>
5999
6000 * hexl.c (main) [DJGPP v2]: Don't change to binary for a tty.
6001
60021996-04-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6003
6004 * etags.c [WINDOWSNT]: Include io.h.
6005
60061996-04-10 Geoff Voelker <voelker@cs.washington.edu>
6007
6008 * makefile.nt (CTAGSOBJ): Compile with regexp support.
6009
60101996-04-09 Eli Zaretskii <eliz@is.elta.co.il>
6011
6012 * hexl.c [DJGPP v2]: Include io.h.
6013 (main) [DJGPP v2]: Switch standard streams to binary with setmode.
6014
6015 * b2m.c (main) [MSDOS]: Switch standard streams to binary under
6016 DJGPP v2.
6017
60181996-04-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6019
6020 * etags.c (absolute_filename): Use absolutefn.
6021
60221996-03-31 Eli Zaretskii <eliz@is.elta.co.il>
6023
6024 * etags.c (absolutefn) [DOS_NT]: Support Novell drives whose drive
6025 letter isn't an alphabetic character.
6026 (main) [DOS_NT]: Use binary mode on redirected `stdout'.
6027 (process_file) [DOS_NT]: Convert all slashes to forward style.
6028 (absolute_filename) [DOS_NT]: Emit error message for relative
6029 paths with a drive letter.
6030 (absolute_filename) [DOS_NT]: Handle absolute pathnames with
6031 DOS/NT drive letters which try to reference the parent of the root.
6032 (absolute_dirname) [DOS_NT]: Convert all slashes to forward style.
6033
60341996-03-27 Geoff Voelker <voelker@cs.washington.edu>
6035
6036 * makefile.nt: Change uses of del to $(DEL).
6037
880820fe 60381996-03-22 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
6039
6040 * etags.c (just_read_file): Reset lineno and charno on entry.
6041
60421996-03-15 Anders Lindgren <andersl@csd.uu.se>
6043
58179cce 6044 * etags.c: Prolog language totally rewritten.
ecc54057 6045 (Prolog_functions): Rewritten from scratch.
61b108cc 6046 (skip_comment, prolog_getit): Remove.
ecc54057
JB
6047 (prolog_skip_comment): New function, like old skip_comment.
6048 (prolog_pred, prolog_atom, prolog_white): New functions.
6049 (erlang_func, erlang_attributes): Forward declarations added.
6050 (erlang_atom): Check if backslash ends line inside quoted atom.
362bc2da 6051
880820fe 60521996-03-14 Francesco Potortì <F.Potorti@cnuce.cnr.it>
362bc2da
DL
6053
6054 * etags.c (absolutefn): DOS_NT version corrected.
6055 (main): Append "/" to the dir name only if not already there.
6056 (print_help): Explain the absolute/relative file name issue.
1c478461 6057
362bc2da
DL
60581996-03-08 Anders Lindgren <andersl@csd.uu.se>
6059
10d1d0af
JB
6060 * etags.c: New Language Erlang added.
6061 (Erlang_functions, erlang_func, erlang_attribute, erlang_atom)
6062 (erlang_white): New functions.
362bc2da
DL
6063 (Erlang_suffixes): New suffix list.
6064 (lang_names): Erlang entry added.
6065 (prolog_getit): Accepts headers spanning several lines.
6066 Always name tags.
b166dcd8 6067 (Prolog_functions): Remove incorrect compensation for
362bc2da
DL
6068 newline characters.
6069 (readline_internal): Zero-terminate last line.
6070
60711996-03-20 Mike Long <mike.long@analog.com>
6072
6073 * b2m.c (main): Initialize progname variable before using it.
6074 Quote `username' in From_ header.
6075
60761996-03-18 Geoff Voelker <voelker@cs.washington.edu>
6077
6078 * ntlib.c (getpid): New function.
6079
60801996-02-21 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
6081
6082 * emacsclient.c (main, both definitions):
6083 Print a newline for normal termination.
6084
60851996-02-21 Noah Friedman <friedman@prep.ai.mit.edu>
6086
6087 * tcp.c (main): Convert port to network byte order.
6088
60891996-01-20 Karl Heuer <kwzh@gnu.ai.mit.edu>
6090
6091 * pop.c (pop_retrieve, getline): Avoid type clashes.
6092
60931996-01-19 Karl Heuer <kwzh@gnu.ai.mit.edu>
6094
6095 * etags.c (enum sym_type, anonymous enum): Delete final comma.
6096
60971996-01-15 Paul Eggert <eggert@twinsun.com>
6098
6099 * rcs2log (initialize_fullname): Add support for NIS+.
6100 (hostname): Fully qualify the default hostname with the domainname
6101 if the hostname lacks a `.'.
6102
362bc2da
DL
61031996-01-10 Karl Heuer <kwzh@gnu.ai.mit.edu>
6104
6105 * etags.c (consider_token): Fix typo in expression.
6106
61071996-01-04 Paul Eggert <eggert@twinsun.com>
6108
6109 * etags.c (substitute): Fix spelling in message.
6110
61111996-01-03 George V. Reilly <georger@microcrafts.com>
6112
6113 * makefile.nt (etags, ctags): Compile with regexp support.
6114 (make-docfile, wakeup, etags, ctags, hexl): Ensure build
6115 subdirectory exists before compiling.
1c478461 6116
362bc2da
DL
61171996-01-02 Karl Heuer <kwzh@gnu.ai.mit.edu>
6118
6119 * emacsserver.c (main): Do chmod based on existing permission.
6120
61211995-12-27 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6122
6123 * Makefile.in (install): Turn on read/execute permission.
6124
61251995-12-03 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
6126
6127 * Makefile.in (LIB_STANDARD_LIBSRC): Use this instead of LIB_STANDARD.
6128 (LOADLIBES): Use LIB_STANDARD_LIBSRC.
6129
61301995-12-01 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
6131
b166dcd8 6132 * Makefile.in (THIS_IS_MAKEFILE): Rename from THIS_IS_YMAKEFILE.
362bc2da 6133
880820fe 61341995-12-07 Francesco Potortì <pot@cnuce.cnr.it>
362bc2da
DL
6135
6136 * etags.c (pfnote): Don't make a tag for ctags if there is no name.
6137 (getit, Asm_labels, Perl_functions, Pascal_functions, L_getit,
6138 get_scheme, prolog_getit): Name the tag in ctags mode.
6139 (pfnote): Truncate ctags lines to 50 chars, like it worked once.
6140 (Perl_interpreters): Accept "@PERL@" as an interpreter.
6141 (suggest_asking_for_help): New function.
6142 (main, get_language_from_name): Use suggest_asking_for_help.
6143 (main): Let get_language_from_name make language existence check.
6144 (streq, strneq): Check the arguments #if DEBUG.
6145
880820fe 61461995-12-06 Francesco Potortì <pot@cnuce.cnr.it>
362bc2da
DL
6147
6148 * etags.c (Cplusplus_suffixes): Add .M suffix for Objective C++.
b166dcd8
KC
6149 (gperf): Add keywords for Objective C and GNU macros.
6150 (sym_type): Add values to account for Objective C and GNU macros.
362bc2da
DL
6151 (begtk): The '@' character can start a token.
6152 (objdef, methodlen, objtag): New variables for Objective C.
b166dcd8 6153 (consider_token, C_entries): Add code for Objective C.
362bc2da
DL
6154 (plain_C_suffixes): Add .m and .lm for Objective C.
6155 (Yacc_suffixes): Add .ym for Objective yacc.
6156 (GROW_LINEBUFFER): New macro.
6157 (consider_token, C_entries, Pascal_functions): Use the new macro.
6158 (consider_token): Take one more argument. Caller changed.
6159 (consider_token): Use the hashing function to spot GNU macros.
6160 (C_entries): Consider // as a comment start even in plain C for
6161 the sake of Objective C parsing.
6162
880820fe 61631995-12-04 Francesco Potortì <pot@cnuce.cnr.it>
362bc2da 6164
2f2c687b 6165 * Makefile.in (ctags): Depend on etags only for simplicity;
ecc54057 6166 compile with regexp support enabled.
362bc2da
DL
6167
61681995-11-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6169
6170 * Version 19.30 released.
6171
61721995-11-22 Geoff Voelker <voelker@cs.washington.edu>
6173
6174 * makefile.nt (DOC, clean): Don't use switches to del not
6175 supported by Windows 95.
6176
61771995-11-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6178
6179 * Makefile.in (regex.o): Depend on ../src/config.h.
6180
61811995-11-12 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6182
6183 * Makefile.in (LIB_STANDARD): Extract this as in src/Makefile.in.
6184 (LOADLIBES): Use LIB_STANDARD.
6185
61861995-11-07 Kevin Gallo <kgallo@microsoft.com>
6187
6188 * makefile.nt (DOC): Include strings from w32term.c, w32xfns.c,
6189 w32fns.c, w32faces.c, w32select.c, w32menu.c, w32reg.c; remove
6190 Windows 95 conditional.
6191
880820fe 61921995-11-06 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6193
b166dcd8
KC
6194 * etags.c (get_lang_from_name, get_lang_from_interpreter)
6195 (get_lang_from_suffix): New functions.
362bc2da
DL
6196 (get_language): Function deleted.
6197 (lang_entry): Two members added to struct.
6198 (lang_names): Reflect the new layout of lang_entry.
6199 (print_language_names, main, find_entries): Use the new functions.
6200 (find_entries): Look at the first line for #! if no language.
6201 (C_entries): Invalidate the token when funcdef is reset.
6202 (Perl_functions): New function.
6203 (lang_suffixes): .pl and .pm are Perl suffixes.
6204
880820fe 62051995-11-02 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6206
6207 * etags.c (lowcase): Use the standard tolower function.
6208 (substitute): Remove some wrong and some useless code related with
a64387ee 6209 escape '\' character in regexp replacement string.
b166dcd8 6210 (TEX_defenv): Add part, appendix, entry, index. Remove typeout.
362bc2da
DL
6211 (lang_suffixes): New suffixes: .hpp for C++; .f90 for Fortran;
6212 .bib, .ltx, .TeX for TeX (.bbl, .dtx removed); .ml for Lisp;
6213 .prolog for prolog (.pl removed).
6214 (massage_name, etags_getcwd): Use lowcase instead of tolower.
b166dcd8 6215 (C_entries, find_entries): Add comments about memory leakage.
362bc2da
DL
6216 (add_node): Dead code removed.
6217
62181995-10-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6219
6220 * Makefile.in (getdate.o, movemail.o): Specify -Demacs.
6221 (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Delete -Demacs.
6222
62231995-08-30 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6224
6225 * test-distrib.c: Add #undef for open, close, read, write.
6226
62271995-08-23 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6228
6229 * test-distrib.c [HAVE_CONFIG_H]: Include config.h.
6230 [! O_RDONLY]: Define it to zero.
6231 (main): Use O_RDONLY instead of explicit zero.
6232
880820fe 62331995-08-17 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6234
6235 * etags.c (Pascal_functions): Close comment bug corrected.
6236 (add_node): Correctly compare node file names.
6237 (Pascal_functions): Correctly allocate and free memory for tline.
6238 (pfnote): Put the definition of fp in the innermost block.
6239 (NODE): `named' member removed.
6240 (pfnote, free_tree, put_entries, total_size_of_entries): Do not
1c478461 6241 use the `named' member, check whether `name' is NULL instead.
362bc2da
DL
6242 (pfnote): `named' argument removed, all callers changed.
6243 (getit, Asm_labels, Pascal_functions, L_getit, get_scheme,
6244 TeX_functions, TEX_getit, prolog_getit): Useless string allocation
1c478461 6245 removed from pfnote call, some code cleanup.
362bc2da
DL
6246 (relative_filename): Free temporary space allocated by concat.
6247
62481995-08-16 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6249
6250 * Makefile.in (getdate.c): New target.
6251 (getdate.o): Just compile getdate.c.
6252
62531995-08-12 Karl Heuer <kwzh@gnu.ai.mit.edu>
6254
6255 * fakemail.c (xrealloc): Change cast to match return type.
6256
62571995-08-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6258
6259 * fakemail.c (xmalloc, xrealloc): Use return-type long *.
6260
62611995-08-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6262
6263 * movemail.c (main): Fix previous change.
6264 Add error check for empty OUTNAME.
6265
62661995-08-05 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6267
6268 * movemail.c (main): Mention lock file name in error message.
6269
62701995-07-30 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6271
6272 * profile.c (gettimeofday): New function, defined if necessary.
6273
62741995-07-18 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6275
6276 * Makefile.in: Renamed from Makefile.in.in.
6277 (distclean): Delete Makefile.c, not Makefile.in.
6278
62791995-07-17 Michael Shields <shields@tembel.org>
6280
6281 * Makefile.in.in (tags): Synonym for `TAGS'.
6282
62831995-07-16 Karl Heuer <kwzh@gnu.ai.mit.edu>
6284
6285 * Makefile.in.in (install, maybe-blessmail): Don't cd ..;
6286 configure has already set $(INSTALL) to the proper relative path.
6287
362bc2da
DL
62881995-07-08 Paul Eggert <eggert@twinsun.com>
6289
6290 * rcs2log (datearg): Separate date from time with comma, not space,
6291 to work around CVS 1.5 bug.
6292 (CVSROOT): Don't abort when unset if repository is absolute.
6293
62941995-07-07 Paul Eggert <eggert@twinsun.com>
6295
6296 * rcs-checkin, rcs2log, vcdiff:
6297 Replace `#!/bin/sh' with `#! /bin/sh', for benefit of systems
6298 that interpret `#! /' as a 4-byte magic number.
6299
63001995-06-29 Jonathan I. Kamens <jik@cam.ov.com>
6301
6302 * movemail.c (main) [MAIL_USE_POP]: When a user specifies a
6303 mailbox with "po:mailbox", the mailbox is everything after the
6304 "po:" prefix.
6305
63061995-06-28 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6307
6308 * emacsserver.c: Make all error messages start with `Error: '.
ecc54057 6309 (fatal_error, perror_1): New functions, use throughout.
362bc2da
DL
6310
63111995-06-28 Paul Eggert <eggert@twinsun.com>
6312
6313 * rcs2log (CVSROOT, repository):
6314 Allow remote repositories a la CVS 1.4.
6315
880820fe 63161995-06-27 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6317
2f2c687b
JB
6318 * etags.c (plain_C_entries): New function.
6319 (lowcase): New macro.
6320 (tail, Fortran_functions, Pascal_functions): Use new macro lowcase.
6321 (lang_suffixes): New suffix ".pc" for Pro*C files.
6322 (consider_token): Don't tag all tokens beginning with DEFUN & Co..
6323 (tail): Look for the end of the token when comparing.
6324 (takeprec): Since now tail behaves differently, use strneq.
362bc2da
DL
6325
63261995-06-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6327
6328 * movemail.c (main): Add newline in usage message.
6329
63301995-06-21 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6331
6332 * make-docfile.c (scan_file): Make sure it never looks at filename[-1].
6333
880820fe 63341995-06-21 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6335
6336 * etags.c (find_entries): Rewind before rereading the input file.
6337
63381995-06-20 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6339
6340 * Version 19.29 released.
6341
6342 * make-docfile.c (main) [MSDOS]: Do set _fmode.
6343 This undoes part of the previous change.
6344
63451995-06-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6346
6347 * make-docfile.c (main): On MSDOS, don't change stdout
6348 to binary, and insist on an -o option.
6349
63501995-06-13 Geoff Voelker <voelker@cs.washington.edu>
6351
5165d44a 6352 * etags.c (process_file, absolute_filename): Handle filenames
362bc2da
DL
6353 starting with a drive letter.
6354
6355 * makefile.nt (install): Copy wakeup.exe properly.
6356
63571995-06-08 Karl Heuer <kwzh@gnu.ai.mit.edu>
6358
6359 * make-docfile.c [MSDOS]: #undef chdir.
6360
63611995-06-04 Paul Eggert <eggert@twinsun.com>
6362
6363 * rcs2log (output_authors): Allow ':' in time zone,
6364 as per ISO 8601 and RCS 5.6.8 beta.
6365
880820fe 63661995-05-29 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6367
6368 * etags.c (etags_getcwd): Undo the /bin/pwd change. It may raise
6369 compatibility problems.
6370
63711995-05-26 Richard Stallman <rms@gnu.ai.mit.edu>
6372
6373 * etags.c (etags_getcwd): Don't use #elif.
6374 Have just one function body.
6375
63761995-05-25 Geoff Voelker <voelker@cs.washington.edu>
6377
6378 * makefile.nt (LIBS): Use BASE_LIBS.
5165d44a 6379 (make-docfile.exe, hexl.exe, wakeup.exe, etags.exe): Don't depend
362bc2da
DL
6380 upon LIBS.
6381 (DOC): Use del instead of rm.
6382 (DOC) [WINDOWS95]: Use DOC.
6383 (clean): Handle MSVC aux files.
5165d44a 6384 (config.h, paths.h): Use $(CP) instead of cp.
362bc2da
DL
6385 (config.h): Use $(CONFIG_H)
6386 (make-docfile.obj): Depend upon config.h.
6387 Clean up comments.
6388
880820fe 63891995-05-23 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6390
6391 * etags.c (etags_getcwd): Use /bin/pwd instead of pwd because the
6392 former gives the true path even in the presence of simlinks.
6393
63941995-05-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6395
6396 * movemail.c (main): Increase lock timeout to five minutes.
6397
63981995-05-06 Geoff Voelker <voelker@cs.washington.edu>
6399
6400 * makefile.nt (obj): Use .c files.
6401
64021995-05-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6403
6404 * make-docfile.c: Include config.h.
6405 (NO_SHORTNAMES): New definition.
6406 (xmalloc): Return long *.
6407
6408 * etags.c (C_entries): Cast result of xrealloc.
6409 (xmalloc, xrealloc): Declare them to return long *.
6410
6411 * b2m.c (xmalloc, xrealloc): Declare them long *.
6412
6413 * movemail.c (xmalloc): Declare it to return long *.
6414
64151995-04-30 Paul Eggert <eggert@twinsun.com>
6416
6417 * rcs2log (datearg): If rlog options are specified explicitly,
6418 omit the implicit '-d>DATE' option.
6419 (repository, rlog): Allow absolute paths to CVS repositories.
6420 Look only at the first line of CVS/Repository.
6421
64221995-04-26 Karl Heuer <kwzh@gnu.ai.mit.edu>
6423
6424 * Makefile.in.in (extraclean): Depend on maintainer-clean, not
6425 realclean.
6426
64271995-04-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6428
6429 * Makefile.in.in [REGEXP_IN_LIBC] (REGEXPOBJ, REGEXPDEPS):
6430 Alternative (empty) definitions.
6431
64321995-04-18 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6433
6434 * emacsclient.c (main): Add argv[0] to an error message.
6435
64361995-04-13 Karl Heuer <kwzh@gnu.ai.mit.edu>
6437
6438 * emacsclient.c (main): Improve error handling.
6439 * cvtmail.c (main, skip_to_lf): Improve error handling.
6440 (sysfail): New function.
6441
6442 * b2m.c (main): Check for trailing ", " before trying to delete it.
6443
64441995-04-12 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6445
6446 * Makefile.in.in (all): Build test-distrib and make-docfile.
6447
6448 * make-docfile.c (scan_c_file): At end, restore file name last char
6449 to its original value.
6450
64511995-04-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6452
6453 * emacsclient.c, emacsserver.c: Test NO_SOCKETS_IN_FILE_SYSTEM.
6454
64551995-04-08 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6456
b166dcd8 6457 * Makefile.in.in (BASE_CFLAGS): Rename from ALLOCA_CFLAGS.
362bc2da
DL
6458 (alloca.o, regex.o): Use BASE_CFLAGS.
6459
64601995-04-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6461
6462 * emacsclient.c [Berkeley sockets version] (main): Declare getcwd.
6463
64641995-04-04 Karl Heuer <kwzh@gnu.ai.mit.edu>
6465
6466 * Makefile.in.in (aixcc, aixcc.c): Targets deleted.
b166dcd8 6467 (SOURCES, distclean): Remove obsolete references to aixcc.
362bc2da
DL
6468
64691995-04-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6470
6471 * aixcc.lex: File deleted--surely obsolete now.
6472
64731995-03-23 Paul Eggert <eggert@twinsun.com>
6474
6475 * rcs2log (output_authors): Replace /[/]/ by /[\/]/, for
6476 portability to mawk and nawk.
6477
64781995-03-21 Paul Eggert <eggert@twinsun.com>
6479
6480 * rcs2log: Treat -u "login:fullname:mailaddr" as if it were
6481 -u "login<tab>fullname<tab>mailaddr".
6482
64831995-03-21 Paul Eggert <eggert@twinsun.com>
6484
6485 * rcs2log: Add -u "login<tab>fullname<tab>mailaddr" option, which
6486 replaces the (now obsolescent) -n login fullname mailaddr option.
6487 Add -R option for recursive rlog.
07655e62 6488 (AWK): New environment variable (default `awk') for awk program name.
362bc2da
DL
6489 (output_authors, tab, loginFullnameMailaddrs, recursive): New vars.
6490 Quote authors and fullnames correctly.
6491 Don't omit path from repository root when logging CVS files.
6492
64931995-03-15 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6494
6495 * emacsclient.c, emacsserver.c: Use BSD sockets whenever available,
6496 even if HAVE_SYSVIPC.
6497 * emacsclient.c (main): Use getcwd if not BSD.
6498
880820fe 64991995-03-13 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6500
2f2c687b 6501 * etags.c (process_file): Free (filename) after using it.
362bc2da
DL
6502 (readline_internal): Do not access the char before start of line.
6503
880820fe 65041995-02-22 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6505
e1dbe924
PE
6506 * etags.c (C_entries): token_saved removed. Initialize tok.valid and
6507 savetok.valid. Mark token as valid when it is initialized.
362bc2da
DL
6508 (make_tag): Make token only if token is valid and reset validity.
6509 (CNL_SAVE_DEFINEDEF): Test for savetok.valid instead of token_saved.
b166dcd8 6510 (TOKEN): Add a new member: valid.
362bc2da 6511
880820fe 65121995-02-15 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6513
6514 * etags.c (C_entries): Bug corrected in xrealloc of token_str.
6515 (main): Do not read twice the last filename in the stdin file list.
6516
880820fe 65171995-02-14 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6518
e1dbe924 6519 * etags.c (C_entries): Initialize the new members of TOKEN.
362bc2da
DL
6520 (C_entries): Do not allocate a new space for each token found by
6521 consider_token. Let make_tag do that instead.
6522 (make_tag): Since now TOKEN has memory of where it is taken from,
6523 this new macro substitutes both make_tag_from_new_lb and
6524 make_tag_from_oth_lb. All callers changed.
6525 (TOKEN): Add linepos and buffer members.
e1dbe924
PE
6526 (main): Initialize token_str.
6527 (lang_extensions): Recognize .c++ and .h++ as C++ file suffixes.
362bc2da
DL
6528 (token_str): New global variable used by C_entries.
6529
65301995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu>
6531
b166dcd8 6532 * Makefile.in.in (maintainer-clean): Rename from realclean.
362bc2da 6533
880820fe 65341995-02-01 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6535
e1dbe924 6536 * etags.c (pfnote): Initialize been_warned in the node.
b166dcd8 6537 (C_entries): Remove a speed hack for the sake of clarity.
362bc2da 6538
880820fe 65391995-01-18 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6540
6541 * etags.c (longopts, print_help, main): Use -I as abbreviation
6542 for the --ignore-indentation option.
6543 (main): Do not print an error message for unknown options.
6544
880820fe 65451995-01-12 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6546
61b108cc 6547 * etags.c (FILEPOS, GET_CHARNO, GET_FILEPOS, max, LINENO): Delete.
194d44e7
JB
6548 (append_to_tagfile, typedefs, typedefs_and_cplusplus)
6549 (constantypedefs, update, vgrind_style, no_warnings)
6550 (cxref_style, cplusplus, noindentypedefs): Were int, now logical.
362bc2da
DL
6551 (permit_duplicates): Was a var, now a #define.
6552 (filename_lb): Was global, now local to main.
6553 (main): Open the tag file when in cxref mode.
6554 Use a BUFSIZ size buffer for making the shell commands.
6555 Look at the return value from the system routine.
6556 Exit when cannot open the tag file.
6557 (process_file): Open the file and pass the FILE* to find_entries.
6558 (find_entries): Now void, because does not open the file itself.
6559 (pfnote): Recovering from lack of memory does not work. Removed.
6560 Use savenstr and simplify the code.
6561 (free_tree): Only free the name space if node is named.
6562 (structtag): Now a pointer, not a fixed length array of chars.
6563 (consider_token): Don't take a token as argument. Use savenstr
6564 when saving a tag in structtag. Callers changed.
6565 (TOKEN): Structure changed. Now used only in C_entries.
61b108cc 6566 (TOKEN_SAVED_P, SAVE_TOKEN, RESTORE_TOKEN): Delete.
362bc2da 6567 (C_entries): nameb and savenameb deleted. Use dinamic allocation.
61b108cc 6568 (pfcnt): Delete. Users updated.
194d44e7
JB
6569 (getit, Asm_labels, Pascal_functions, L_getit, get_scheme)
6570 (TEX_getit, prolog_getit): Use dinamic allocation for storing
362bc2da
DL
6571 the tag instead of a fixed size buffer.
6572
65731995-01-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6574
6575 * movemail.c (main): Skip past the colon in inname.
6576
880820fe 65771995-01-10 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6578
6579 * etags.c (pfatal): New function.
6580 (main, etags_getcwd): Use pfatal.
6581 (etags_getcwd): Corrected another bug in the HAVE_GETCWD version.
6582
880820fe 65831995-01-10 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6584
6585 * etags.c (Lang_function): Use void instead to declare the
6586 language functions, because many compilers are buggy.
6587 (etags_getcwd): Fix the previous fix on the #else branch.
6588 (readline_internal): Discard possible \r before \n here.
6589 (C_entries): Do not deal with \r here: undo previous fix.
6590
880820fe 65911995-01-09 Francesco Potortì (pot@fly)
362bc2da
DL
6592
6593 * b2m.c (concat, xmalloc, xrealloc, readline, xnew): Four new
6594 functions and a macro that allow the program to work on input
6595 lines of whatever length. Copied from etags.c.
6596 (fatal): Print a fatal error message and exit.
6597 (main): Use the new functions. Fixed a bug that made a \037 char
6598 appear at the end of the output.
6599
66001995-01-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6601
6602 * etags.c (C_entries): Ignore carriage return at end of line.
6603
66041994-12-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6605
6606 * fakemail.c (xmalloc, xrealloc): Add casts.
6607 (add_field): Handle <...> and "..." syntax.
6608 (setup_files, get_keyword): Clean up parens and line breaks.
6609 (args_size): Likewise.
6610
66111994-12-21 David J. MacKenzie <djm@geech.gnu.ai.mit.edu>
6612
6613 * yow.c: Include program name in error messages.
6614
66151994-12-21 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6616
6617 * make-docfile.c (scan_lisp_file): Handle dynamic doc strings.
6618 (xmalloc, fatal, error): New functions.
6619 (progname): New variable.
6620 (main): Set progname.
6621
66221994-12-05 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6623
6624 * emacsclient.c, emacsserver.c [HAVE_SYSVIPC]: Include sys/utsname.h.
6625 (main): If socket/mqueue name is in home dir, add in the host name.
6626 Rename .emacs_server to .emacs-server....
6627
66281994-12-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6629
6630 * emacsclient.c [!HAVE_SYSVIPC] (main): Fix error message diction.
6631
880820fe 66321994-11-22 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6633
2f2c687b
JB
6634 * etags.c (print_help): Print --regex usage for ctags also.
6635 (main): Use -h in addition to -H as abbreviation for --help.
362bc2da 6636
880820fe 66371994-11-16 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6638
6639 * etags.c [ETAGS_REGEXP]: All the new code that deals with regexps
6640 is compiled if this is defined. The new functions and variables
6641 added #ifdef ETAGS_REGEXP are not listed in this ChangeLog.
6642 [VMS]: All VMS specific code previously contained in
6643 etags-vmslib.c is now included here, modified for dealing with
6644 language and regex options intermixed with filenames.
6645 (header_file): Global variable deleted.
6646 (Lang_Function): New typedef. All language parser functions
6647 changed to this new type.
6648 (string_numeric_p, substr, prestr): Functions deleted.
6649 (readline_internal): Does the job that readline did previously.
6650 (longopts): --language and --regex options added.
6651 (lang_names, lang_extensions, lang_func, print_language_names):
6652 New structures, variables and functions for choosing languages.
6653 (print_help): Help strings updated. Calls print_language_names.
6654 (argument_type, ARGUMENT): Typedefs for dealing with language and
6655 regex options intermixed with filenames.
b166dcd8 6656 (main): Change the way of dealing with arguments on the command
362bc2da
DL
6657 line to deal with language and regex options intermixed with
6658 filenames.
6659 (get_language, default_C_entries, Cplusplus_entries,
6660 Cstar_entries, Yacc_entries, just_read_file): New functions.
6661 (find_entries): Use the new method for choosing the language.
6662 (Pascal_functions): Allow intermixing of comment styles.
6663 (prolog_getit, skip_comment): Rewritten for speed.
6664 (readline): Rewritten to deal with regexps.
6665
880820fe 66661994-11-16 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6667
6668 * etags.c (<errno.h>): #include added.
6669 (etags_getcwd): Check return value from getcwd.
6670
66711994-11-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6672
6673 * profile.c (TV1, TV2): Use EMACS_TIME as type.
6674 (get_time): Use EMACS_SUB_TIME.
6675
d57727c9 66761994-10-30 Geoff Voelker <voelker@cs.washington.edu>
362bc2da
DL
6677
6678 * ntlib.c: New file.
6679 * makefile.nt: New file.
6680
6681 * make-docfile.c (main) [WINDOWSNT]: Set _fmode and stdout to O_BINARY.
6682 [WINDOWSNT]: Include the NT headers.
6683 (READ_TEXT, READ_BINARY): Test DOS_NT, not MSDOS.
6684
6685 * etags.c (main, etags_getcwd): Test DOS_NT instead of MSDOS.
6686 [WINDOWSNT]: Include some NT headers.
6687
66881994-10-24 Jonathan I. Kamens (jik@cam.ov.com)
6689
6690 * pop.c (getline): When a search of already-read input for CRLF
6691 fails, store the fact that we've searched it and don't search it
6692 again after reading more data.
6693
6694 * pop.c (getline): When determining whether or not it's necessary
6695 to grow the input buffer, take into account the null that's stored
6696 at the end of already-read input in the buffer.
6697
880820fe 66981994-10-21 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6699
2f2c687b 6700 * etags.c (prestr, substr): Return a logical type.
362bc2da 6701 (consider_token): Comment out "EXFUN". Use "DEFUN" instead of "DEF".
2f2c687b 6702 (consider_token): Set funcdef to fignore when a DEFUN is met.
362bc2da
DL
6703 (C_entries): Now we can use Tom Hageman patch for extern "C".
6704
67051994-10-20 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6706
6707 * movemail.c: PopServer renamed to popserver throughout.
6708
67091994-10-20 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
6710
6711 * etags.c: Don't declare malloc, since we include config.h.
6712 * fakemail.c: Likewise.
6713
67141994-10-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6715
6716 * movemail.c: Don't declare malloc.
6717
67181994-10-19 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
6719
6720 * rcs-checkin: Use test -r instead of < to check readability, to
ecc54057 6721 avoid syntax error.
362bc2da
DL
6722
67231994-10-19 Jonathan I. Kamens (jik@cam.ov.com)
6724
6725 * pop.c: Only include ../src/config.h if HAVE_CONFIG_H is
6726 defined, and if HAVE_CONFIG_H isn't defined, define
6727 MAIL_USE_POP always (so that this file can be included in
6728 other programs besides emacs).
6729
6730 * pop.c: Only declare h_errno if HAVE_H_ERRNO isn't defined or
6731 HAVE_CONFIG_H isn't defined.
6732
6733 * pop.c (find_crlf, getline): Instead of using strstr, use a
6734 custom function for finding CRLF.
6735 (my_strstr): Function deleted.
6736
67371994-10-17 Jonathan I. Kamens (jik@cam.ov.com)
6738
6739 * pop.c (getline): Fix a segfault because of passing a
6740 non-null-terminated string into strstr(). Fix from
6741 djm@va.pubnix.com (David J. MacKenzie).
6742
6743 * pop.c: Don't include <string.h> and <strings.h>.
6744
b166dcd8
KC
6745 * pop.c: Include <des.h> before <krb.h>, rather than after.
6746 They should be interchangeable, and indeed the inclusion is done in
362bc2da
DL
6747 both orders in various files in the Kerberos 4 library sources,
6748 but djm@va.pubnix.com (David J. MacKenzie) reports that BSDI
6749 requires that <des.h> be included first, and I don't see any harm
6750 in changing the order.
6751
6752 * pop.c: Include ../src/config.h, to get HAVE_STRING_H and
6753 STDC_HEADERS, if they're defined. Undef open, read, write and
6754 close after including it.
6755
67561994-10-18 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6757
6758 * pop.c: Fix mismatch in conditionals.
6759
6760 * make-docfile.c (main): Don't process one input file twice.
6761 Never use exit code > 1.
6762
6763 * pop.c (open, close, read, write): Add #undefs.
6764
6765 * pop.c: Don't declare malloc, realloc, free.
6766 Include ../src/config.h.
6767 Don't include string.h or strings.h.
6768 Include des.h before krb.h.
6769 Do declare my_strstr.
6770 (getline): Really use my_strstr.
6771 Leave one empty place in server->buffer,
6772 and put a null at the end of the data in it.
6773
67741994-10-17 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6775
b166dcd8
KC
6776 * emacsserver.c [SYSV_IPC] (main): Catch SIGHUP as well.
6777 Don't call kill with pid 0. Handle EINTR when receiving messages.
362bc2da
DL
6778
67791994-10-17 Karl Heuer <kwzh@gnu.ai.mit.edu>
6780
6781 * Makefile.in.in (regex.o): Use full path to find regex.c.
6782
880820fe 67831994-10-17 Francesco Potortì (pot@fly.cnuce.cnr.it)
362bc2da 6784
2f2c687b
JB
6785 * Makefile.in.in (etags): Add dependency on regex.o, link with it.
6786 (REGEXPOBJ, REGEXPDEPS, regex.o): Target and macros added.
362bc2da
DL
6787
67881994-10-12 David J. MacKenzie (djm@duality.gnu.ai.mit.edu)
6789
6790 * Makefile.in.in (DONT_INSTALL): Remove make-path.
6791 (${archlibdir}): Use mkinstalldirs instead.
6792
6793 * movemail.c: Make functions that return nothing void, not
6794 implicitly int.
6795 (main): Improve usage message.
6796 (error): Write to stderr, not stdout.
6797
e43b1141
GM
6798 * b2m.c, cvtmail.c, digest-doc.c, emacsclient.c, emacsserver.c:
6799 * etags.c, fakemail.c, hexl.c, make-docfile.c, profile.c, sorted-doc.c:
6800 * test-distrib.c, timer.c, wakeup.c, yow.c: Eliminate some -Wall
6801 warnings from unused variables and implicitly declared functions.
362bc2da
DL
6802
68031994-10-11 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6804
6805 * Makefile.in.in (clean): rm DOC* and *.tab.[ch].
6806 (distclean): Not here.
6807
b166dcd8 6808 * Makefile.in.in (libexecdir): Rename from libdir.
362bc2da 6809
880820fe 68101994-10-11 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
6811
6812 * etags.c (C_entries): Name the #define's that are macros.
6813
68141994-10-10 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6815
6816 * emacsserver.c [! SYSVIPC] (main): Fix uses of FD_* macros:
6817 fd_set arg is a pointer, descriptor arg comes first.
6818
880820fe 68191994-09-29 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6820
e1dbe924
PE
6821 * etags.c (C_entries): Recognize typedef of ANSI style functions.
6822 (C_entries): Recognize #define inside a struct.
362bc2da
DL
6823 (C_entries): ANSI tells that preprocessor commands do not have to
6824 start on the first column.
6825 (print_help): Documentation corrected for -d and -D.
6826 (white, endtk): ANSI tells the vertical tab is a separator.
6827
68281994-09-24 Jonathan I. Kamens (jik@gza-client1.aktis.com)
6829
6830 * Makefile.in.in (MOVE_FLAGS, MOVE_LIBS): New variables.
6831 (pop.o, movemail.o): New targets.
6832 (movemail): Link in pop.o and movemail.o. Use MOVE_LIBS, MOVE_FLAGS.
6833
6834 * pop.c, pop.h: New files.
6835
6836 * movemail.c: Improve POP code, move most of it into a separate file.
6837 (mbx_delimit_end, mbx_delimit_begin): Check for errors.
6838 (mbx_write): Check for errors and for From line.
6839 (pop_retr, popmail): Use subroutines in pop.c to do the real work.
6840 (get_errmsg, multiline, getline, putline, pop_stat, pop_command)
6841 (pop_init): Functions deleted.
6842
68431994-09-23 Richard Stallman <rms@churchy.gnu.ai.mit.edu>
6844
6845 * make-path.c (touchy_mkdir): Make dir ugo+rx even if it isn't new.
6846 Rename path to dirname.
6847
68481994-09-23 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6849
6850 * Makefile.in.in (UTILITIES):
6851 Remove test-distrib, make-docfile, make-path.
6852 (DONT_INSTALL): New variable--list those files here.
6853 (clean): Delete the files in DONT_INSTALL.
6854
68551994-09-20 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6856
6857 * b2m.c (from, labels, data): Use MAX_DATA_LEN as length.
6858 (main): Use fgets, not gets.
6859
68601994-09-17 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6861
6862 * timer.c: Don't declare malloc.
6863
68641994-09-16 Karl Heuer <kwzh@gnu.ai.mit.edu>
6865
6866 * emacsserver.c (FD_*) [HAVE_SOCKETS & !HAVE_SYSVIPC]: If not already
6867 defined, use simple 32-bit versions of these macros.
6868 (main) [HAVE_SOCKETS & !HAVE_SYSVIPC]: Use these macros.
6869
c60ee5e7 68701994-09-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
362bc2da
DL
6871
6872 * etags.c (etags_getcwd): Use getcwd if available.
6873
68741994-09-11 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6875
6876 * Version 19.27 released.
6877
68781994-09-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6879
6880 * Version 19.26 released.
6881
68821994-08-15 Paul Eggert <eggert@twinsun.com>
6883
6884 * rcs2log: Add support for CVS.
6885 Work with `rlog's that output ISO 8601 dates.
6886
68871994-08-09 Lawrence R. Dodd <dodd@roebling.poly.edu>
6888
6889 * rcs2log: Use <> to delimit email address.
6890
68911994-08-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6892
6893 * emacsserver.c [SYSV_IPC] (main): Make a separate process
6894 so we can listen for multiple requests.
6895
68961994-08-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6897
6898 * movemail.c: Include config.h first thing.
6899
69001994-08-01 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6901
6902 * emacsserver.c (main): Add casts to avoid warnings.
6903
69041994-07-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6905
6906 * Makefile.in.in (${archlibdir}): Compare the proper dir
6907 before installing the scripts.
6908
69091994-07-27 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6910
6911 * emacsclient.c (main): New local var progname saves argv[0].
6912
69131994-07-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6914
6915 * emacsclient.c (main): Don't actually modify argv[0].
6916 Modify a copy instead.
6917
69181994-07-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6919
6920 * profile.c (reset_watch, get_time): Use EMACS_GET_TIME.
6921 (tzp): Var deleted.
6922
6923 * Makefile.in.in: Add #undef alloca.
6924
69251994-07-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6926
6927 * timer.c (xmalloc): New function.
6928
69291994-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6930
6931 * Makefile.in.in (ALLOCA_CFLAGS): New variable.
6932 (alloca.o): New target.
6933
69341994-07-08 Dave Love (d.love@dl.ac.uk)
6935
e1dbe924 6936 * etags.c (takeprec): Recognize `character*(*) function'.
362bc2da 6937
880820fe 69381994-07-08 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 6939
ecc54057
JB
6940 * etags.c (main): Don't barf on obsolete -t and -T switches.
6941 (main): Print an explicative message when a switch is not known.
362bc2da
DL
6942
69431994-06-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6944
6945 * hexl.c: Don't declare exit or perror.
6946
6947 * emacsserver.c (main): Don't declare geteuid.
6948 Don't declare getenv if convex.
6949
69501994-06-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6951
6952 * Makefile.in.in (test-distrib): Use ALL_CFLAGS.
6953
880820fe 69541994-06-03 Francesco Potortì (pot@fly.cnuce.cnr.it)
362bc2da
DL
6955
6956 * etags.c (absolute_filename): Remove infinite loop bug when
6957 accessing files in directories whose name begins with a dot.
6958
880820fe 69591994-06-03 Francesco Potortì (pot@fly.cnuce.cnr.it)
362bc2da
DL
6960
6961 * etags.c (etags_getcwd): Delete the trailing newline from cwd.
6962
69631994-06-01 Morten Welinder (terra@diku.dk)
6964
6965 * yow.c (rootrelativepath) [MSDOS]: Define, expanding to dynamic
6966 location of data directory.
6967
69681994-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6969
6970 * Version 19.25 released.
6971
69721994-05-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6973
6974 * Makefile.in.in (distclean): Delete Makefile, Makefile.in, blessmail.
6975
69761994-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6977
6978 * Makefile.in.in (blessmail): Don't depend on ../src/emacs.
6979
69801994-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6981
6982 * Version 19.24 released.
6983
69841994-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6985
6986 * make-docfile.c (write_c_args): Put `default' in upper case.
6987
69881994-05-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6989
6990 * etags.c (etags_getcwd): Cast result of popen.
6991 (popen): Declaration deleted.
6992
69931994-05-17 Karl Heuer (kwzh@gnu.ai.mit.edu)
6994
6995 * etags.c [!MSDOS]: Declare popen.
6996
69971994-05-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6998
6999 * b2m.c (main): Avoid crash if argc is 1.
7000
70011994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7002
7003 * Version 19.23 released.
7004
7005 * Makefile.in.in (blessmail): Specify directory for blessmail.el.
7006
70071994-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7008
7009 * Makefile.in.in (maybe-blessmail): Mention bless-mail is in lib-src.
7010
70111994-05-05 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
7012
7013 * Makefile.in.in: Fix out of date comment.
7014
70151994-05-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7016
7017 * Makefile.in.in: Put in a separator for where to start cpp procssing.
7018 Move all autoconf substitutions above that point.
7019 Above that point, use Make-style comments.
7020 This goes with changes in ../configure.in.
7021
70221994-05-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7023
7024 * Makefile.in.in (maybe-blessmail): New target to print the blessmail
7025 warning message.
7026 (${archlibdir}): Don't do it here. Don't depend on blessmail.
7027
70281994-05-02 Karl Heuer (kwzh@gnu.ai.mit.edu)
7029
7030 * Makefile.in.in (${archlibdir}): Be lenient about wc output format.
7031
70321994-05-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7033
7034 * Makefile.in.in (${archlibdir}): Don't run blessmail; instead
7035 print advice to run it, if it has anything significant to do.
7036 And only if MOVEMAIL_NEEDS_BLESSING.
7037 (blessmail): Use emacs, not temacs.
b166dcd8 7038 (configuration): Rename from configname.
362bc2da
DL
7039
70401994-04-30 Morten Welinder (terra@diku.dk)
7041
7042 * etags.c (find_entries): Treat `*.cpp' as C++ files.
7043
70441994-04-30 Morten Welinder (terra@diku.dk)
7045
7046 * etags.c [MSDOS]: #include <sys/param.h> for the following.
7047 [MSDOS] (etags_getcwd): Define simple MSDOS version without spawning
7048 a shell.
7049
70501994-04-29 Morten Welinder (terra@diku.dk)
7051
7052 * hexl.c [MSDOS]: Don't define proto type for exit.
7053
70541994-04-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7055
7056 * b2m.c: Don't include string.h or strings.h.
7057
70581994-04-27 Karl Heuer (kwzh@gnu.ai.mit.edu)
7059
7060 * Makefile.in.in: C_SWITCH_SYSTEM and C_SWITCH_MACHINE are now cpp
7061 symbols, not make variables.
7062
70631994-04-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7064
7065 * Makefile.in.in (etags, ctags): Make VERSION a string constant.
7066 * etags.c (print_version): Print VERSION as a string.
7067
70681994-04-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7069
7070 * fakemail.c (readline): Fix updating of p when buffer grows.
7071
70721994-04-20 Karl Heuer (kwzh@gnu.ai.mit.edu)
7073
7074 * Makefile.in.in (blessmail): New target.
7075 ${archlibdir}: Use blessmail when installing movemail.
7076
70771994-04-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7078
7079 * fakemail.c (readline): When extending the buffer,
7080 calculate end afresh using the new size.
7081
880820fe 70821994-04-18 Francesco Potortì (pot@fly.cnuce.cnr.it)
362bc2da 7083
2f2c687b 7084 * etags.c (main, print_help): Eliminate the -F option.
362bc2da 7085
880820fe 70861994-04-18 Francesco Potortì (pot@fly.cnuce.cnr.it)
362bc2da 7087
2f2c687b 7088 * etags.c (absolute_filename): Compare against '\0' instead of NULL.
362bc2da
DL
7089
70901994-04-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7091
7092 * Makefile.in.in: Renamed from Makefile.in.
7093 Makefile.in is now generated from it, and then preprocessed.
7094 Change comments to C syntax.
7095 Include config.h.
7096 (LIBS_SYSTEM, LIBS_MACHINE): Define as empty if not defined.
7097 (LOADLIBES): Define from LIBS_SYSTEM and LIBS_MACHINE.
7098
70991994-04-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7100
7101 * movemail.c [HAVE_UNISTD_H]: Include unistd.h.
7102
880820fe 71031994-04-12 Francesco Potortì (pot@fly.cnuce.cnr.it)
362bc2da
DL
7104
7105 * etags.c (etags_getcwd): Initialize bufsize.
7106
71071994-04-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7108
7109 * profile.c (gettimeofday): If system doesn't have this, define it
7110 to give a fatal error.
7111
71121994-04-11 Karl Heuer (kwzh@gnu.ai.mit.edu)
7113
7114 * movemail.c (main): Use setuid, not seteuid.
7115
71161994-04-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7117
7118 * etags.c: #undef static.
7119
880820fe 71201994-04-08 Francesco Potortì (pot@fly.cnuce.cnr.it)
362bc2da 7121
b166dcd8 7122 * etags.c (outf, outfiledir): Rename to tagf, tagfiledir.
2f2c687b 7123 (PF_funcs, Asm_funcs, L_funcs, PAS_funcs, TEX_funcs)
b166dcd8 7124 (Scheme_funcs, prolog_funcs): Rename to Fortran_functions,
362bc2da
DL
7125 Asm_labels, Lisp_functions, Pascal_functions, Scheme_functions,
7126 TeX_functions, Prolog_functions.
2f2c687b
JB
7127 (inf): No more a global variable.
7128 (C_entries): Take 2nd parameter `inf' instead of using the global one.
e1dbe924 7129 (find_entries): Add the cp1 var for optimization.
b166dcd8 7130 (find_entries): Add more suffixes for assembler files.
362bc2da
DL
7131 (Asm_funcs): Now finds labels even without an ending colon.
7132
880820fe 71331994-03-30 Francesco Potortì (pot@fly.cnuce.cnr.it)
362bc2da 7134
2f2c687b
JB
7135 * etags.c (main): Use etags_getcwd for compatibility.
7136 (etags_getcwd): New function.
362bc2da
DL
7137
71381994-03-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7139
7140 * Makefile.in (etags, ctags): Pass -D for VERSION.
7141
880820fe 71421994-03-25 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7143
61b108cc 7144 * etags.c (emacs_tags_format, ETAGS): Remove. Use CTAGS instead.
2f2c687b
JB
7145 (main): Don't allow the use of -t and -T in etags mode.
7146 (print_help): Don't show options enabled by default.
7147 (print_version): Show the emacs version number if VERSION is #defined.
7148 (find_entries): Add "ss" as suffix for Chez Scheme.
362bc2da 7149
880820fe 71501994-03-23 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7151
2f2c687b 7152 * etags.c (cwd, outfiledir): Vars added.
362bc2da
DL
7153 (relative_filename, absolute_filename, absolute_dirname):
7154 functions added to compute filenames in tags files.
2f2c687b 7155 (process_file): Filenames in tags file are relative to the
362bc2da 7156 directory where the tags file is (useful with the -o option).
e1dbe924 7157 (main): Initialize the outfiledir var.
b166dcd8 7158 (TYPEDST): Add the `tignore' value.
2f2c687b 7159 (C_entries): Corrected various small bugs.
362bc2da
DL
7160
71611994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7162
7163 * Makefile.in (UTILITIES): `env' deleted.
7164 (env): Target deleted.
7165 * env.c: File deleted.
1c478461 7166
362bc2da
DL
71671994-03-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7168
7169 * Makefile.in (install, ${archlibdir}): Switch back to ..
7170 before running INSTALL_PROGRAM.
7171
880820fe 71721994-03-14 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7173
b166dcd8 7174 * etags.c (TYPEDST): Add the `tignore' value.
2f2c687b 7175 (C_entries): Corrected various bugs, now correctly parses the
362bc2da
DL
7176 `extern "C" {' construction (patch by Tom R.Hageman).
7177
71781994-03-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7179
7180 * b2m.c: Use <...> to include config.h.
7181 Don't include stdlib.h.
7182
177c0ea7 71831994-03-03 Heiko Muenkel (muenkel@tnt.uni-hannover.de)
362bc2da
DL
7184
7185 * b2m.c (main): Change delimiter from "^L" to "^_^L".
7186 Allow for text following "BABYL OPTIONS:".
7187 Add --help option. Use argv[0] in error messages.
7188
71891994-03-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7190
7191 * emacsclient.c (main) [HAVE_SYSVIPC]:
7192 Make msgp->mtext longer if necessary.
7193 On HPUX, error if it's more than 512 chars.
7194
71951994-02-26 David J. MacKenzie (djm@geech.gnu.ai.mit.edu)
7196
7197 * etags-vmslib.c: Use GPL.
7198 * emacstool.c: Use GPL.
7199 * fakemail.c: Update GPL.
7200
7201 * make-path.c (main): Return 1 on error, not -1.
7202 Update GPL.
7203
7204 * cvtmail.c: Declare malloc, realloc, xmalloc, xrealloc, getenv.
7205 (xmalloc, xrealloc): Return char *, not int.
7206 (error): Write to stderr, not stdout.
7207 Update GPL.
7208
72091994-02-23 Karl Heuer (kwzh@gnu.ai.mit.edu)
7210
7211 * profile.c (main, get_time): Don't crash on invalid input.
7212
72131994-02-22 Karl Heuer (kwzh@gnu.ai.mit.edu)
7214
7215 * profile.c (get_time): Simplify; avoid calling index.
2f2c687b 7216 (main): Exit on EOF.
362bc2da 7217
880820fe 72181994-02-17 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7219
a64387ee 7220 * etags.c (--absolute-pathnames): Option removed.
362bc2da
DL
7221
72221994-02-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7223
7224 * fakemail.c (put_line): Don't break the line if it all fits.
7225
880820fe 72261994-02-14 Francesco Potortì (pot@fly)
362bc2da 7227
b166dcd8 7228 * etags.c (absolute_pathnames, cwd): Add global vars.
2f2c687b 7229 (longopts, print_help, main, process_file): Put absolute filenames
362bc2da 7230 in the tag file if the -A --absolute-pathnames option is used.
10d1d0af 7231 (print_help): Alphabetically order the options.
2f2c687b 7232 (malloc, realloc, strcpy, strncpy, strcmp): Remove extern declar.
362bc2da
DL
7233
72341994-02-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7235
7236 * Makefile.in (C_SWITCH_MACHINE): Get this from autoconf.
7237 (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Use C_SWITCH_MACHINE.
7238
72391994-02-07 Christian Lynbech (lynbech@avignon)
7240
7241 * emacsserver.c (main) [HAVE_SYSVIPC]: Reverse test of fork value.
7242
72431994-02-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7244
7245 * Makefile.in (UTILITIES): Mention profile.
7246 (profile): New target.
7247
7248 * profile.c: New file.
7249
72501994-01-16 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
c60ee5e7 7251
88c71720 7252 * make-docfile.c: Make the argument list output look more like the
c60ee5e7 7253 Lisp docstrings do.
88c71720 7254 (write_c_args): Take new arg FUNC. Make output
362bc2da
DL
7255 look like lisp call prototypes: (function ARG1 ARG2), upcasing args.
7256 (scan_c_file): Pass BUF to write_c_args for FUNC arg.
7257
880820fe 72581994-01-14 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
7259
7260 * etags.c (stab_entry, stab_create, stab_find, stab_search,
61b108cc 7261 stab_type, add_keyword, C_reate_stab, C_create_stabs): Delete.
362bc2da 7262 Use gperf generated hash table instead of linked list.
61b108cc 7263 (C_stab_entry, hash, in_word_set, get_C_stab, C_symtype): Add.
362bc2da 7264 Mostly code generated by gperf.
b166dcd8 7265 (consider_token): Remove unused parameter `lp'.
2f2c687b 7266 (PF_funcs, getit): Allow subroutine and similar declarations
362bc2da 7267 to span multiple lines.
2f2c687b
JB
7268 (C_entries): Check for newline if inchar to avoid bus errors.
7269 (process_file, find_entries): Distinguish among nonexistent
362bc2da
DL
7270 and not regular file.
7271
72721994-01-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7273
7274 * timer.c: Include errno.h; don't include fasync.h.
7275 (schedule): Don't return a value.
7276 (sigcatch): Reestablish the handler first.
7277 (getevent): Always call notify at the end.
7278 (notify): Defer alarms around the whole body of function.
7279
72801994-01-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7281
7282 * timer.c (main): Don't request SIGIO, and don't handle it.
7283 Loop calling getevent.
7284 (sigcatch): Delete code to handle SIGIO.
7285 if defer_alarms is set, don't call notify, just set alarm_deferred.
1c478461 7286 (getevent): Use read, not getchar. Handle EINTR and EAGAIN.
362bc2da
DL
7287 Set defer_alarms around realloc and schedule.
7288 If alarm_deferred gets set, call notify.
7289 Likewise if this event is the only pending event.
7290 Make buf and buf_size global variables.
7291 Don't malloc buf if it is already non-zero.
7292 (schedule): Just exit if run out of memory.
7293 Return the number of events.
7294 (signal) [_CX_UX]: Add #undef.
7295
72961994-01-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7297
7298 * timer.c [USG] (SIGIO): Define as SIGPOLL.
7299 (main) [USG]: Do ioctl to enable SIGPOLL.
7300
73011994-01-08 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7302
7303 * timer.c: Don't declare sys_errlist; declare strerror instead.
7304 (schedule, main): Call strerror instead of using sys_errlist.
7305 * movemail.c (get_errmsg, pfatal_with_name, pfatal_and_delete):
7306 Call strerror instead of using sys_errlist.
7307 * env.c (main): Call strerror instead of using sys_errlist.
7308 * emacsclient.c: Don't declare sys_errlist; declare strerror instead.
7309 (main): Call strerror instead of using sys_errlist.
7310 * emacsclient.c [! HAVE_STRERROR] (strerror): Define the function.
7311 * env.c [! HAVE_STRERROR] (strerror): Likewise.
7312 * timer.c [! HAVE_STRERROR] (strerror): Likewise.
7313 * movemail.c [! HAVE_STRERROR] (strerror): Likewise.
7314
73151994-01-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7316
7317 * hexl.c: Fix up whitespace. Get rid of spurious casts to void.
7318
7319 * movemail.c (malloc): Don't declare it.
7320 (xmalloc): Cast result of malloc.
7321 (strcpy): Don't declare it.
7322
73231993-11-14 Morten Welinder (terra@diku.dk)
7324
7325 * hexl.c [MSDOS]: Use binary file modes for non-text side of pipe.
7326 (main): Use fclose to close file opened by fopen.
7327
7328 * fakemail.c (main) [MSDOS]: Dummy stub just to make the file compile.
7329
7330 * movemail.c [MSDOS]: #undef `access'.
7331
7332 * b2m.c (main) [MSDOS]: Open all files as binary.
7333 * etags.c (main) [MSDOS]: Open all files as binary.
7334
7335 * make-docfile.c [MSDOS]: Use text/binary mode as appropriate.
7336 (scan_c_file, scan_lisp_file): Extra parameter for the mode to open
7337 with.
7338
73391994-01-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7340
7341 * Makefile.in (ALL_CFLAGS): Include LDFLAGS.
7342 Use ALL_CFLAGS in all the rules that compile and link with one cmd.
7343 (LINK_CFLAGS): New variable.
7344 (timer): Use LINK_CFLAGS.
7345
73461993-12-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7347
7348 * movemail.c: Include syswait.h.
7349 Fork a subprocess and use it to copy the mail file.
7350
73511993-12-07 Richard Stallman (rms@srarc2)
7352
7353 * make-docfile.c (scan_lisp_file): Don't add newline at end of string.
7354
73551993-12-04 Richard Stallman (rms@srarc2)
7356
7357 * movemail.c (main): When making tempname, cast result of xmalloc.
7358 Include room for EXXXXXX in the size.
7359 Don't use result of strcpy.
7360
73611993-12-03 Paul Eggert (eggert@twinsun.com)
7362
7363 * vcdiff: Add --brief option.
7364
73651993-12-02 Richard Stallman (rms@srarc2)
7366
7367 * Makefile.in (${archlibdir}, install): Use $(INSTALL_PROGRAM)
7368 for all executables and scripts.
7369
73701993-11-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7371
7372 * Version 19.22 released.
7373
73741993-11-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7375
7376 * Makefile.in (mostlyclean): Make it distinct from clean.
7377
73781993-11-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7379
7380 * Makefile.in (${archlibdir}): Don't do chown or chgrp.
7381
73821993-11-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7383
7384 * Version 19.21 released.
7385
7386 * Makefile.in (install): Don't change mode or group when installing.
7387
7388 * etags.c (FUNCST, TYPEDST, STRUCTST, DEFINEST): Delete excess commas.
7389
73901993-11-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7391
7392 * make-docfile.c (read_c_string): For "", concatenate the two strings.
7393
7394 * movemail.c (main): Fix error message text.
7395
73961993-11-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7397
7398 * Version 19.20 released.
7399
177c0ea7 74001993-11-08 Tom Hageman (tom@basil.icce.rug.nl)
362bc2da 7401
ecc54057 7402 * etags.c (C_entries): Keep track of ()-parenthesis level so that
362bc2da
DL
7403 functions returning a pointer to a function, a la `signal', can be
7404 parsed. This also required new state `fstartlist' to `FUNCST'.
7405 (SAVE_TOKEN, RESTORE_TOKEN, TOKEN_SAVED_P): 1-deep token save stack.
2f2c687b 7406 (C_entries, CNL): Use it to isolate preprocessor directive processing
362bc2da 7407 from the other state engines.
2f2c687b 7408 (begtk): Add '~', for C++ class destructors.
362bc2da 7409
880820fe 74101993-11-02 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7411
b166dcd8 7412 * etags.c (consider_token): Remove unused variable firsttok.
2f2c687b 7413 (prolog_getit): Call pfnote with the right number of arguments.
362bc2da
DL
7414
74151993-10-19 Paul Eggert (eggert@twinsun.com)
7416
7417 * rcs2log (printlogline): Don't generate lines containing only
7418 white space.
7419
74201993-10-04 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7421
7422 * Makefile.in (${archlibdir}):
7423 Install ${SCRIPTS} from ${srcdir}, not cwd.
7424
74251993-10-03 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7426
7427 * Makefile.in: Fixed typos or brainos of whoever thought `@' was
7428 the comment character.
7429
880820fe 74301993-10-01 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7431
2f2c687b 7432 * etags.c (process_file): Dead code removed.
362bc2da 7433 (S_ISREG): #define it using S_IFREG if not defined.
2f2c687b 7434 (process_file): Regular files have nothing to do with symlinks.
362bc2da 7435
f0131492 74361993-09-28 Brian J. Fox (bfox@ai.mit.edu)
362bc2da
DL
7437
7438 * Makefile.in (${archlibdir}): Install ${SCRIPTS} from ${srcdir}, not
7439 from current directory. Only chmod and chgrp files that we
7440 installed, which excludes ${INSTALLABLE_SCRIPTS}. They go in
7441 ${bindir}.
b166dcd8 7442 (INSTALLFLAGS): Delete definition, since it is an unused variable
362bc2da
DL
7443 now.
7444
f0131492 74451993-09-27 Brian J. Fox (bfox@ai.mit.edu)
362bc2da 7446
b166dcd8
KC
7447 * Makefile.in (INSTALL, INSTALL_PROGRAM, INSTALL_DATA):
7448 Let configure figure out the correct values for these variables.
362bc2da 7449
f0131492 74501993-09-14 Brian J. Fox (bfox@ai.mit.edu)
362bc2da 7451
10d1d0af 7452 * Makefile.in (archlibdir): Only install executables internally
362bc2da
DL
7453 used by emacs; don't install bindir binaries here.
7454
74551993-09-24 Paul Eggert (eggert@twinsun.com)
7456
7457 * rcs2log: Add -h, -n, -r options.
7458 By default, look for *,v files as well as RCS/*,v files.
7459 Use $TMPDIR (default /tmp) instead of /tmp.
7460
880820fe 74611993-09-20 Francesco Potortì (pot@fly)
362bc2da 7462
e1dbe924 7463 * etags.c (C_entries): is_func is initialized here instead of in
362bc2da
DL
7464 consider_token for the sake of the yacc rules section.
7465 (C_entries): Now class, struct, enum, union and typedef produce
7466 named tags.
7467
74681993-09-11 Roland McGrath (roland@baalperazim.gnu.ai.mit.edu)
7469
7470 * yow.c: Include <src/paths.h>, instead of "src/paths.h".
7471
74721993-09-10 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7473
88c71720
KS
7474 * Makefile.in: Support configuring in a different directory when
7475 ${srcdir} has already been configured.
7476 (ALL_CFLAGS, CPP_CFLAGS): Put -I. -I../src before -I${srcdir}
7477 -I${srcdir}/../src.
362bc2da
DL
7478 (b2m, movemail, fakemail, env, emacsserver, emacsclient,
7479 getdate.o, timer.o, timer): Remove `-I${srcdir}/../src', since it
7480 is already in CPP_FLAGS.
7481 * etags.c, emacsclient.c, wakeup.c, timer.c, b2m.c, fakemail.c,
7482 movemail.c, emacsserver.c: Include <config.h> instead of "config.h".
7483
74841993-08-25 Paul Eggert (eggert@twinsun.com)
7485
75f1671a 7486 * rcs2log: Change /{/ to /\{/ for POSIX ERE compatibility;
362bc2da
DL
7487 otherwise, HP awk complains.
7488
7489 * vcdiff: Append /usr/ccs/bin and /usr/sccs to PATH, since these
7490 are common hangouts for SCCS commands.
7491
74921993-08-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7493
7494 * Version 19.19 released.
7495
74961993-08-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7497
7498 * Makefile.in (make-path): Dep on config.h.
7499
75001993-08-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7501
7502 * b2m.c (TRUE, FALSE): Don't define if already defined.
7503
75041993-08-09 Paul Eggert (eggert@twinsun.com)
7505
7506 * rcs2log (awkscript):
7507 Some sites put comma-separated junk after the fullname.
7508 Remove it, but leave "Bill Gates, Jr" alone.
7509 Remove the junk from fullnames like "0000-Admin(0000)".
7510
75111993-08-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7512
7513 * Version 19.18 released.
7514
880820fe 75151993-08-04 Francesco Potortì (pot@spiff.gnu.ai.mit.edu)
362bc2da 7516
e1dbe924 7517 * etags.c (L_isdef, L_isquote, L_getit): Small optimizations.
2f2c687b
JB
7518 (L_funcs): The (foo::defmumble stuff now should work.
7519 (consider_token): Function returned random value--corrected.
7520 (C_entries): Corrected == versus = typo.
362bc2da
DL
7521
75221993-08-01 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7523
7524 * etags.c (put_entries): For NODE->rewritten, put pattern before
7525 \177 and name after, not vice versa.
7526
75271993-08-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7528
7529 * timer.c (main): Generate a SIGIO as soon as we've initialized.
7530
880820fe 75311993-07-30 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7532
b166dcd8 7533 * etags.c (FINCST): Add the fignore status. Means we are
362bc2da
DL
7534 after the parameter list and before the open curly brace.
7535 Allows correct parsing of C++ constructors.
2f2c687b
JB
7536 (C_entries, consider_token): Make use of fignore.
7537 (consider_token): Reset funcdef when next_token_is_func: when in
362bc2da 7538 ctags mode makes DEFVAR and others work better.
e1dbe924 7539 (L_isquote): Function that recognizes the "(quote" string.
2f2c687b 7540 (L_getit): Ignore quoting via "'" or "(quote". Useful for defalias.
362bc2da
DL
7541
75421993-07-29 Paul Eggert (eggert@twinsun.com)
7543
7544 * rcs-checkin: Don't check whether a file is readable until we have
7545 decided not to ignore it.
7546
75471993-07-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7548
7549 * Makefile.in (etags): Depend on ../src/config.h.
7550
7551 * emacsserver.c: Include types.h before file.h.
7552
75531993-07-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7554
7555 * Makefile.in (install): Use .n, not .new, for temporary filenames.
7556
75571993-07-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7558
ecc54057 7559 * Version 19.17 released.
362bc2da
DL
7560
75611993-07-15 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7562
7563 * etags.c (print_help): Break up the very long strings containing
7564 the help message into shorter strings, to placate chintzy C
7565 compilers which can't handle strings that long.
7566
7567 * wakeup.c: Use CPP tangle from autoconf manual to #include the
7568 correct combination of <time.h> and <sys/time.h>.
7569
880820fe 75701993-07-08 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7571
b166dcd8 7572 * etags.c (alloca): Remove all references to it.
2f2c687b
JB
7573 (main): Now calls xnew instead of alloca for portability.
7574 (../src/config.h): Included only if HAVE_CONFIG_H.
7575 (const): Void definition removed--config.h takes care of it.
362bc2da 7576
880820fe 75771993-07-08 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7578
2f2c687b 7579 * etags.c (consider_token): Was `==', now is `='.
362bc2da
DL
7580 (consider_token): DEFUNs now treated like funcs in ctags mode.
7581
61b108cc 7582 * etags.c (LEVEL_OK_FOR_FUNCDEF): Remove.
2f2c687b 7583 (C_entries): Optimized the test that used LEVEL_OK_FOR_FUNCDEF.
b166dcd8 7584 (C_entries): Remove a piece of useless code.
2f2c687b 7585 (C_entries): Making typedef tags is delayed until a semicolon
362bc2da
DL
7586 is met. This handles "typedef int X, Y, Z;" correctly.
7587
75881993-07-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7589
7590 * Version 19.16 released.
7591
7592 * b2m.c: #include <sys/types.h>.
7593 (ltoday): Declare this to be time_t.
7594
75951993-06-30 Paul Eggert (eggert@twinsun.com)
7596
7597 * vcdiff: Add -q option.
7598
75991993-06-29 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7600
7601 * etags.c: #include "config.h" and the alloca CPP tangle before
7602 #including the system headers and getopt.h. AIX requires the
7603 #pragma to come before any actual C code.
7604
76051993-06-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7606
7607 * Makefile.in (ctags): Depend on etags, so that parallel makes
7608 don't write etags.o files on top of each other.
7609
76101993-06-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7611
7612 * version 19.15 released.
7613
76141993-06-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7615
7616 * etags.c (add_node): Move var last_node to file scope.
7617
76181993-06-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7619
7620 * Version 19.14 released.
7621
76221993-06-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7623
ecc54057 7624 Bring mumbleclean targets into conformance with GNU coding standards.
362bc2da
DL
7625 * Makefile.in (distclean): Call clean to do most of the work.
7626 Delete aixcc.c and TAGS.
7627 (realclean): Just call distclean.
1c478461 7628
362bc2da
DL
7629 * Makefile.in: Remember, spaces are not tabs.
7630
76311993-06-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7632
7633 * Makefile.in (CPP_CFLAGS): New variable.
7634 Use it instead of ALL_CFLAGS when compiling a .c file.
7635 (getopt.o, getopt1.o): Add explicit compilation commands.
7636
76371993-06-10 Mark D. Baushke (mdb@cisco.com)
7638
7639 * etags.c: Reinstate old -f option as an alias for -o for
7640 installed base uses.
7641
76421993-06-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7643
7644 * emacsserver.c (main): When we're passing a `struct sockaddr_un'
7645 to bind or accept, cast the pointer, to avoid warnings on systems
7646 which declare prototypes for this.
7647 * emacsclient.c (main): Same.
7648
7649 * Makefile.in (YACC): New variable, to be set by top-level Makefile.
7650
76511993-06-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7652
7653 * Version 19.13 released.
7654
7655 * wakeup.c: Include sys/types.h, too; I think that's where time_t
7656 comes from, not sys/time.h.
7657
76581993-06-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7659
7660 * wakeup.c: Include sys/time.h.
7661
7662 * etags.c: #undef static.
7663
7664 * Version 19.12 released.
7665
7666 * Makefile.in (all): Exclude INSTALLABLE_SCRIPTS and SCRIPTS from deps.
7667
76681993-06-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7669
7670 * Version 19.11 released.
7671
7672 * timer.c [LINUX]: #undef signal.
7673 * emacsserver.c: #undef signal.
7674
76751993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7676
7677 * wakeup.c (main): Make when a time_t.
7678
76791993-05-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7680
ecc54057 7681 * Makefile.in (${archlibdir}): Use `(cd foo && pwd)' instead of
a64387ee 7682 `(cd foo ; pwd)' to get the canonical name of a directory; cd
362bc2da
DL
7683 might fail, and have pwd print out the current directory.
7684
7685 * movemail.c [MAIL_USE_POP] (main): Don't use non-portable
7686 string-handling functions.
7687
76881993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7689
7690 * Version 19.10 released.
7691
76921993-05-29 Paul Eggert (eggert@twinsun.com)
7693
7694 * rcs2log: When given no file arguments, inspect RCS/.* as well
7695 as RCS/*. Don't report an error if RCS is empty or nonexistent.
7696
76971993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7698
7699 * Makefile.in (timer): Link with $(LOADLIBES).
7700
77011993-05-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7702
7703 * fakemail.c (put_line): Don't output \n\t unless more text follows.
7704
77051993-05-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7706
7707 * etags.c: Replace the CPP tangle for alloca with the one from the
7708 autoconf documentation, since that's working elsewhere.
7709
77101993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7711
7712 * Makefile.in (ALL_CFLAGS): Add "-I.", so the system and machine
7713 description files can find their ancestors.
7714
77151993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7716
7717 * Makefile.in (install): Get the scripts from ${srcdir},
7718 unlike the executables.
6088b51f 7719 (ALL_CFLAGS): Add -I../src.
362bc2da
DL
7720
77211993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7722
7723 * Version 19.9 released.
7724
77251993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7726
7727 * Makefile.in (install): Do install the programs listed in
7728 INSTALLABLE_SCRIPTS. Make the renaming loop use INSTALLABLES and
7729 INSTALLABLE_SCRIPTS, instead of writing the programs out.
7730
7731 * Makefile.in (ALL_CFLAGS): Include -I${srcdir}.
7732 (getopt.o, getopt1.c): Use ${srcdir} as appropriate.
7733
77341993-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7735
7736 * etags.c: Include ../src/config.h.
7737
7738 * Makefile.in (install): Don't handle INSTALLABLE_SCRIPTS
7739 in first loop. Delete files from bindir before installing new ones.
7740 (ALL_CFLAGS): Use ${srcdir} to find .../src dir.
7741
77421993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7743
7744 * Version 19.8 released.
7745
7746 * make-docfile.c: Doc fix.
7747
77481993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7749
7750 * tcp.c: Fix comment syntax at top of file.
7751 (main): Don't call htons with the port number.
7752
77531993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7754
7755 * Makefile.in (timer.o, sorted-doc.c): Link with alloca.o, if it's
1c478461 7756 appropriate.
362bc2da
DL
7757
7758 * Makefile.in (install): Refer to the variables INSTALLABLES and
7759 INSTALLABLE_SCRIPTS, instead of writing them out.
7760
77611993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7762
7763 * make-path.c (main): Return 0.
7764
77651993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7766
ecc54057 7767 * Version 19.7 released.
362bc2da
DL
7768
77691993-05-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7770
7771 * make-docfile.c (scan_lisp_file): Recognize defalias like fset.
7772
77731993-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7774
7775 * tcp.c: New file.
7776
77771993-05-18 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7778
7779 * Makefile.in (.c.o): Make the rule start with a tab, not spaces.
7780
77811993-05-15 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7782
7783 * timer.c (notify): Don't call sighold or sigrelse; they're USG
7784 only. We should really fix this later, but let's just make it
7785 compile for now.
7786
7787 Install patches from David J. Mackenzie to make the srcdir option
7788 work.
7789 * Makefile.in (srcdir, VPATH): Get this value from the top-level
7790 Makefile.
7791 (INSTALLABLES): Split this into two lists - INSTALLABLES and
7792 INSTALLABLE_SCRIPTS.
7793 (INSTALLABLE_SCRIPTS): New list.
7794 (EXECUTABLES): Include INSTALLABLE_SCRIPTS.
7795 (${archlibdir}): The scripts to be installed live in the source
7796 tree, not in the object tree.
7797 (test-distrib): Note that the data file lives in the source tree,
7798 not the object tree.
7799 (GETOPTDEPS): Note that getopt.h lives in the source tree.
7800 (all other targets): Change references to source files to use
7801 ${srcdir}, except for config.h, which lives in the object dir.
7802 (timer.o): Note that this depends on ../src/config.h.
7803 * make-docfile.c (main): Add a -d option, to tell it where to find
7804 the source files.
7805 * test-distrib.c (main): Take the name of the distribution file to
7806 test from the command line.
7807
10d1d0af 7808 * timer.c: Fix misspellings of get_date function's name.
362bc2da
DL
7809
78101993-05-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7811
7812 * etags.c (main):
7813 Don't require that there be input files if -i switches were given.
7814
78151993-05-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7816
7817 The GNU coding standards specify that CFLAGS should be left for
7818 users to set.
7819 * Makefile.in (CFLAGS): Put this in the "things configure might
7820 edit" section, and have it default to -g.
7821 (ALL_CFLAGS): New variable, set to all the flags which should be
7822 passed to compilations. Replace all other uses of CFLAGS with
7823 ALL_CFLAGS.
7824 (.c.o): New rule, to pass ALL_CFLAGS to compilations.
7825
7826 * Makefile.in (DEFS): Remove this; it's always just going to be
7827 "-DHAVE_CONFIG_H -Demacs".
7828
78291993-05-03 Paul Eggert (eggert@twinsun.com)
7830
7831 * rcs2log: mawk, SunOS 4.1.3 nawk, and Ultrix/MKS nawk all barf on
7832 /[/]/, so change it to /[\/]/. This should work on all
75f1671a 7833 POSIX-compliant awks. It's slightly wrong with traditional awk,
362bc2da
DL
7834 since it matches \ too, but that's a minor problem compared to awk
7835 syntax errors.
7836
78371993-05-01 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7838
7839 * Makefile.in (ALLOCA): New variable, whose value we should
7840 inherit from the top-level makefile.
7841 (etags, ctags): Include ALLOCA in the list of object files that
7842 these executables depend on and link.
7843
78441993-04-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7845
b166dcd8 7846 * Makefile.in (DEFS): Rename from CONFIG_CFLAGS.
362bc2da
DL
7847
78481993-04-07 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
7849
7850 * make-docfile.c (write_c_args): Print an argument named "defalt"
7851 as "default".
7852
78531993-03-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7854
7855 * Makefile.in (C_SWITCH_SYSTEM): New variable.
7856 (CFLAGS): Include C_SWITCH_SYSTEM in the flags to pass to the
7857 compiler.
7858
880820fe 78591993-03-22 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7860
2f2c687b
JB
7861 * etags.c (YACC): Flag added to c_ext.
7862 (c_ext): No more a synonim for c_ext&C_PLPL because of YACC.
7863 (find_entries): Consistently use streq when reasonable.
7864 (find_entries): A .y file is a yacc file.
362bc2da 7865 (get_C_stab): c_ext becomes c_ext&C_PLPL.
2f2c687b
JB
7866 (C_entries): Logical cplpl means c_ext&C_PLPL.
7867 (C_entries): Logical yacc_rules means we are after the first %%.
b166dcd8 7868 (C_entries): Add logic for yacc files.
362bc2da 7869
880820fe 78701993-03-16 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da
DL
7871
7872 * etags.c (C_entries): ':' case moved to the second switch.
2f2c687b 7873 (C_entries): Do not examine token if structdef==scolonseen.
362bc2da
DL
7874 (consider_token): structtag set to null string for enum.
7875
880820fe 78761993-03-12 Francesco Potortì (pot@cnuce.cnr.it)
362bc2da 7877
2f2c687b
JB
7878 * etags.c (GET_COOKIE): And related macros removed.
7879 (logical): Is now int, no more a char.
7880 (reg): Define deleted.
61b108cc
SM
7881 (isgood, _gd, notgd): Delete.
7882 (gotone): Delete.
2f2c687b 7883 (TOKEN): Member linestart removed.
61b108cc 7884 (linepos, prev_linepos, lb1): Delete.
2f2c687b 7885 (main): Call initbuffer on lbs array instead of lb1.
e1dbe924 7886 (init): Remove the initialization of the logical _gd array.
2f2c687b 7887 (find_entries): A .sa suffix means assembler file.
362bc2da
DL
7888 (C_create_stab): "auto", "void", "extern", "static" are st_C_typespec.
7889 All C state machines rewritten.
2f2c687b
JB
7890 (C_entries): Complete rewrite.
7891 (condider_token): Complete rewrite.
61b108cc 7892 (getline): Delete.
362bc2da 7893
880820fe 78941993-03-01 Francesco Potortì (pot@fly.CNUCE.CNR.IT)
362bc2da 7895
b166dcd8 7896 * etags.c (C_entries): Add the quotednl logical variable.
362bc2da
DL
7897 Used for parsing of #define's spanning multiple lines.
7898
880820fe 78991993-02-23 Francesco Potortì (pot@fly.CNUCE.CNR.IT)
362bc2da
DL
7900
7901 * etags.c (C_entries): Save the definedef status even when a
7902 newline is met inside a string.
7903
79041993-03-19 Eric S. Raymond (eric@geech.gnu.ai.mit.edu)
7905
b166dcd8 7906 * Makefile.in (EXECUTABLES): Add rcs-checkin.
362bc2da
DL
7907
7908 * Makefile.in (unlock, relock): New productions.
7909
79101993-03-16 Paul Eggert (eggert@twinsun.com)
7911
7912 * rcs2log: Some awks don't understand "\r". Code around this.
7913 Unfortunately this requires putting a carriage return in the
7914 source code. Don't assume that rlog will tolerate times like
7915 `10:10:60'; RCS 5.7 won't allow this.
7916
79171993-03-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7918
7919 * timer.c (main): Set the ownership of the stdin file descriptor
7920 to the current process. Print error messages if either of the
7921 fcntl's fails.
7922
7923 * timer.c (sigcatch): Declare this to return SIGTYPE (defined in
7924 ../src/config.h), not void.
7925
79261993-03-06 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7927
7928 * b2m.c (main): Don't exit upon reading a blank line.
7929
880820fe 79301993-03-01 Francesco Potortì (pot@fly.CNUCE.CNR.IT)
362bc2da
DL
7931
7932 * etags.c (C_entries): New local variable quotednl. Used for
7933 parsing of #define's spanning multiple lines.
7934
7935 * etags.c (C_entries): Save the definedef status
7936 even when a newline is met inside a string.
7937
79381993-02-26 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7939
7940 * timer.c (notify): Initialize waitfor properly.
7941
880820fe 79421993-02-22 Francesco Potortì (pot@CNUCE.CNR.IT)
362bc2da
DL
7943
7944 * etags.c (C_entries): Don't reset definedef when a newline inside a
7945 comment is met.
7946
79471993-01-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7948
7949 * etags.c (find_entries): If filename ends in .f or .for,
7950 don't try anything but Fortran.
7951
79521993-01-08 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
7953
7954 * timer.c (notify): Flush stdout after writing message to avoid lossage
7955 on terminals.
7956
7957 (notify): Also, write a newline after the token.
7958
79591992-12-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7960
7961 * Makefile.in (exec_prefix): New variable.
7962 (bindir, libdir): Use it instead of `prefix'.
7963
7964 * Makefile.in (CFLAGS): #define HAVE_CONFIG_H, too.
7965
7966 * Makefile.in (libdir): Default to ${prefix}/lib.
b166dcd8 7967 (archlibdir): Adjust to match.
362bc2da
DL
7968
7969 * Makefile.in (distclean): Don't delete backup or autosave files.
7970 (extraclean): Like realclean, but does delete backup and autosave
7971 files.
7972
7973 * Makefile.in (realclean): Ignore errors from rm.
7974
7975 * Makefile.in (distclean): Don't bother to delete ../arch-lib;
7976 that doesn't exist anymore.
7977
79781992-12-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7979
7980 * Makefile.in (prefix, bindir, libdir, srcdir): New variables, as
7981 described in the top-level Makefile.
7982 (UTILITIES): Add make-path to the list of utility programs.
7983 (../arch-lib): Replaced by the ${archlibdir} target, which places
7984 the executables in their permanent home.
7985 (install, install.sysv, install.xenix): Consolidated into one
7986 target which should work under all circumstances, modulo a few
7987 ignored error messages.
7988
7989 * make-docfile.c (scan_c_file): Since DEFVAR_PER_BUFFER now takes
7990 a different number of arguments than other DEFVARs, recognize it
7991 specially, and expect the right number of commas.
7992
79931992-12-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7994
7995 * make-path.c: New program, to help with the installation process.
7996 * Makefile.in (make-path): New target.
7997
7998 * make-path.c (touchy_mkdir): Remove debugging output.
7999
80001992-11-05 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8001
b166dcd8 8002 * Makefile.in (getdate.o): Add explicit target for this, so we
362bc2da
DL
8003 can indicate that it depends on ../src/config.h.
8004
80051992-11-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8006
8007 * Makefile.in (CONFIG_CFLAGS): Let the configure script edit this
8008 instead of CFLAGS.
8009 (CFLAGS): Add -Demacs and -I../src to CONFIG_CFLAGS to produce this.
8010
80111992-09-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8012
8013 * getdate.y: Correctly recognize Mt. Xinu BSD running on an HP
8014 9000/300 as BSD; don't include both <sys/time.h> and <time.h> on
8015 that system.
8016
8017 * Makefile.in (arch-lib): Give rm the `-f' option.
8018
80191992-09-28 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8020
8021 * make-docfile.c (write_c_args): Rewritten to correctly print
8022 &optionals before the first identifier, but after the first paren.
8023 This code used to just wait for commas or spaces; now it notices
8024 identifier boundaries.
8025
80261992-09-26 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8027
8028 * rcs2log: When getting date, use %02d instead of %.2d in awk printf.
8029
80301992-09-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8031
8032 * make-docfile.c (write_c_args): Print the argument lists properly
8033 when the first argument is optional.
8034
80351992-09-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8036
8037 * sorted-doc.c (main): Redefine special chars to use fonts tensy, teni.
8038 Redefine @item. Set catcode of +.
8039
80401992-08-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8041
8042 * emacsclient.c (main): Set IPC_CREAT in msgget call.
8043
80441992-08-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8045
8046 * etags.c (TEX_funcs): Keep just 1 of two redundant nested loops.
8047 (TEX_decode_env): Make `tab' one element longer.
8048
80491992-08-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8050
8051 * etags.c (PF_funcs): Recognize the "entry" keyword.
8052
80531992-08-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8054
8055 * Makefile.in: Add rcs2log and vcdiff to the list of utilities.
8056
80571992-08-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8058
8059 * timer.c (events): Rather than having slots marked as in use or
8060 out of use by the `token' field, keep all pending events at the
8061 beginning of the array. When we delete an event in the middle of
8062 the array, we move the last event into its place.
8063 (num_events): New variable.
8064 (schedule): It is now cheaper to find a free event slot;
8065 events[num_events] is the first free slot.
8066 (notify): Scan events[0 .. num_events-1], instead of the whole
8067 array. When an event fires, move the last event in the array into
8068 its spot. Use num_events to determine whether or not there are
8069 any pending events, not wait_for.
b166dcd8 8070 (getevent): Delete unused variable `ep'.
362bc2da
DL
8071 (sigcatch): It's now easier to find all the active events.
8072 (main): Initialize num_events.
8073
8074 * etags.c: Rather than fret about which systems have index and
8075 which systems have strchr, and how to tell the difference between
8076 them, we just write out our own versions. Big deal.
8077 (index, rindex): Extern declarations removed.
8078 (NEED_INDEX, NEED_RINDEX): Special hacks for hpux removed.
8079 (etags_index, etags_rindex): New declarations.
8080 (process_file, find_entries, pfnote, TEX_funcs, TEX_decode_env,
8081 TEX_getit, substr): Use the etags_*index functions, rather than
8082 the native *index functions.
b166dcd8 8083 (rindex, index): Rename to etags_rindex and tags_rindex, and
362bc2da
DL
8084 made them unconditionally defined, rather than having them depend
8085 on NEED_*INDEX.
8086
8087 * etags.c (savenstr): Add declaration for this at top of file.
8088 (TEX_decode_env): Don't declare it local to this function.
8089
8090 * b2m.c: #include "../src/config.h", so we can test for the USG
8091 macro, and decide whether to include <string.h> or <strings.h>.
8092 * Makefile.in: Note that b2m.c depends on ../src/config.h.
8093
80941992-08-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8095
8096 * timer.c: Reformatted according to the GNU coding standards.
8097 Removed arbitrary limits on the number of events queued and the
8098 length of the tokens used to identify them.
8099 Removed casts to (void).
8100 Removed debugging printfs; they clutter the code, and the need
8101 can be better filled using a real debugger.
8102
81031992-08-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8104
8105 * timer.c: Installed new version from Eric Raymond; this is more
8106 portable, since it doesn't try to use SIGIO.
8107
81081992-07-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8109
8110 * emacsclient.c (main): If we can't find the socket in this
8111 person's home directory, print a message which asks if they've
8112 started the server, instead of just printing the message from
8113 sys_errmsg; Cygnus finds that people are much less confused by
8114 this.
8115
81161992-07-14 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8117
8118 * etags.c: Rather than defining "notdef" when "hpux" is #defined,
8119 so that index and rindex get defined, why don't we actually
8120 control index and rindex using symbols called "NEED_INDEX" and
8121 "NEED_RINDEX", and define them if hpux is defined? Isn't that a
8122 little more readable than defining something whose name implies
8123 that it's not?
8124
81251992-07-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8126
8127 * movemail.c: Merged changes from Jamie Zawinski's byte compiler
8128 distribution:
8129 Miscellaneous doc fixes.
1c478461 8130 (skip_white, read_lisp_symbol): New functions.
362bc2da
DL
8131 (scan_lisp_file): Instead of using long hairy strings of ifs, call
8132 read_lisp_symbol and then see what we got. Call skip_white
8133 instead of writing out a loop to do its job. Correctly extract
8134 docstrings from "defmacro" declarations.
8135
81361992-06-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8137
8138 * movemail.c (strcpy): Declare this to return char *.
8139
81401992-06-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8141
8142 * etags.c (C_entries): When we find a C++ comment, do actually
8143 skip to the end of the line; do a 'break' instead of a 'continue'.
8144
81451992-06-11 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8146
8147 * etags.c (getit): Add missing parenthesis to expression which
8148 decides if this token is an identifier.
8149
81501992-06-04 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8151
8152 * etags.c (consider_token): Recognize `ENTRY' macro used in libc.
8153
81541992-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8155
8156 * etags.c (put_entries): Always put space between name and line num.
8157
81581992-05-28 Ken Raeburn (Raeburn@Cygnus.COM)
8159
8160 * etags.c (getit): Parenthesize &&/|| expression to avoid gcc
8161 warning.
8162 (LEVEL_OK_FOR_FUNCDEF): Ditto.
8163
81641992-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8165
8166 * make-docfile.c (write_c_args): Pass both arguments to putc.
8167
81681992-05-10 Roland McGrath (roland@albert.gnu.ai.mit.edu)
8169
b166dcd8 8170 * etags.c (C_entries): Fix reading of "..." strings.
362bc2da
DL
8171 (consider_token): Recognize `SYSCALL' and `PSEUDO' macros, used in
8172 the C library source.
8173
8174 * etags.c (C_entries): When we see a backslash inside a quoted
8175 string, skip to the next character. This allows us to correctly
8176 deal with strings containing quotes.
8177
81781992-05-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8179
8180 * make-docfile.c (write_c_args): Print the C argument names as
8181 they would be written in Elisp; print '_' as '-'.
8182
81831992-05-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8184
8185 * movemail.c [POP]: Get user name via getpwuid.
8186
81871992-05-04 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8188
2f2c687b 8189 * Makefile.in: Flags in CC invocations rearranged for no reason.
362bc2da
DL
8190
81911992-04-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8192
10d1d0af 8193 * etags.c (print_help): Remember not to embed raw newlines in
362bc2da
DL
8194 strings - end the lines with `\n\'.
8195
81961992-04-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8197
b166dcd8 8198 * timer.c (getevent): Remove declaration of memcpy; since
362bc2da
DL
8199 different systems have different return types, and we're not even
8200 using the return type anyway, it wasn't doing us any good.
8201
82021992-04-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8203
8204 * emacsserver.c (msgcatch): Use the SIGTYPE macro to declare the
8205 type of this function.
8206
362bc2da
DL
82071992-04-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8208
290afd83 8209 * etags.c: "--no-warning" option renamed to "--no-warn",
362bc2da
DL
8210 to be consistent with other GNU programs, like makeinfo.
8211
290afd83 8212 * Makefile: Renamed to Makefile.in; the configure script
362bc2da
DL
8213 will edit this to produce Makefile.
8214
7bfc1caa 82151992-04-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
362bc2da 8216
7bfc1caa
GM
8217 New directory, with files previously in ../etc. [approximate date]
8218 * README: New file.
8219 * Makefile: Copy here from ../etc/Makefile.
8220 * aixcc.lex, b2m.c, cvtmail.c, digest-doc.c:
8221 * emacsclient.c, emacsserver.c, emacstool.c, env.c:
8222 * etags-vmslib.c, etags.c, fakemail.c, getdate.c, getdate.y:
8223 * getopt.c, getopt.h, getopt1.c, hexl.c, leditcfns.c:
8224 * make-docfile.c, movemail.c, qsort.c, sorted-doc.c:
8225 * test-distrib.c, testfile, timer.c, wakeup.c, yow.c:
8226 Move here from ../etc.
6922b018
KH
8227
8228;; Local Variables:
880820fe 8229;; coding: utf-8
6922b018 8230;; End:
2a34a036 8231
ba318903 8232 Copyright (C) 1988-1999, 2001-2014 Free Software Foundation, Inc.
5b87ad55
GM
8233
8234 This file is part of GNU Emacs.
8235
294981c7 8236 GNU Emacs is free software: you can redistribute it and/or modify
5b87ad55 8237 it under the terms of the GNU General Public License as published by
294981c7
GM
8238 the Free Software Foundation, either version 3 of the License, or
8239 (at your option) any later version.
5b87ad55
GM
8240
8241 GNU Emacs is distributed in the hope that it will be useful,
8242 but WITHOUT ANY WARRANTY; without even the implied warranty of
8243 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8244 GNU General Public License for more details.
8245
8246 You should have received a copy of the GNU General Public License
294981c7 8247 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.