]> code.delx.au - gnu-emacs/blob - lib-src/ChangeLog
Better support for future plugins
[gnu-emacs] / lib-src / ChangeLog
1 2015-02-13 Paul Eggert <eggert@cs.ucla.edu>
2
3 Better support for future plugins
4 See the thread containing:
5 http://lists.gnu.org/archive/html/emacs-devel/2015-02/msg00720.html
6 * make-docfile.c (write_globals): Generate code that #defines
7 Qxxx macros other than Qnil only if DEFINE_NONNIL_Q_SYMBOL_MACROS.
8 Qnil is safe to define even in plugins, since it must be zero for
9 other reasons.
10
11 2015-01-24 Paul Eggert <eggert@cs.ucla.edu>
12
13 Fix a couple of AM_V_GEN bugs
14 * Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0, am__v_GEN_1)
15 (AM_V_at, am__v_at_, am__v_at_0, am__v_at_1):
16 New macros, copied from ../src/Makefile.in.
17
18 2015-01-22 Paul Eggert <eggert@cs.ucla.edu>
19
20 Check exit statuses in lib-src/Makefile
21 * Makefile.in ($(DESTDIR)${archlibdir}, install, uninstall)
22 (mostlyclean, clean, distclean, extraclean):
23 Check exit statuses more carefully. Reindent to fit in 80 chars.
24 (bootstrap-clean maintainer-clean): Remove unnecessary 'true'.
25
26 2015-01-22 Ulrich Müller <ulm@gentoo.org>
27
28 * Makefile.in ($(DESTDIR)${archlibdir}): Don't fail if the chown
29 or chgrp command is unsuccessful; the 'update-game-score' program
30 has a fallback for this at runtime.
31
32 2015-01-21 Ulrich Müller <ulm@gentoo.org>
33
34 * update-game-score.c: Allow the program to run sgid instead
35 of suid, in order to match common practice for most games.
36 (main): Check if we are running sgid. Pass appropriate file
37 permission bits to 'write_scores'.
38 (write_scores): New 'mode' argument, instead of hardcoding 0644.
39 (get_prefix): Update error message.
40 * Makefile.in (gamegroup): New variable, set by configure.
41 ($(DESTDIR)${archlibdir}): Handle both suid or sgid when
42 installing the 'update-game-score' program.
43
44 2015-01-16 Eli Zaretskii <eliz@gnu.org>
45
46 * Makefile.in (AM_V_RC, am__v_RC_, am__v_RC_0, am__v_RC_1): New
47 macros.
48 (emacsclient.res): Use $(AM_V_RC).
49
50 2015-01-16 Paul Eggert <eggert@cs.ucla.edu>
51
52 Give up on -Wsuggest-attribute=const
53 * make-docfile.c (write_globals):
54 Remove special hack for Fnext_read_file_uses_dialog_p
55
56 2015-01-13 Paul Eggert <eggert@cs.ucla.edu>
57
58 Don't say Fnext_read_file_uses_dialog_p is const
59 * make-docfile.c (write_globals):
60 Add a special hack for Fnext_read_file_uses_dialog_p.
61
62 2015-01-13 Dmitry Antipov <dmantipov@yandex.ru>
63
64 Support DEFUN attributes.
65 * make-docfile.c (struct global): New field 'flags'.
66 (DEFUN_noreturn, DEFUN_const): New enum bitfields.
67 (add_global): Now return pointer to global.
68 (write_globals): Add _Noreturn and ATTRIBUTE_CONST attributes
69 if requested by global's flags.
70 (stream_match): New function.
71 (scan_c_stream): Recognize 'attributes:' of DEFUN.
72
73 2015-01-10 Paul Eggert <eggert@cs.ucla.edu>
74
75 Port to 32-bit --with-wide-int
76 * make-docfile.c (write_globals): Define and use symbols like
77 iQnil (a small integer, like 0) rather than aQnil (an address
78 constant).
79
80 Port to 32-bit Sun C 5.12 sparc
81 * make-docfile.c (close_emacs_globals): Align lispsym to GCALIGNMENT.
82 The alignment is required on all platforms; it just happens to have
83 been properly aligned on the previous platforms we tested.
84
85 2015-01-05 Paul Eggert <eggert@cs.ucla.edu>
86
87 Use 0 for Qnil
88 * make-docfile.c (compare_globals): Consider 'nil' to be the least.
89
90 Compute C decls for DEFSYMs automatically
91 Fixes Bug#15880.
92 * make-docfile.c: Revamp to generate table of symbols, too.
93 Include <stdbool.h>.
94 (xstrdup): New function.
95 (main): Don't process the same file twice.
96 (SYMBOL): New constant in enum global_type.
97 (struct symbol): Turn 'value' member into a union, either v.value
98 for int or v.svalue for string. All uses changed.
99 (add_global): New arg svalue, which overrides value, so that globals
100 can have a string value.
101 (close_emacs_global): New arg num_symbols; all uses changed.
102 Output lispsym decl.
103 (write_globals): Output symbol globals too. Output more
104 ATTRIBUTE_CONST, now that Qnil etc. are C constants.
105 Output defsym_name table.
106 (scan_c_file): Move most of guts into ...
107 (scan_c_stream): ... new function. Scan for DEFSYMs and
108 record symbols found. Don't read past EOF if file doesn't
109 end in newline.
110
111 2015-01-04 Paul Eggert <eggert@cs.ucla.edu>
112
113 'temacs -nw' should not call missing functions
114 * make-docfile.c (write_globals):
115 Declare Fframe_windows_min_size with ATTRIBUTE_CONST, too. Sort.
116
117 Less 'make' chatter for lib-src
118 * Makefile.in (blessmail): Less 'make' chatter here.
119
120 2014-12-27 Eli Zaretskii <eliz@gnu.org>
121
122 * Makefile.in (etags_libs, ebrowse${EXEEXT}, profile${EXEEXT})
123 (make-docfile${EXEEXT}, movemail${EXEEXT})
124 (update-game-score${EXEEXT}): Put $(NTLIB) before $(LOADLIBES),
125 since GCC sometimes calls stpcpy when it sees strcpy, under
126 optimization switches.
127
128 2014-12-25 Paul Eggert <eggert@cs.ucla.edu>
129
130 * ebrowse.c (sym_scope_1, operator_name, open_file):
131 * emacsclient.c (get_server_config, set_local_socket)
132 (start_daemon_and_retry_set_socket):
133 * etags.c (main, C_entries, relative_filename):
134 * pop.c (sendline):
135 * update-game-score.c (main):
136 Rewrite to avoid the need for strcat, typically by using stpcpy
137 and/or lispstpcpy. strcat tends to be part of O(N**2) algorithms.
138
139 2014-12-14 Paul Eggert <eggert@cs.ucla.edu>
140
141 * etags.c (analyze_regex): Rename from analyse_regex.
142
143 2014-12-14 Glenn Morris <rgm@gnu.org>
144
145 * grep-changelog: Remove file.
146 * Makefile.in (INSTALLABLE_SCRIPTS): Remove.
147 (all, install, uninstall): Remove INSTALLABLE_SCRIPTS.
148
149 2014-11-23 Glenn Morris <rgm@gnu.org>
150
151 * Makefile.in (emacsclient.res): Fix yesterday's thinko.
152
153 2014-11-22 Glenn Morris <rgm@gnu.org>
154
155 * Makefile.in (emacsclient.res): Update deps for nt/emacsclient.rc
156 now being in the build directory, not the source directory.
157
158 * Makefile.in (emacsclient.res): Add dependency on icons/emacs.ico.
159
160 2014-10-20 Glenn Morris <rgm@gnu.org>
161
162 * Merge in all changes up to 24.4 release.
163
164 2014-09-23 Paul Eggert <eggert@cs.ucla.edu>
165
166 movemail: don't dump core if the current time is outlandish
167 * movemail.c (popmail): Check for mbx_delimit_begin failure.
168 (mbx_delimit_begin): Fail if the current time is so outlandish
169 that localtime would fail or asctime would have undefined
170 behavior. Use strftime to avoid asctime undefined behavior.
171
172 2014-09-01 Paul Eggert <eggert@cs.ucla.edu>
173
174 --enable-silent-rules now suppresses more chatter.
175 * Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
176 (am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
177 (am__v_CCLD_1): New macros, taken from Automake.
178 (regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
179 (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
180 (pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT})
181 (emacsclientw${EXEEXT}, ntlib.o, hexl${EXEEXT})
182 (update-game-score${EXEEXT}): Use them.
183
184 * etags.c (emacs_strchr, emacs_strrchr): Remove.
185 All uses replaced by strchr and strrchr, which are on all
186 target platforms now.
187
188 2014-07-15 Paul Eggert <eggert@cs.ucla.edu>
189
190 Use "b" flag more consistently; avoid "t" (Bug#18006).
191 * make-docfile.c (READ_TEXT): Remove; all uses replaced by "r".
192 (READ_BINARY): Remove; all uses replaced by "rb".
193
194 2014-07-14 Paul Eggert <eggert@cs.ucla.edu>
195
196 Use binary-io module, O_BINARY, and "b" flag (Bug#18006).
197 * etags.c, hexl.c, make-docfile.c:
198 Include binary-io.h instead of fcntl.h and/or io.h.
199 (main): Use set_binary_mode or SET_BINARY
200 in place of handcrafted code.
201 * etags.c (main) [DOS_NT]:
202 * movemail.c (main) [WINDOWSNT]:
203 Don't mess with _fmode.
204 * etags.c (main, process_file_name, analyse_regex):
205 Use fopen/popen's "b" flag instead.
206 * movemail.c (main, popmail): Use open/lk_open/mkostemp's O_BINARY
207 instead.
208
209 2014-07-13 Paul Eggert <eggert@cs.ucla.edu>
210
211 * make-docfile.c: Simplify a bit, to simplify further refactoring.
212 (outfile): Remove static var. All uses changed to use stdout,
213 since it's always stdout anyway. While we're at it, prefer
214 putchar/puts/fputs to printf when there are no format strings.
215 (main): Use freopen rather than fopen, so that stdout is reused.
216 Move O_BINARY stuff after the freopen, so it affects the
217 reopened file.
218 (write_c_args): Omit first arg, since it's always stdout now.
219 All uses changed.
220
221 2014-07-12 Paul Eggert <eggert@cs.ucla.edu>
222
223 * etags.c (Lisp_functions): Also record cl-defun etc. (Bug#17965)
224
225 2014-06-26 Glenn Morris <rgm@gnu.org>
226
227 * Makefile.in (blessmail): Depend on lisp/mail/blessmail.el.
228 Use $<, $@.
229 (regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
230 (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
231 (pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT}, ntlib.o)
232 (hexl${EXEEXT}, update-game-score${EXEEXT}, emacsclient.res): Use $<.
233 (ctags${EXEEXT}): Add $srcdir to dependency rather than using VPATH.
234
235 2014-06-17 Paul Eggert <eggert@cs.ucla.edu>
236
237 Omit redundant extern decls.
238 * emacsclient.c (getenv): Remove decl.
239 * make-docfile.c (write_globals): Add ATTRIBUTE_CONST for
240 Fbyteorder, Ftool_bar_height, Fmax_char, Fidentity.
241
242 2014-06-15 Glenn Morris <rgm@gnu.org>
243
244 * Makefile.in (LDFLAGS): Explicitly set via configure.
245
246 2014-06-15 Eli Zaretskii <eliz@gnu.org>
247
248 * Makefile.in (CPPFLAGS): Define.
249
250 2014-06-15 Glenn Morris <rgm@gnu.org>
251
252 * Makefile.in (../lib/libgnu.a):
253 Use `make -C' rather than `cd && make'.
254
255 * Makefile.in (bootstrap-clean): New.
256
257 2014-06-13 Glenn Morris <rgm@gnu.org>
258
259 * Makefile.in (../lib/libgnu.a):
260 GNU make automatically passes command-line arguments to sub-makes.
261
262 2014-05-26 Eli Zaretskii <eliz@gnu.org>
263
264 * ntlib.h (lseek): Don't redirect to _lseek.
265
266 2014-05-26 Paul Eggert <eggert@cs.ucla.edu>
267
268 Fix rcs2log problems with CVS. Reported by Glenn Morris in
269 <http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00277.html>.
270 Plus, fix some security and filename quoting problems.
271 * rcs2log (logdir): Prefer mktemp if available.
272 (logdir, llogdir): Work even if TMPDIR begins with '-' or has spaces.
273 (output_authors, main awk script): Parse more-recent CVS output format.
274
275 2014-05-19 Paul Eggert <eggert@cs.ucla.edu>
276
277 Remove dependencies on getline and getdelim.
278 Also, remove update-game-scores's limits on game scores and
279 simplify its file-locking code.
280 * update-game-score.c (struct score_entry): Unify the username and
281 data members to a single user_data member, since they don't need to be
282 changed independently and getdelim and getline aren't helpful.
283 Make the score member char *, not intmax_t, so that scores are not
284 limited to intmax_t. All uses changed.
285 (lose_syserr): A zero errno stands for invalid data in score file.
286 (normalize_integer): New function.
287 (main): Use it. Check for invalid scores. Omit redundant stat check.
288 (read_score): First arg is now a string, not a FILE *. All uses
289 changed. Do not use getdelim or getline; that's way simpler.
290 (read_scores): Read the whole file, and let read_score handle each
291 line.
292 (score_compare): Compare strings representing integers, not integers.
293 (write_scores) [DOS_NT]: Eliminate unnecessary chmod.
294 (lock_file): Simplify locking code, eliminating goto.
295 Check for unlink failure.
296
297 2014-05-18 Paul Eggert <eggert@cs.ucla.edu>
298
299 Port ctags+etags build to Sun C 5.12.
300 * Makefile.in (etags_args): Remove, replacing with ...
301 (etags_cflags, etags_libs): New macros. All uses changed.
302 (ctags${EXEEXT}): Don't compile etags.c, as compiling etags.c in
303 parallel (once for ctags, once for etags) breaks parallel makes
304 with compilers that use the source file name to name temporaries,
305 such as Sun C 5.12. Instead, compile ctags.c.
306 * ctags.c: New file.
307
308 2014-05-04 Paul Eggert <eggert@cs.ucla.edu>
309
310 Handle systems without WCONTINUED consistently. (Bug#15110, 17339)
311 * emacsclient.c (WCONTINUED): Move to ../src/syswait.h.
312
313 2014-04-30 Glenn Morris <rgm@gnu.org>
314
315 * Makefile.in ($(DESTDIR)${archlibdir}):
316 Avoid non-portable "`\" nesting. (Bug#17339)
317
318 2014-04-16 Eli Zaretskii <eliz@gnu.org>
319
320 * update-game-score.c (write_scores): Condition fchmod call on
321 DOS_NT, not WINDOWSNT.
322
323 2014-03-22 Glenn Morris <rgm@gnu.org>
324
325 * Makefile.in (etags_deps, etags_args): New, to reduce duplication.
326 (etags${EXEEXT}, ctags${EXEEXT}): Use etags_deps, etags_args.
327
328 * Makefile.in (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
329 (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
330 (emacsclient${EXEEXT}, emacsclientw${EXEEXT}, hexl${EXEEXT})
331 (update-game-score${EXEEXT}, emacsclient.res): Use $@.
332
333 * Makefile.in (../lib/libgnu.a): Explicitly pass MFLAGS.
334
335 * Makefile.in (DONT_INSTALL): Remove test-distrib.
336 (test-distrib${EXEEXT}): Remove rule.
337
338 * test-distrib.c, testfile: Remove.
339
340 2014-03-10 Juanma Barranquero <lekktu@gmail.com>
341
342 * emacsclient.c (main): #ifdef out previous change on Windows.
343
344 2014-03-09 Paul Eggert <eggert@cs.ucla.edu>
345
346 Fix emacsclient terminal corruption when in background (Bug#16892).
347 * emacsclient.c (handle_sigcont): Check for tcgetpgrp failure.
348 Cancel the continue only if tty. Send SIGTTIN to the process
349 group, not SIGSTOP to self, as this is what the glibc manual
350 recommends.
351 (main): If tty, and if started in the background, send SIGTTIN
352 to the process group.
353
354 2014-02-25 Andreas Amann <a.amann@ucc.ie> (tiny change)
355
356 Fix emacsclient's handling of SIGCONT (Bug#16883).
357 * emacsclient.c (handle_sigcont): Cancel the continue only if tty.
358
359 2014-01-22 Eli Zaretskii <eliz@gnu.org>
360
361 * update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
362 instead of fchmod.
363
364 2014-01-22 Paul Eggert <eggert@cs.ucla.edu>
365
366 Fix miscellaneous update-game-score bugs.
367 * update-game-score.c (difftime) [!HAVE_DIFFTIME]: Remove.
368 (read_score) [HAVE_GETDELIM]: Don't access uninitialized storage,
369 as that leads to undefined behavior, which is a bad thing
370 particularly in a setuid program.
371 (read_scores, write_scores): Check for fclose failure; on some
372 systems, I/O errors are not reported by primitives like getc and
373 putc, but instead are delayed until fclose, so fclose failures
374 should be diagnosed like other read and write errors.
375 (write_scores): Use fchmod, not chmod, to avoid a race.
376 Otherwise, if the lock is broken by some other process,
377 update-game-score might try to change the permission on someone
378 else's file or on a nonexistent file, and incorrectly report an
379 error when this fails.
380 (lock_file): Fix test for out-of-date lock file; it was reversed.
381 That is, it incorrectly broke locks when they were more than an
382 hour into the future, instead of when they were more than an hour
383 in the past. Use ordinary subtraction rather than difftime; since
384 we're already assuming POSIX we don't need to worry about the
385 possibility of time_t being a magic cookie, and since timestamps
386 are positive we don't need to worry about integer overflow when
387 subtracting them. Put two spaces, not just one, after a sentence
388 end in a comment.
389
390 2014-01-19 Paul Eggert <eggert@cs.ucla.edu>
391
392 update-game-score fixes for -m and integer overflow (Bug#16428)
393 * update-game-score.c: Include inttypes.h, stdbool.h.
394 (min): New macro, if not already defined.
395 (MAX_SCORES, main): Limit the maximum number of scores only from
396 limits imposed by the underyling platform, instead of the
397 arbitrary value 200.
398 (struct score_entry, main, read_score, write_score):
399 Scores are now intmax_t, not long.
400 (get_user_id): Reject user names containing spaces or newlines,
401 as they would mess up the score file.
402 Allow uids that don't fit in 'long'.
403 Increase the size of the buffer, to avoid overrun in weird cases.
404 (get_prefix, main): Use bool for boolean.
405 (main): Rewrite expr to avoid possibility of signed integer
406 overflow. Don't allow newlines in data, as this would mess up
407 the score file. Check for memory allocation failure when adding
408 the new score, or when unlockint the file. Implement -m.
409 (read_score): Check for integer overflow when reading a score.
410 (read_score) [!HAVE_GETDELIM]: Check for integer overflow when
411 data gets very long. Check only for space to delimit names,
412 since that's what's done in the HAVE_GETDELIM case.
413 (read_scores): New parameter ALLOC. Change counts to ptrdiff_t.
414 All uses changed. Use push_score to add individual scores;
415 that's simpler than repeating its contents.
416 (score_compare_reverse): Simplify.
417 (push_score): New parameter SIZE. Change counts to ptrdiff_t.
418 All uses changed. Check for integer overflow of size calculation.
419 (sort_scores, write_scores): Change counts to ptrdiff_t.
420 (unlock_file): Preserve errno on success, so that storage
421 exhaustion is diagnosed correctly.
422
423 2014-01-05 Paul Eggert <eggert@cs.ucla.edu>
424
425 Spelling fixes.
426 * Makefile.in (regex.o): Remove reference to no-longer-used macros
427 CONFIG_BROKETS and INHIBIT_STRING_HEADER. "BROKETS" was a
428 misspelling anyway....
429
430 2013-12-14 Paul Eggert <eggert@cs.ucla.edu>
431
432 Use bool for boolean, focusing on headers.
433 * emacsclient.c, etags.c, hexl.c (FALSE, TRUE):
434 Remove. All uses replaced with uncapitalized version.
435 * emacsclient.c (message):
436 * etags.c (make_tag, pfnote, consider_token, make_C_tag, lang_names):
437 * hexl.c (un_flag, iso_flag, endian):
438 * pop.c (pop_debug, pop_open, pop_multi_first, pop_multi_next)
439 (pop_trash):
440 Use bool for boolean.
441 * etags.c (bool): Remove.
442 * etags.c (globals, members, declarations, no_line_directive)
443 (no_duplicates): Use 'int' for boolean values that getopt requires
444 to be 'int'. Formerly, these were 'bool' and 'bool' was 'int',
445 but we can no longer rely on this implementation.
446 * pop.h (struct _popserver): Use bool_bf for boolean bit-fields.
447
448 2013-11-14 Paul Eggert <eggert@cs.ucla.edu>
449
450 * ebrowse.c (xstrdup):
451 * etags.c (savenstr): Prefer tail calls.
452 * etags.c (concat): Omit unnecessary assignment.
453
454 2013-10-24 Glenn Morris <rgm@gnu.org>
455
456 * Makefile.in ($(DESTDIR)${archlibdir}):
457 Avoid non-portable "`\" nesting.
458
459 * Makefile.in (abs_top_srcdir): New, set by configure.
460
461 2013-10-23 Glenn Morris <rgm@gnu.org>
462
463 * Makefile.in ($(DESTDIR)${archlibdir}, need-blessmail, install)
464 (uninstall): Quote entities that might contain whitespace.
465
466 2013-10-10 Glenn Morris <rgm@gnu.org>
467
468 * make-docfile.c (search_lisp_doc_at_eol):
469 Use int rather than char with getc. (Bug#15481)
470
471 2013-09-20 Paul Eggert <eggert@cs.ucla.edu>
472
473 A simpler, centralized INLINE.
474 * profile.c (INLINE): New macro.
475 (SYSTIME_INLINE): Remove.
476
477 2013-08-28 Paul Eggert <eggert@cs.ucla.edu>
478
479 * Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
480 for portability to hosts where /bin/sh has problems.
481
482 2013-08-10 Eli Zaretskii <eliz@gnu.org>
483
484 * update-game-score.exe.manifest: New file.
485
486 * Makefile.in (UPDATE_MANIFEST): New variable.
487 (SCRIPTS): Add $(UPDATE_MANIFEST).
488
489 2013-08-05 Stefan Monnier <monnier@iro.umontreal.ca>
490
491 * makefile.w32-in (lisp2): Add nadvice.elc.
492
493 2013-08-05 Eli Zaretskii <eliz@gnu.org>
494
495 * update-game-score.c (read_score): Try reading a character before
496 probing the stream for EOF. Initialize score->score to zero,
497 before reading and accumulating the score.
498 (read_scores): Fix logic that determines which value to return.
499 Close the input stream when finished reading the scores (avoids
500 failures in overwriting the file with a new one on MS-Windows,
501 since a file that is open cannot be deleted).
502
503 * ntlib.h (rename): Don't undefine.
504
505 * ntlib.c (sys_rename): New function, needed for
506 update-game-score.
507
508 2013-08-04 Eli Zaretskii <eliz@gnu.org>
509
510 * ntlib.h: Include fcntl.h.
511 (mkostemp): Declare prototype.
512 (mktemp): Don't redefine.
513
514 * ntlib.c (mkostemp): New function. (Bug#15015)
515
516 2013-08-04 Paul Eggert <eggert@cs.ucla.edu>
517
518 Fix some minor races in hosts lacking mkostemp (Bug#15015).
519 * movemail.c (main):
520 * update-game-score.c (write_scores):
521 Use mkostemp (which now works on all platforms, due to changes
522 in the portability layer) rather than mktemp (which has a race)
523 or mkstemp (which we no longer bother with).
524
525 2013-07-10 Paul Eggert <eggert@cs.ucla.edu>
526
527 Port to C89.
528 * ebrowse.c (USAGE): Remove macro with too-long string literal ...
529 (usage_message): ... and replace it with this new static constant
530 containing multiple literals. All uses changed.
531 * emacsclient.c (print_help_and_exit):
532 Rewrite to avoid string literals longer than the C89 limits.
533 (start_daemon_and_retry_set_socket):
534 Rewrite to avoid non-constant array initializer.
535 * make-docfile.c (enum global_type): Omit trailing comma.
536
537 2013-07-02 Paul Eggert <eggert@cs.ucla.edu>
538
539 Prefer plain 'static' to 'static inline' (Bug#12541).
540 I missed these instances of 'static inline' in an earlier sweep.
541 * ebrowse.c (putstr):
542 * etags.c (hash):
543 * make-docfile.c (put_char): No longer inline.
544 * etags.c (hash): Prefer int to unsigned when either will do.
545
546 2013-06-21 Paul Eggert <eggert@cs.ucla.edu>
547
548 Use C99-style flexible array members if available.
549 * ebrowse.c: Include <stddef.h>, for offsetof.
550 (struct member, struct alias, struct sym):
551 Use FLEXIBLE_ARRAY_MEMBER.
552 (add_sym, add_member, make_namespace, register_namespace_alias):
553 Use offsetof (struct, flex_array_member), not sizeof (struct), as
554 that ports better to pre-C99 non-GCC.
555
556 2013-05-29 Eli Zaretskii <eliz@gnu.org>
557
558 * Makefile.in (mostlyclean): Remove *.res files.
559
560 2013-05-18 Paul Eggert <eggert@cs.ucla.edu>
561
562 Port --enable-gcc-warnings to clang.
563 * etags.c: Omit unnecessary forward decls.
564 (print_version, print_help): Declare _Noreturn.
565 * pop.c (socket_connection) [HAVE_GETADDRINFO]: Simplify.
566
567 2013-05-16 Eli Zaretskii <eliz@gnu.org>
568
569 * update-game-score.c [WINDOWSNT]: Include "ntlib.h".
570
571 * ntlib.h (sleep): Update prototype.
572 (geteuid): Add prototype.
573
574 * ntlib.c (sleep): Now returns an unsigned value.
575 (getgid): New function.
576
577 * Makefile.in (CLIENTW, LIB_WSOCK32, LIBS_ECLIENT, NTLIB)
578 (CLIENTRES, WINDRES, NTINC, NTDEPS): New variables.
579 (INSTALLABLES): Add $(CLIENTW).
580 (LIBS_MOVE): Use $(LIB_WSOCK32).
581 ($(DESTDIR)${archlibdir}): Use $(EXEEXT) on update-game-score.
582 (test-distrib${EXEEXT}): Use $(EXEEXT) on test-distrib.
583 (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
584 (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
585 (emacsclient${EXEEXT}, hexl${EXEEXT}, update-game-score${EXEEXT}):
586 Add $(NTLIB) to prerequisites. Use $(EXEEXT).
587 (pop.o): Add pop.h to prerequisites.
588 (emacsclientw${EXEEXT}, ntlib.o): New targets.
589 (emacsclient.res): New target.
590
591 2013-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
592
593 * makefile.w32-in ($(DOC)): Use DOC rather than DOC-X.
594
595 2013-05-06 Paul Eggert <eggert@cs.ucla.edu>
596
597 * make-docfile.c (search_lisp_doc_at_eol) [DEBUG]: Fix typo,
598 by removing references to no-longer-existing locals.
599
600 2013-03-26 Eli Zaretskii <eliz@gnu.org>
601
602 Fix incompatibilities between MinGW.org and MinGW64 headers.
603 * ntlib.c (struct timespec) [!_TIMEZONE_DEFINED]: Define the
604 struct only if _TIMEZONE_DEFINED is not defined.
605
606 2013-03-23 cg <chengang31@gmail.com> (tiny change)
607
608 * makefile.w32-in (LIB_SRC): Move before first use.
609
610 2013-03-16 Paul Eggert <eggert@cs.ucla.edu>
611
612 * pop.c: Fix ERRMAX typo (Bug#13925).
613 (socket_connection) [!HAVE_KRB5_ERROR_TEXT && HAVE_KRB5_ERROR_E_TEXT]:
614 Use ERROR_MAX, not ERRMAX.
615
616 2013-03-13 Paul Eggert <eggert@cs.ucla.edu>
617
618 File synchronization fixes (Bug#13944).
619 * Makefile.in (LIB_FDATASYNC): New macro.
620 (emacsclient${EXEEXT}): Use it.
621 * emacsclient.c (main): Use fdatasync, not fsync, since we don't
622 care about metadata. Keep trying if interrupted.
623 * movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since
624 fsync is available everywhere (or there is a substitute).
625 Don't report an error if fsync returns EINVAL.
626
627 Static checking by Sun C 5.12.
628 * etags.c (analyse_regex): Omit unreachable code.
629
630 * movemail.c (main): Call umask on all systems.
631 This is OK since Emacs already assumes umask elsewhere.
632 Don't grant more read permissions than necessary.
633 The old 0333 dates back to before we called setuid,
634 so it was needed back then to ensure user-readability,
635 but 0377 should suffice now.
636
637 2013-02-08 Paul Eggert <eggert@cs.ucla.edu>
638
639 * movemail.c (getenv): Remove decl (unused since 1994).
640
641 2013-01-15 Paul Eggert <eggert@cs.ucla.edu>
642
643 * make-docfile.c (write_globals): Make it a bit clearer (Bug#13448).
644 This pacifies GCC 4.7.2 when Emacs is configured with
645 --enable-link-time-optimization and --enable-gcc-warnings.
646
647 2013-01-01 Juanma Barranquero <lekktu@gmail.com>
648
649 * makefile.w32-in (lisp1): Add macroexp.elc (bug#13320).
650
651 2012-12-11 Juanma Barranquero <lekktu@gmail.com>
652
653 * makefile.w32-in (SYSWAIT_H): Update dependencies.
654
655 2012-12-10 Eli Zaretskii <eliz@gnu.org>
656
657 * makefile.w32-in (obj): Add w32notify.o. Add missing X and Unix
658 sources.
659
660 2012-12-02 Kevin Ryde <user42@zip.com.au>
661
662 * etags.c (Lisp_functions): Skip (defvar foo) declarations unless
663 the --declarations flag is enabled (Bug#5600).
664 (Lisp_help): Update.
665 (skip_name): New function.
666
667 2012-12-01 Kevin Ryde <user42@zip.com.au>
668
669 * etags.c (Perl_functions): Support "use constant" (Bug#5055).
670
671 2012-11-27 Paul Eggert <eggert@cs.ucla.edu>
672
673 Assume POSIX 1003.1-1988 or later for errno.h (Bug#12968).
674 * movemail.c (main): Assume EAGAIN and EBUSY.
675
676 2012-11-23 Paul Eggert <eggert@cs.ucla.edu>
677
678 movemail: treat EACCES etc. failures as permanent
679 * movemail.c (main): Treat any link failure other than EEXIST as a
680 permanent failure, not just EPERM. EACCES, for example.
681
682 2012-11-21 Paul Eggert <eggert@cs.ucla.edu>
683
684 Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945).
685 * emacsclient.c (getcwd): Remove decl.
686 (get_current_dir_name): Assume getcwd exists.
687 * etags.c (HAVE_GETCWD): Remove.
688 (getcwd): Remove decl.
689 (NO_LONG_OPTIONS): Remove this. All uses removed.
690 Emacs always has GNU getopt.
691 (etags_getcwd): Assume getcwd exists.
692 * movemail.c (F_OK, X_OK, W_OK, R_OK): Remove.
693
694 2012-11-20 Paul Eggert <eggert@cs.ucla.edu>
695
696 * emacsclient.c (handle_sigcont, handle_sigtstp): Use raise (sig)
697 rather than kill (getpid (), sig), as it's simpler and safer.
698
699 2012-11-17 Juanma Barranquero <lekktu@gmail.com>
700
701 * makefile.w32-in (SYSWAIT_H): New macro.
702 ($(BLD)/movemail.$(O)): Update dependencies.
703
704 2012-11-17 Paul Eggert <eggert@cs.ucla.edu>
705
706 Assume POSIX 1003.1-1988 or later for fcntl.h (Bug#12881).
707 * movemail.c, update-game-score.c: Assume <fcntl.h> exists.
708
709 2012-10-26 Glenn Morris <rgm@gnu.org>
710
711 * Makefile.in (uninstall): No INSTALLABLES live in archlibdir.
712
713 * Makefile.in (install, uninstall): Transformations should not be
714 applied to $EXEEXT.
715
716 2012-10-23 Eli Zaretskii <eliz@gnu.org>
717
718 * makefile.w32-in (lisp2): Add cp51932.el and eucjp-ms.el, to
719 follow src/lisp.mk.
720
721 2012-10-21 Glenn Morris <rgm@gnu.org>
722
723 * make-docfile.c (scan_lisp_file): Add cp51932.el and eucjp-ms.el.
724
725 2012-10-20 Eli Zaretskii <eliz@gnu.org>
726
727 * make-docfile.c (IS_SLASH, DEF_ELISP_FILE): New macros.
728 (scan_lisp_file): Only pass a .el file if its basename matches a
729 known file in its entirety. Use IS_SLASH and DEF_ELISP_FILE.
730
731 2012-10-20 Andreas Schwab <schwab@linux-m68k.org>
732
733 * make-docfile.c (scan_lisp_file): Add bounds checking.
734
735 2012-10-20 Eli Zaretskii <eliz@gnu.org>
736
737 Prevent silent omission of doc strings from uncompiled Lisp files.
738 * make-docfile.c (scan_lisp_file): Barf if called with a .el file
739 other than one of a small list of supported un-compiled files.
740
741 * makefile.w32-in (lisp1, lisp2): Name .elc files wherever they
742 exist. (Bug#12395)
743
744 2012-10-17 Eli Zaretskii <eliz@gnu.org>
745
746 * ntlib.c: Include <mbstring.h>, to avoid compiler warning about
747 _mbspbrk.
748
749 2012-10-08 Eli Zaretskii <eliz@gnu.org>
750
751 * makefile.w32-in (obj): Add cygw32.o.
752
753 2012-10-08 Daniel Colascione <dancol@dancol.org>
754
755 * emacsclient.c: Include windows.h when HAVE_NTGUI.
756 (alt_display): New variable. We send the display held by this
757 variable when the primary display is either unsupported or not
758 present.
759 (longopts): Allow display everywhere.
760 (w32_set_user_model_id): Move lower in file, inside HAVE_NTGUI
761 section.
762 (decode_options): Use alt_display. Explain why.
763 (main): Retry connection with alt_display if connection with main
764 display fails.
765
766 2012-10-01 Fabrice Popineau <fabrice.popineau@gmail.com>
767
768 * make-docfile.c (write_globals): Special-case
769 Fexit_recursive_edit and Fabort_recursive_edit as well, as
770 functions that are _Noreturn, to be consistent with
771 src/keyboard.c.
772
773 2012-09-30 Eli Zaretskii <eliz@gnu.org>
774
775 * ntlib.c (gettimeofday): Copy from src/w32.c. lib/gettime.c
776 needs this function.
777
778 2012-09-26 Juanma Barranquero <lekktu@gmail.com>
779
780 * makefile.w32-in (obj): Add profiler.o.
781
782 2012-09-17 Glenn Morris <rgm@gnu.org>
783
784 * ebrowse.c (version):
785 * etags.c (print_version): Use COPYRIGHT.
786
787 2012-09-11 Paul Eggert <eggert@cs.ucla.edu>
788
789 * pop.c (socket_connection) [HAVE_GETADDRINFO]:
790 Prefer assignment to memcpy when either will do.
791
792 2012-08-31 Andreas Schwab <schwab@linux-m68k.org>
793
794 * etags.c (consider_token): Always zero-terminate token buffer.
795 (Bug#12306)
796
797 2012-08-19 Paul Eggert <eggert@cs.ucla.edu>
798
799 Rely on <config.h> + <unistd.h> to declare 'environ'.
800 * emacsclient.c (environ): Remove decl.
801
802 2012-08-17 Juanma Barranquero <lekktu@gmail.com>
803
804 * makefile.w32-in ($(BLD)/regex.$(O)): Update dependencies.
805
806 2012-08-15 Paul Eggert <eggert@cs.ucla.edu>
807
808 * etags.c (Pascal_functions): Fix parenthesization typo.
809
810 2012-08-14 Paul Eggert <eggert@cs.ucla.edu>
811
812 * make-docfile.c (enum global_type): Sort values roughly in
813 decreasing alignment, except put functions last.
814 (compare_globals): Use this new property of enum global_type.
815 (write_globals): Use bool, not int, for booleans.
816
817 2012-08-10 Glenn Morris <rgm@gnu.org>
818
819 * make-docfile.c (IF_LINT):
820 * emacsclient.c (IF_LINT): Remove (in config.h now).
821
822 * make-docfile.c (main)
823 (fopen) [!WINDOWSNT]:
824 (chdir) [!DOS_NT]: No more need to undef.
825
826 * movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
827 * make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
828 * emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP):
829 Remove (they are in config.h now).
830
831 * ebrowse.c (PATH_LIST_SEPARATOR):
832 Remove, and replace with SEPCHAR from config.h.
833
834 2012-08-03 Juanma Barranquero <lekktu@gmail.com>
835
836 * makefile.w32-in (LOCAL_FLAGS): Remove WINDOWSNT and DOS_NT,
837 they are always defined in config.h.
838
839 2012-08-03 Eli Zaretskii <eliz@gnu.org>
840
841 * ntlib.c (lstat): New function, calls 'stat'.
842
843 2012-08-02 Paul Eggert <eggert@cs.ucla.edu>
844
845 Use C99-style 'extern inline' if available.
846 * profile.c (SYSTIME_INLINE): Define.
847
848 2012-08-02 Glenn Morris <rgm@gnu.org>
849
850 * makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.
851
852 2012-08-01 Glenn Morris <rgm@gnu.org>
853
854 * Makefile.in (config_h): New variable.
855 Use throughout in place of ../src/config.h.
856
857 2012-08-01 Juanma Barranquero <lekktu@gmail.com>
858
859 * makefile.w32-in (CONFIG_H): Update dependencies.
860 (CONF_POST_H): New macro.
861
862 2012-07-30 Paul Eggert <eggert@cs.ucla.edu>
863
864 Update .PHONY listings in makefiles.
865 * Makefile.in (.PHONY): Add all, need-blessmail, maybe-blessmail,
866 install, uninstall, mostlyclean, clean, distclean,
867 maintainer-clean, extraclean, check, tags.
868
869 2012-07-29 Eli Zaretskii <eliz@gnu.org>
870
871 * makefile.w32-in ($(BLD)/profile.$(O)): Depend on stamp_BLD.
872
873 2012-07-12 Paul Eggert <eggert@cs.ucla.edu>
874
875 * movemail.c: Add missing 'defined'.
876 Suggested by Sven Joachim in
877 <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00218.html>.
878
879 2012-07-11 Paul Eggert <eggert@cs.ucla.edu>
880
881 Port 'movemail' again to Solaris and similar hosts.
882 See Susan Cragin's report in
883 <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00199.html>.
884 * movemail.c (xmalloc): Also define if !DISABLE_DIRECT_ACCESS &&
885 !MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK. Move up, so it doesn't
886 need a forward declaration.
887 (main): Rewrite to avoid no-longer-present function 'concat', if
888 !DISABLE_DIRECT_ACCESS && !MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK.
889
890 Assume strerror.
891 * emacsclient.c, movemail.c, update-game-score.c (strerror)
892 [!HAVE_STRERROR]: Remove.
893
894 2012-07-10 Paul Eggert <eggert@cs.ucla.edu>
895
896 EMACS_TIME simplification (Bug#11875).
897 * profile.c (TV2): Remove no-longer-needed static var.
898
899 Simplify by avoiding confusing use of strncpy etc.
900 * etags.c (write_classname, C_entries):
901 Use sprintf rather than strncpy or strncat.
902 * etags.c (consider_token, C_entries, HTML_labels, Prolog_functions)
903 (Erlang_functions, substitute, readline_internal, savenstr):
904 * movemail.c (mail_spool_name):
905 Use memcpy rather than strncpy or strncat when either will do.
906 * make-docfile.c (write_c_args):
907 Use memcmp rather than strncmp when either will do.
908 * movemail.c (pop_retr):
909 * pop.c (pop_stat, pop_list, pop_multi_first, pop_last)
910 (socket_connection, pop_getline, sendline, getok):
911 Use snprintf rather than strncpy or strncat.
912 * movemail.c (concat): Remove; no longer needed.
913 (xmalloc): Define only if needed, now that concat has gone away.
914 Return void *. All uses changed.
915
916 2012-07-09 Paul Eggert <eggert@cs.ucla.edu>
917
918 Add GCC-style 'const' attribute to functions that can use it.
919 * etags.c (number_len): Add ATTRIBUTE_CONST.
920
921 2012-07-09 Juanma Barranquero <lekktu@gmail.com>
922
923 * emacsclient.c (w32_execvp): Declare execvp to silence the compiler.
924
925 2012-07-09 Juanma Barranquero <lekktu@gmail.com>
926
927 * makefile.w32-in ($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
928 (LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
929 (SYSTIME_H): New macros.
930 (SRC): Redefine to point to src/, not current directory.
931 ($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
932 ($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
933 ($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
934 ($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
935 ($(BLD)/regex.$(O)): New dependency.
936
937 2012-07-09 Juanma Barranquero <lekktu@gmail.com>
938
939 * makefile.w32-in (ALL): Add profile.exe.
940 (PROFILEOBJS): New macro.
941 ($(BLD)/profile.exe): New target.
942 (install): Copy profile.exe.
943 ($(BLD)/alloca.$(O), $(BLD)/tcp.$(O)): Remove, obsolete.
944
945 2012-07-07 Juanma Barranquero <lekktu@gmail.com>
946
947 * makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)):
948 Update dependencies.
949
950 2012-07-06 Paul Eggert <eggert@cs.ucla.edu>
951
952 Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786).
953 * etags.c: Include c-strcase.h.
954 (etags_strcasecmp, etags_strncasecmp): Remove.
955 All uses replaced with c_strcasecmp and c_strncasecmp.
956
957 2012-07-06 Andreas Schwab <schwab@linux-m68k.org>
958
959 * make-docfile.c (write_globals): Warn about duplicate function
960 definitions with differing signatures.
961
962 2012-07-03 Paul Eggert <eggert@cs.ucla.edu>
963
964 * make-docfile.c (scan_c_file): Suppress GCC warning.
965
966 2012-06-29 Tom Tromey <tromey@redhat.com>
967
968 * make-docfile.c (enum global_type) <FUNCTION>: New constant.
969 (struct global) <value>: New field.
970 (add_global): Add 'value' argument.
971 (compare_globals): Sort functions at the end.
972 (close_emacs_globals): New function.
973 (write_globals): Handle functions.
974 (scan_c_file): Call add_global for DEFUN.
975
976 2012-06-30 Juanma Barranquero <lekktu@gmail.com>
977
978 * makefile.w32-in (CTAGS_CFLAGS): Remove EMACS_NAME;
979 already defined in ETAGS_CFLAGS.
980
981 2012-06-27 Glenn Morris <rgm@gnu.org>
982
983 * makefile.w32-in (lisp2): Remove paths.el.
984
985 2012-06-26 Paul Eggert <eggert@cs.ucla.edu>
986
987 Clean out last vestiges of the old HAVE_CONFIG_H stuff.
988 * Makefile.in (BASE_CFLAGS):
989 * makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H.
990 * etags.c, hexl.c, pop.c: Include <config.h> unconditionally.
991 * etags.c (DOS_NT):
992 * pop.c (MAIL_USE_POP, h_errno):
993 Remove code that was conditioned on !HAVE_CONFIG_H.
994
995 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru>
996
997 * etags.c (etags_strcasecmp, etags_strncasecmp): Define to
998 library functions strcasecmp and strncasecmp if available.
999
1000 2012-06-24 Paul Eggert <eggert@cs.ucla.edu>
1001
1002 Switch from NO_RETURN to C11's _Noreturn (Bug#11750).
1003 * ebrowse.c (usage, version):
1004 * emacsclient.c (print_help_and_exit, fail):
1005 * etags.c (suggest_asking_for_help, fatal, pfatal):
1006 * hexl.c (usage):
1007 * make-docfile.c (fatal):
1008 * movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
1009 * update-game-score.c (usage):
1010 * ebrowse.c (usage, version):
1011 * emacsclient.c (print_help_and_exit, fail):
1012 Use _Noreturn rather than NO_RETURN.
1013 No need for separate decl merely because of _Noreturn.
1014
1015 2012-06-24 Samuel Bronson <naesten@gmail.com>
1016
1017 * emacsclient.c (set_local_socket): Fix compiler warning (Bug#7838).
1018
1019 2012-06-22 Paul Eggert <eggert@cs.ucla.edu>
1020
1021 Support higher-resolution time stamps (Bug#9000).
1022 * Makefile.in (LIB_CLOCK_GETTIME): New macro.
1023 (profile${EXEEXT}): Use it.
1024 * profile.c: Include inttypes.h, intprops.h.
1025 (time_string): Size conservatively; do not guess size.
1026 (get_time): Now prints nanoseconds.
1027 (gettimeofday): Remove replacement function; gnulib now does this.
1028
1029 2012-06-08 Andreas Schwab <schwab@linux-m68k.org>
1030
1031 * make-docfile.c (search_lisp_doc_at_eol): Unget last read
1032 character.
1033
1034 2012-06-06 Glenn Morris <rgm@gnu.org>
1035
1036 * Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPTS, insrcdir)
1037 (stamp-rcs2log, stamp-grep-changelog): Remove.
1038 (all, clean): Remove references to stamps.
1039
1040 * vcdiff: Remove file.
1041 * Makefile.in (SCRIPTS, STAMP_SCRIPTS): Remove vcdiff.
1042 (stamp-vcdiff): Remove.
1043
1044 2012-06-05 Glenn Morris <rgm@gnu.org>
1045
1046 * makefile.w32-in ($(BLD)/getdate.$(O), $(BLD)/leditcfns.$(O))
1047 ($(BLD)/make-path.$(O), $(BLD)/qsort.$(O))
1048 ($(BLD)/timer.$(O)): Remove cruft.
1049
1050 2012-06-03 Glenn Morris <rgm@gnu.org>
1051
1052 * rcs-checkin: Remove file.
1053 * Makefile.in (INSTALLABLE_SCRIPTS, STAMP_INST_SCRIPTS):
1054 Remove rcs-checkin.
1055 (stamp-rcs-checkin): Remove.
1056
1057 2012-05-31 Eli Zaretskii <eliz@gnu.org>
1058
1059 * makefile.w32-in ($(BLD)/emacsclientw.exe): Use $(MWINDOWS)
1060 instead of a literal -mwindows, which is not supported by MSVC.
1061 (Bug#11405)
1062
1063 2012-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
1064
1065 * make-docfile.c: Improve comment style.
1066 (search_lisp_doc_at_eol): New function.
1067 (scan_lisp_file): Use it.
1068
1069 2012-05-26 Glenn Morris <rgm@gnu.org>
1070
1071 * Makefile.in (INSTALL_DATA): Remove; unused.
1072
1073 2012-05-22 Paul Eggert <eggert@cs.ucla.edu>
1074
1075 Remove src/m/*.
1076 * makefile.w32-in: Remove dependencies on
1077 $(EMACS_ROOT)/src/m/intel386.h.
1078
1079 2012-05-22 Glenn Morris <rgm@gnu.org>
1080
1081 * Makefile.in (install): Remove unneeded chmods.
1082
1083 2012-05-21 Paul Eggert <eggert@cs.ucla.edu>
1084
1085 Assume C89 or later.
1086 * etags.c (static, const): Remove macros.
1087 (PTR): Remove; all uses replaced with void *. Omit needless casts.
1088
1089 2012-05-21 Glenn Morris <rgm@gnu.org>
1090
1091 * Makefile.in (insrcdir, $(DESTDIR)${archlibdir}):
1092 Scrap superfluous subshells.
1093
1094 2012-05-18 Glenn Morris <rgm@gnu.org>
1095
1096 * Makefile.in (install): Ensure $bindir exists.
1097
1098 2012-05-17 Glenn Morris <rgm@gnu.org>
1099
1100 * Makefile.in (ns_appbindir): New, set by configure.
1101
1102 2012-05-12 Glenn Morris <rgm@gnu.org>
1103
1104 * Makefile.in (MKDIR_P): New, set by configure.
1105 ($(DESTDIR)${archlibdir}): Use $MKDIR_P.
1106
1107 2012-05-10 Paul Eggert <eggert@cs.ucla.edu>
1108
1109 etags: pacify gcc -Wstack-protector on Ubuntu 12.04 x86
1110 * etags.c: Include <stdarg.h>.
1111 (error): Declare as printf-style, as that's what it really is.
1112 All uses changed.
1113 (add_regex): Use single char rather than array-of-one char.
1114
1115 2012-05-05 Jim Meyering <meyering@redhat.com>
1116
1117 * pop.c (pop_stat, pop_list, pop_multi_first, pop_last):
1118 NUL-terminate the error buffer (Bug#11372).
1119
1120 2012-05-02 Juanma Barranquero <lekktu@gmail.com>
1121
1122 * emacsclient.c (min): Undef before redefining it.
1123
1124 2012-05-02 Jim Meyering <jim@meyering.net>
1125
1126 * emacsclient.c (send_to_emacs): Avoid invalid strcpy upon partial
1127 send (Bug#11374).
1128
1129 2012-04-29 Andreas Schwab <schwab@linux-m68k.org>
1130
1131 * make-docfile.c (scan_lisp_file) [DEBUG]: Also skip if and
1132 byte-code forms. (Bug#11380)
1133
1134 2012-04-20 Chong Yidong <cyd@gnu.org>
1135
1136 * emacsclient.c (decode_options): Move -t -n corner case handling
1137 into server.el (Bug#11102).
1138 (main): Send -tty to Emacs under more circumstances (Bug#8314).
1139
1140 2012-04-18 Paul Eggert <eggert@cs.ucla.edu>
1141
1142 configure: new option --enable-gcc-warnings (Bug#11207)
1143 * Makefile.in (C_WARNINGS_SWITCH): Remove.
1144 (WARN_CFLAGS, WERROR_CFLAGS): New macros.
1145 (BASE_CFLAGS): Use new macros rather than old.
1146
1147 2012-04-16 Paul Eggert <eggert@cs.ucla.edu>
1148
1149 Assume less-ancient POSIX support.
1150 * update-game-score.c: Include <getopt.h> rather than rolling our
1151 own decls for optarg, optind, opterr. See
1152 <http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html>.
1153
1154 2012-04-14 Juanma Barranquero <lekktu@gmail.com>
1155
1156 * emacsclient.c (decode_options) [WINDOWSNT]:
1157 Call ttyname instead of passing its address (typo in 2011-12-04T17:13:01Z!lekktu@gmail.com).
1158
1159 2012-04-07 Eli Zaretskii <eliz@gnu.org>
1160
1161 * makefile.w32-in (obj): Add xml.o.
1162
1163 2012-04-07 Eli Zaretskii <eliz@gnu.org>
1164
1165 * makefile.w32-in (ALL): Now the list of executables, not of phony
1166 targets.
1167 (.PHONY): Only make-docfile is its prerequisite now.
1168 (make-docfile): Don't depend on stamp_BLD. Add a comment about
1169 the need in this target.
1170 (ctags, etags, ebrowse, hexl, movemail, emacsclient)
1171 (test-distrib): Phony targets removed.
1172 ($(BLD)/test-distrib.exe): Run test-distrib as part of the recipe.
1173 (all): Don't depend on stamp_BLD.
1174 (ALL): Include $(BLD)/test-distrib.exe.
1175
1176 2012-03-11 Andreas Schwab <schwab@linux-m68k.org>
1177
1178 * emacsclient.c (main): Handle -print-nonl command.
1179
1180 * emacsclient.c (main): Handle multiple messages in a single
1181 datagram.
1182
1183 * emacsclient.c (socket_name): Add const.
1184 (get_server_config): Add parameter config_file, use it instead of
1185 global server_file.
1186 (set_tcp_socket): Add parameter local_server_file, pass it down to
1187 get_server_config.
1188 (set_local_socket): Add parameter local_socket_name, use it
1189 instead of global socket_name.
1190 (set_socket): Adjust calls to set_local_socket and set_tcp_socket.
1191 Don't clobber global server_file or socket_name.
1192 (main): No longer reset server_file or socket_name.
1193
1194 2012-01-05 Glenn Morris <rgm@gnu.org>
1195
1196 * ebrowse.c (version) <emacs_copyright>:
1197 * etags.c (print_version) <emacs_copyright>:
1198 * rcs2log (Copyright): Update short copyright year to 2012.
1199
1200 2011-12-25 Andreas Schwab <schwab@linux-m68k.org>
1201
1202 * etags.c (C_entries): Properly skip over string and character
1203 constants and comments inside brackets. (Bug#10357)
1204
1205 2011-12-04 Juanma Barranquero <lekktu@gmail.com>
1206
1207 * emacsclient.c (decode_options) [WINDOWSNT]: Don't force tty = 0;
1208 instead, treat both -c and -t as always requesting a new "tty" frame,
1209 and let server.el decide which kind is actually required.
1210 Reported by Uwe Siart <usenet@siart.de> in this thread:
1211 http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00303.html
1212
1213 2011-11-30 Chong Yidong <cyd@gnu.org>
1214
1215 * emacsclient.c (main): Condition last change on WINDOWSNT
1216 (Bug#10155).
1217
1218 2011-11-27 Eli Zaretskii <eliz@gnu.org>
1219
1220 * makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS).
1221
1222 * emacsclient.c (main) <environ>: Remove declaration, already
1223 pulled in by unistd.h on POSIX hosts and stdlib.h on MS-Windows.
1224
1225 2011-11-24 Glenn Morris <rgm@gnu.org>
1226
1227 * make-docfile.c (scan_lisp_file): Treat defcustom like defvar.
1228
1229 2011-11-14 Dan Nicolaescu <dann@ics.uci.edu>
1230
1231 * Makefile.in (all): Make sure "all" is the first target.
1232
1233 2011-10-27 Juanma Barranquero <lekktu@gmail.com>
1234
1235 * emacsclient.c (w32_getenv): Silence compiler warnings.
1236
1237 2011-09-07 Glenn Morris <rgm@gnu.org>
1238
1239 * etags.c (Fortran_functions): Handle "elemental" functions.
1240
1241 2011-09-07 Dieter Schuster <didischuster@arcor.de> (tiny change)
1242
1243 * etags.c (Fortran_functions): Handle "pure" functions. (Bug#9359)
1244
1245 2011-09-06 Paul Eggert <eggert@cs.ucla.edu>
1246
1247 * Makefile.in ($(DESTDIR)${archlibdir}): install-sh moved
1248 to build-aux (Bug#9169).
1249
1250 2011-09-04 Paul Eggert <eggert@cs.ucla.edu>
1251
1252 Integer and memory overflow issues (Bug#9397).
1253
1254 * emacsclient.c (xmalloc): Accept size_t, not unsigned int, to
1255 avoid potential buffer overflow issues on typical 64-bit hosts.
1256 Return void *, not long *.
1257 (get_current_dir_name): Report a failure, instead of looping
1258 forever, if buffer size calculation overflows. Treat malloc
1259 failures like realloc failures, as that has better behavior and is
1260 more consistent. Do not check whether xmalloc returns NULL, as
1261 that's not possible.
1262 (message): Do not arbitrarily truncate message to 2048 bytes when
1263 sending it to stderr; use vfprintf instead.
1264 (get_server_config, set_local_socket)
1265 (start_daemon_and_retry_set_socket): Do not alloca
1266 arbitrarily-large buffers; that's not safe.
1267 (get_server_config, set_local_socket): Do not use sprintf when its
1268 result might not fit in 'int'.
1269 (set_local_socket): Do not assume uid fits in 'int'.
1270
1271 * etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,
1272 to avoid potential buffer overflow issues on typical 64-bit hosts.
1273 (whatlen_max): New static var.
1274 (main): Avoid buffer overflow if subsidiary command length is
1275 greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its
1276 result might not fit in 'int'.
1277
1278 * movemail.c (main): Do not use sprintf when its result might not fit
1279 in 'int'. Instead, put the possibly-long file name into the
1280 output of pfatal_with_name.
1281
1282 * update-game-score.c: Include <limits.h>
1283 (get_user_id): Do not assume uid fits in 'int'. Simplify.
1284
1285 2011-07-28 Paul Eggert <eggert@cs.ucla.edu>
1286
1287 Assume freestanding C89 headers, string.h, stdlib.h.
1288 * ebrowse.c: Include stdlib.h unconditionally.
1289 * etags.c, update-game-score.c:
1290 Include string.h and stdlib.h unconditionally.
1291 * makefile.w32-in (LOCAL_CFLAGS): Don't define STDC_HEADERS.
1292 * movemail.c, pop.c: Include string.h unconditionally.
1293 * update-game-score.c: No need to include stdarg.h; not used.
1294
1295 Assume support for memcmp, memcpy, memmove, memset.
1296 * etags.c (absolute_filename): Assume memmove exists.
1297
1298 2011-07-09 Andreas Schwab <schwab@linux-m68k.org>
1299
1300 * update-game-score.c (usage): Update usage line.
1301
1302 2011-07-02 Jason Rumney <jasonr@gnu.org>
1303
1304 * emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on
1305 Windows (Bug#5486).
1306
1307 2011-06-25 Glenn Morris <rgm@gnu.org>
1308
1309 * emacsclient.c (decode_options) <opt>: Add `F:'.
1310 (print_help_and_exit): Mention --frame-parameters.
1311
1312 2011-06-25 Andreas Rottmann <a.rottmann@gmx.at>
1313
1314 * emacsclient.c (longopts, decode_options, main): Add frame-parameters.
1315
1316 2011-06-10 Paul Eggert <eggert@cs.ucla.edu>
1317
1318 * movemail.c: Fix race condition and related bugs (Bug#8836).
1319 (main) [!MAIL_USE_SYSTEM_LOCK]: Prefer mkstemp to mktemp, as this
1320 fixes some race conditions. Report mkstemp/mktemp errno rather
1321 than a possibly-garbage errno. Reinitialize the template each
1322 time through the loop, as earlier mkstemp/mktemp calls could have
1323 trashed it. Pass 0600 (not 0666) to mktemp, for consistency
1324 with mkstemp; the permissions don't matter anyway.
1325
1326 2011-06-01 Dan Nicolaescu <dann@ics.uci.edu>
1327
1328 * emacsclient.c (socket_status): Use constant pointer.
1329
1330 2011-05-28 Paul Eggert <eggert@cs.ucla.edu>
1331
1332 Use 'inline', not 'INLINE'.
1333 * etags.c (hash): Now inline unconditionally.
1334 * make-docfile.c (put_char): inline, not INLINE.
1335
1336 2011-05-25 Glenn Morris <rgm@gnu.org>
1337
1338 * Makefile.in (.c.o): Remove (every .o file has an explicit rule).
1339 (insrcdir): New.
1340 (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
1341 Use $insrcdir to suppress unaesthetic ignored errors.
1342 (clean): Simplify list of things to delete.
1343 (all, clean): Use $EXE_FILES.
1344
1345 * Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.
1346
1347 * Makefile.in (REGEXPOBJ, REGEXPDEPS): Remove. Replace by expansion.
1348 (etags${EXEEXT}): Just depend on regex.o, not regex.h as well.
1349
1350 2011-05-24 Glenn Morris <rgm@gnu.org>
1351
1352 * Makefile.in (update-game-score${EXEEXT}): Use a single rule.
1353
1354 2011-05-19 Glenn Morris <rgm@gnu.org>
1355
1356 * makefile.w32-in (echolisp): Remove rule that is no longer needed.
1357 (clean): No more echolisp.tmp.
1358
1359 2011-05-18 Glenn Morris <rgm@gnu.org>
1360
1361 * fakemail.c: Remove file.
1362 * makefile.w32-in ($(BLD)/fakemail.exe, fakemail)
1363 ($(BLD)/fakemail.$(O)): Remove.
1364 * Makefile.in (UTILITIES): Remove fakemail${EXEEXT}.
1365 (fakemail${EXEEXT}): Remove rule.
1366
1367 2011-04-24 Teodor Zlatanov <tzz@lifelogs.com>
1368
1369 * makefile.w32-in (obj): Add gnutls.o.
1370
1371 2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
1372
1373 Static checks with GCC 4.6.0 and non-default toolkits.
1374
1375 * movemail.c (mail_spool_name): Protoize.
1376 (main): Remove unused var. Mark var as initialized.
1377 Move locals to avoid shadowing, and use time_t for times.
1378
1379 * fakemail.c (xmalloc, xreallc): Use standard C prototypes
1380 with void *. This avoids warnings about pointer casts.
1381
1382 * emacsclient.c (main): Don't use uninitialized var.
1383 (IS_ANY_SEP): Remove; unused.
1384 (get_current_dir_name): Add an extern decl.
1385
1386 2011-04-06 Paul Eggert <eggert@cs.ucla.edu>
1387
1388 Fix more problems found by GCC 4.6.0's static checks.
1389
1390 * emacsclient.c (message): Mark it as a printf-like function.
1391
1392 * make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.
1393 (write_c_args): Use it to suppress GCC warning.
1394
1395 2011-03-30 Paul Eggert <eggert@cs.ucla.edu>
1396
1397 Fix a problem found by GCC 4.6.0's static checks.
1398 * etags.c (just_read_file): Remove dummy variable and simplify.
1399
1400 2011-03-27 Glenn Morris <rgm@gnu.org>
1401
1402 * emacsclient.c: Replace SIGTYPE with void.
1403
1404 2011-03-23 Juanma Barranquero <lekktu@gmail.com>
1405
1406 * ntlib.c: Include <ctype.h>.
1407
1408 2011-03-23 Glenn Morris <rgm@gnu.org>
1409
1410 * Makefile.in ($(DESTDIR)${archlibdir}):
1411 Use `install-sh -d' rather than mkinstalldirs.
1412
1413 2011-03-23 Paul Eggert <eggert@cs.ucla.edu>
1414
1415 * ebrowse.c: Use size_t, not int, for sizes.
1416 This avoids a warning with gcc -Wstrict-overflow, and works
1417 better for very large objects.
1418 (inbuffer_size): Now size_t. All uses changed.
1419 (xmalloc, xrealloc, operator_name, process_file): Use size_t for
1420 sizes. Don't bother testing whether a size_t value can be negative.
1421
1422 * etags.c (Ada_funcs): Redo slightly to avoid overflow warning.
1423
1424 etags: In Prolog functions, don't assume int fits in size_t.
1425 This avoids a warning with gcc -Wstrict-overflow.
1426 * etags.c (Prolog_functions, prolog_pr, prolog_atom): Use size_t,
1427 not int, to store sizes.
1428 (prolog_atom): Return 0, not -1, on error. All callers changed.
1429
1430 update-game-score: fix bug with -r
1431 * update-game-score.c (main): Don't set 'scores' to garbage when
1432 -r is specified and scorecount != MAX_SCORES (Bug#8310). This bug
1433 was introduced in the 2002-04-10 change, and was found with gcc
1434 -Wstrict-overflow (GCC 4.5.2, x86-64).
1435
1436 fakemail: Remove dependency on ignore-value.
1437 This undoes some of the recent fakemail-related changes.
1438 It is made possible due to recent changes to gnulib's stdio module.
1439 * Makefile.in (fakemail${EXEEXT}): Do not depend on ignore-value.h.
1440 * fakemail.c: Do not include ignore-value.h.
1441 (put_line): Do not use ignore_value.
1442
1443 2011-03-07 Chong Yidong <cyd@stupidchicken.com>
1444
1445 * Version 23.3 released.
1446
1447 2011-03-03 Drake Wilson <drake@begriffli.ch> (tiny change)
1448
1449 * emacsclient.c (longopts): Add quiet.
1450 (decode_options): Handle q/quiet.
1451 (print_help_and_exit): Add q/quiet.
1452 (main): Suppress some messages if quiet option is used.
1453
1454 2011-02-26 Eli Zaretskii <eliz@gnu.org>
1455
1456 * Makefile.in (fakemail${EXEEXT}): Depend on lib/ignore-value.h.
1457
1458 * emacsclient.c (xstrdup) [WINDOWSNT]: Function added back.
1459 (w32_getenv): Use xstrdup to return all values in malloc'ed
1460 storage.
1461
1462 2011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1463
1464 * ebrowse.c (parse_qualified_param_ident_or_type): Make it clear
1465 to reader (and to the compiler) that the loop always executes at
1466 least once. This prevents a warning with recent GCC.
1467 (BROWSE_STRUCT): Remove unused macro.
1468
1469 * fakemail.c: Include <ignore-value.h>.
1470 (put_line): Explicitly ignore fwrite return value, for benefit of
1471 recent glibc + gcc.
1472 (close_the_streams): Diagnose output errors instead of merely
1473 exiting with nonzero status.
1474 (my_fclose, main): Diagnose input errors, and exit with nonzero status.
1475 Formerly, input errors were silently ignored.
1476
1477 * ebrowse.c (putstr): Rename from PUTSTR and turn into a function.
1478 All callers changed. This is cleaner, and avoids GCC warnings about
1479 passing NULL to fputs.
1480 (insert_keyword): Rename parameter to avoid shadowing diagnostic.
1481
1482 2011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1483
1484 * emacsclient.c (main): Avoid dangling 'if'.
1485 (xstrdup): Remove; no longer needed.
1486 (get_current_dir_name, w32_getenv, get_server_config, find_tty)
1487 (set_local_socket, main):
1488 Use const char *, not char *, for pointers that are not assigned
1489 through.
1490 (IF_LINT): New macro.
1491 (set_local_socket, main): Use it to suppress warnings with
1492 GCC -Wuninitialized.
1493
1494 * emacsclient.c: Redo local variables to avoid shadowing problems.
1495 (message, socket_status, start_daemon_and_retry_set_socket):
1496 Rename locals.
1497 (main): Move decl of "i".
1498
1499 * etags.c (ISUPPER): Move to inside the only #ifdef where it's used.
1500 This avoids an unused-macro warning with some GCC settings.
1501
1502 * make-docfile.c (write_globals): Change char * to char const *
1503 to avoid a GCC "assignment discards qualifiers" diagnostic
1504 in some configurations.
1505 (scan_c_file): Refactor local variable decls to make their scope
1506 more accurate and to avoid a GCC -Wuninitialized diagnostic.
1507
1508 2011-02-22 Eli Zaretskii <eliz@gnu.org>
1509
1510 * etags.c (canonicalize_filename, ISUPPER): Fix last change.
1511
1512 * makefile.w32-in ($(BLD)/ebrowse.$(O), $(BLD)/pop.$(O)):
1513 Depend on ../lib/min-max.h.
1514
1515 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1516
1517 etags: Downcase drive letters, for consistency with Emacs proper.
1518 * etags.c (upcase): Remove; no longer used.
1519 (canonicalize_filename): Downcase drive letters.
1520
1521 Assume S_ISLNK etc. work, since gnulib supports this.
1522 * etags.c (S_ISREG): Remove.
1523
1524 2011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1525
1526 Assume S_ISLNK etc. work, since gnulib supports this.
1527 * etags.c (S_ISREG): Remove.
1528
1529 2011-02-22 Juanma Barranquero <lekktu@gmail.com>
1530
1531 * makefile.w32-in (obj): Remove filemode.o.
1532
1533 2011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1534
1535 New file "lib/min-max.h".
1536 * ebrowse.c (min, max): Define them by including <min-max.h>
1537 instead of defining it ourselves.
1538 * pop.c (min): Likewise.
1539 * Makefile.in (ebrowse${EXEEXT}, pop.o): Depend on min-max.h.
1540
1541 * movemail.c (popmail): Report fchown failure instead of ignoring it.
1542 But if the file already has the right ownership, don't worry about it.
1543
1544 * make-docfile.c (input_buffer): Rename variables to avoid shadowing.
1545 * test-distrib.c (buf): Make this local, to avoid shadowing.
1546
1547 * movemail.c (main, pop_retr): Rename locals to avoid shadowing.
1548 (progname, sfi, sfo, ibuffer, obuffer): Remove unused vars.
1549 (DONE): Remove unused macro.
1550 (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_FROM_LINE):
1551 Define these macros only in the contexts that need them.
1552 * pop.c (index): Remove unused macro.
1553 (KPOP_PORT): Define only if KERBEROS is defined.
1554
1555 Declare file-scope functions and variables static if not exported.
1556 This is more consistent, and is nicer with gcc -Wstrict-prototypes.
1557 * ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c:
1558 * profile.c, test-distrib.c, update-game-score.c:
1559 Declare non-'main' functions and variables to be static.
1560 * ebrowse.c: Omit redundant function prototypes.
1561
1562 2011-02-21 Eli Zaretskii <eliz@gnu.org>
1563
1564 * makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/emacsclient.$(O))
1565 ($(BLD)/etags.$(O), $(BLD)/movemail.$(O), $(BLD)/ntlib.$(O)):
1566 Depend on $(EMACS_ROOT)/nt/inc/sys/stat.h.
1567
1568 2011-02-21 Ben Key <bkey76@gmail.com>
1569
1570 * make-docfile.c (scan_c_file): Adapt DEFVAR_PER_BUFFER case to
1571 the new BVAR macro.
1572
1573 2011-02-20 Juanma Barranquero <lekktu@gmail.com>
1574
1575 * makefile.w32-in (obj): Remove md5.o.
1576
1577 2011-02-18 Karl Chen <Karl.Chen@quarl.org>
1578
1579 * emacsclient.c (main): Loop while `recv' return EINTR.
1580
1581 2011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1582
1583 * make-docfile.c (EMACS_INTEGER): Rename from EMACS_INT.
1584 This avoids collision with config.h's EMACS_INT on some
1585 configurations. All uses changed.
1586
1587 2011-02-08 Tom Tromey <tromey@redhat.com>
1588
1589 * make-docfile.c: Unconditionally include stdlib.h.
1590 (generate_globals): New global.
1591 (xrealloc): New function.
1592 (main): Handle '-g'. Call start_globals, write_globals.
1593 (scan_file): Conditionally call put_filename.
1594 (start_globals): New function.
1595 (struct global): New.
1596 (num_globals, globals): New globals.
1597 (add_global, compare_globals, write_globals): New functions.
1598 (scan_c_file): Update for "-g".
1599 (scan_lisp_file): Fail if "-g".
1600
1601 2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1602
1603 * emacsclient.c: Conform to C89 pointer rules.
1604 (file_name_absolute_p): Accept const char *, not const unsigned
1605 char *, to satisfy C89 rules.
1606
1607 2011-02-02 Eli Zaretskii <eliz@gnu.org>
1608
1609 * makefile.w32-in (ETAGS_CFLAGS, CTAGS_CFLAGS):
1610 Add ``-DEMACS_NAME="\"GNU Emacs\""''.
1611 (obj): Remove strftime.o.
1612
1613 2011-01-31 Eli Zaretskii <eliz@gnu.org>
1614
1615 * makefile.w32-in (VERSION): Don't define, defined on nt/config.nt.
1616 (ECLIENT_CFLAGS): Remove -DVERSION.
1617 ($(BLD)/emacsclient.$(O)): Don't depend on makefile.w32-in.
1618
1619 2011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1620
1621 src/emacs.c now gets version number from configure.in
1622 * ebrowse.c: Adjust comment to say that.
1623
1624 2011-01-30 Jim Meyering <meyering@redhat.com>
1625
1626 * make-docfile.c: Don't corrupt heap for an invalid .elc file
1627 "printf '#@1a' > in.elc; ./make-docfile in.elc" would store 0
1628 one byte before just-malloc'd saved_string buffer.
1629 * make-docfile.c (scan_lisp_file): Diagnose an invalid dynamic
1630 doc string length. Also fix an always-false while-loop test.
1631
1632 2011-01-29 Eli Zaretskii <eliz@gnu.org>
1633
1634 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1635 (GETOPTOBJS, GETOPTDEPS): Remove targets.
1636 (MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
1637 ($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
1638 (ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
1639 and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
1640 (clean): Don't remove getopt.h.
1641 (getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
1642 ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
1643 $(EMACS_ROOT)/lib/getopt.h.
1644
1645 2011-01-28 Chong Yidong <cyd@stupidchicken.com>
1646
1647 * ntlib.c (setregid): New stub, renamed from setegid.
1648
1649 * ntlib.h: Update prototype.
1650
1651 2011-01-25 Chong Yidong <cyd@stupidchicken.com>
1652
1653 * movemail.c (main): Use setregid instead of setegid, which is
1654 missing on older systems. Suggested by Peter O'Gorman (Bug#6811).
1655
1656 2011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1657
1658 Check return values of some library calls.
1659 * hexl.c (main): Check fread result.
1660 * make-docfile.c (main): Check chdir result.
1661 (scan_c_file): Check fscanf result.
1662 * movemail.c (main): Check ftruncate result.
1663
1664 2011-01-17 Paul Eggert <eggert@cs.ucla.edu>
1665
1666 Include <unistd.h> unilaterally.
1667 * emacsclient.c, etags.c, fakemail.c, make-docfile.c, movemail.c:
1668 * pop.c, test-distrib.c, update-game-score.c:
1669 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
1670 unistd.h is always present now, possibly supplied by gnulib.
1671
1672 Include <getopt.h> not "getopt.h".
1673 * ebrowse.c, emacsclient.c: Include <getopt.h>, not "getopt.h".
1674 Since getopt.h is no longer in this directory, there's no point
1675 using the form with double-quotes.
1676
1677 Remove unused files.
1678 * getopt.c, getopt1.c, getopt_.h, getopt_int.h: Remove.
1679 These files are now in ../lib, copied from gnulib.
1680
1681 Use gnulib's getopt-gnu module.
1682 * Makefile.in (mostlyclean): Do not clean getopt.h or getopt.h-t,
1683 as these are now done by gnulib.
1684 (GETOPT_H, getopt.h, GETOPTOBJS, GETOPTDEPS, getopt.o, getopt1.o):
1685 Remove; now done by gnulib. All uses removed.
1686
1687 Automate syncing from gnulib.
1688 * Makefile.in (EXE_FILES): New macro.
1689 (BASE_CFLAGS): Add -I../lib and -I${srcdir}/../lib,
1690 for gnulib's .h files.
1691 (LOADLIBES): Add ../lib/libgnu.a.
1692 ($(EXE_FILES)): Depend on ../lib/libgnu.a.
1693 (../lib/libgnu.a): New rule.
1694
1695 2011-01-08 Paul Eggert <eggert@cs.ucla.edu>
1696
1697 * Makefile.in (EXECUTABLES): Remove; macro unused since 1993.
1698
1699 2011-01-08 Glenn Morris <rgm@gnu.org>
1700
1701 * Makefile.in (EMACSOPT): Add --no-site-lisp.
1702
1703 * Makefile.in (EMACSOPT): Remove --multibyte, it does nothing any more.
1704
1705 2011-01-02 Glenn Morris <rgm@gnu.org>
1706
1707 * ebrowse.c (version) <emacs_copyright>:
1708 * etags.c (print_version) <emacs_copyright>:
1709 * rcs2log (Copyright): Set short copyright year to 2011.
1710
1711 2010-11-27 Joe Matarazzo <joe.matarazzo@gmail.com> (tiny change)
1712
1713 * ebrowse.c (yylex): If end of input buffer encountered while
1714 searching for a newline after "//", return YYEOF. (Bug#7446)
1715
1716 2010-11-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1717
1718 * emacsclient.c (set_local_socket) [DARWIN_OS]: Add fall-back
1719 definition of _CS_DARWIN_USER_TEMP_DIR for Mac OS X 10.4 and older.
1720
1721 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
1722
1723 * test-distrib.c: Remove include guards for config.h and fcntl.h.
1724 (O_RDONLY): Do not define.
1725 (cool_read): Fix type for variable "sofar".
1726
1727 2010-10-25 Glenn Morris <rgm@gnu.org>
1728
1729 * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove easymenu.elc.
1730
1731 2010-10-23 Glenn Morris <rgm@gnu.org>
1732
1733 * digest-doc.c, sorted-doc.c: Remove files.
1734 * Makefile.in (UTILITIES): Remove digest-doc and sorted-doc.
1735 (digest-doc${EXEEXT}, sorted-doc${EXEEXT}): Remove rules.
1736 * makefile.w32-in (ALL): Remove digest-doc and sorted-doc.
1737 ($(BLD)/sorted-doc.exe, $(BLD)/digest-doc.exe, sorted-doc, digest-doc)
1738 ($(BLD)/digest-doc.$(O), $(BLD)/sorted-doc.$(O)): Remove rules.
1739 (install): Don't install digest-doc.exe or sorted-doc.exe.
1740
1741 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
1742
1743 * Makefile.in (PROFILING_LDFLAGS): Remove, not needed.
1744
1745 2010-10-09 Glenn Morris <rgm@gnu.org>
1746
1747 * b2m.c, b2m.pl: Remove files.
1748 * Makefile.in (INSTALLABLES): Remove b2m.
1749 * makefile.w32-in ($(BLD)/b2m.$(O)): Remove.
1750
1751 2010-10-08 Glenn Morris <rgm@gnu.org>
1752
1753 * emacsclient.c (set_local_socket) [DARWIN_OS]: Try as a fall-back
1754 DARWIN_USER_TEMP_DIR. (Bug#3992)
1755
1756 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
1757
1758 * test-distrib.c (cool_read):
1759 * movemail.c (main, concat):
1760 * make-docfile.c (scan_file, write_c_args):
1761 * emacsclient.c (get_server_config): Fix -Wconversion warning.
1762 (egetenv): Move conditional definition earlier.
1763 (progname): Use const.
1764 * sorted-doc.c (xstrdup): Use const.
1765
1766 * Makefile.in: Remove ^L, old makes choke on it.
1767
1768 2010-10-02 Wolfgang Schnerring <wosc@wosc.de> (tiny change)
1769
1770 * emacsclient.c (main): Return EXIT_FAILURE if Emacs sends us an
1771 error string (Bug#6963).
1772
1773 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
1774
1775 * makefile.w32-in (tags): Remove target.
1776
1777 2010-10-01 Eli Zaretskii <eliz@gnu.org>
1778
1779 * makefile.w32-in (tags, TAGS): New targets.
1780
1781 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
1782
1783 * emacsclient.c (get_server_config): Don't read Emacs pid from
1784 the authentication file.
1785
1786 2010-09-29 Juanma Barranquero <lekktu@gmail.com>
1787
1788 * makefile.w32-in (../src/config.h): Remove target, it is stale.
1789
1790 * emacsclient.c (main): Remove unused variables.
1791 (start_daemon_and_retry_set_socket): Use EXIT_FAILURE.
1792
1793 2010-09-25 Ulrich Mueller <ulm@gentoo.org>
1794
1795 * etags.c (compressors, print_language_names): Support xz compression.
1796
1797 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1798
1799 * fakemail.c: Include stdlib.h for getenv. Remove declaration of
1800 popen, fclose and pclose.
1801 (my_name, fatal, error, put_line): Use const char*.
1802 (main): Remove extern getenv, mail_program_name is const char*.
1803
1804 * update-game-score.c (get_prefix, write_scores, main): Use const char*.
1805
1806 * sorted-doc.c (error, fatal, states): Use const char *.
1807
1808 * pop.h (pop_multi_first): Use const char *.
1809 (_ARGS): Remove.
1810
1811 * pop.c (pop_multi_first, socket_connection, sendline): Use const char*.
1812
1813 * movemail.c (fatal, error, concat): Use const char *.
1814
1815 * make-docfile.c (error, fatal, scan_c_file, scan_lisp_file):
1816 Use const char *.
1817
1818 * etags.c (compressor, language, Ada_suffix, Ada_help, Asm_suffixes)
1819 (Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes)
1820 (Cplusplus_help, Cjava_suffixes, Cobol_suffixes, Cstar_suffixes)
1821 (Erlang_suffixes, Erlang_help, Forth_suffixes, Forth_help)
1822 (Fortran_suffixes, Fortran_help, HTML_suffixes, HTML_help)
1823 (Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help)
1824 (Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help)
1825 (Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters)
1826 (Perl_help, PHP_suffixes, PHP_help, plain_C_suffixses, PS_suffixes)
1827 (PS_help, Prolog_suffixes, Prolog_help, Python_suffixes, Python_help)
1828 (Scheme_suffixes, Scheme_help, TeX_suffixes, TeX_help, Texinfo_suffixes)
1829 (Texinfo_help, Yacc_suffixes, Yacc_help, auto_help, none_help)
1830 (no_lang_help, print_language_names)
1831 (get_language_from_interpreter, get_language_from_filename)
1832 (init, make_tag, struct C_stab_entry, write_classname, TEX_defenv)
1833 (TEX_decode_env, nocase_tail, savestr, savenstr, fatal, pfatal)
1834 (concat): Use const char*.
1835
1836 * emacsclient.c (message, sock_err_message, send_to_emacs)
1837 (quote_argument, set_local_socket)
1838 (start_daemon_and_retry_set_socket): Use const char*.
1839
1840 * ebrowse.c (struct member): filename, def_filename is const.
1841 (struct sym): filename, sfilename is const.
1842 (struct kw): name is const.
1843 (add_sym, yyerror, token_string, insert_keyword, main): Use const char*.
1844
1845 * b2m.c (concat, fatal): Use const char*.
1846 (main): Don't assign labels a string literal.
1847
1848 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
1849
1850 * ebrowse.c (usage, version, mark_virtual):
1851 Remove duplicate declarations.
1852
1853 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1854
1855 * emacsclient.c: Move socket related #includes together with the
1856 rest of the #includes. Move WINDOWSNT includes closer together.
1857 (HAVE_CONFIG_H): Remove.
1858 (NO_RETURN): Remove, defined in config.h.
1859 (main): Convert definition to standard C.
1860
1861 2010-07-29 Juanma Barranquero <lekktu@gmail.com>
1862
1863 * make-docfile.c (write_c_args): Warn for old-style empty arglist ().
1864
1865 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1866
1867 * emacsclient.c (getcwd): Fix previous change: make getcwd
1868 conditional on HAVE_GETCWD and declare with the correct POSIX
1869 profile (for some reason MinGW headers define its 2nd arg as int,
1870 not size_t; but getcwd is not used on Windows nonetheless).
1871
1872 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1873
1874 * emacsclient.c (getcwd, w32_getenv):
1875 * ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.
1876
1877 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1878
1879 * update-game-score.c (usage): Add NO_RETURN specifier.
1880 * movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
1881 * make-docfile.c (fatal):
1882 * hexl.c (usage):
1883 * fakemail.c (fatal):
1884 * etags.c (fatal, suggest_asking_for_help, pfatal):
1885 * emacsclient.c (fatal):
1886 * b2m.c (fatal): Likewise.
1887
1888 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
1889
1890 * make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".
1891
1892 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
1893
1894 * emacsclient.c (get_current_dir_name, w32_get_resource)
1895 (w32_getenv, w32_set_user_model_id, w32_window_app, w32_execvp)
1896 (close_winsock, initialize_sockets, w32_find_emacs_process)
1897 (w32_give_focus):
1898 * ntlib.c (getlogin, getuid, getgid, getegid):
1899 Convert definitions to standard C.
1900
1901 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1902
1903 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1904 (PROFILING_LDFLAGS): Set from substitution.
1905 (BASE_CFLAGS): Add ${C_WARNINGS_SWITCH}.
1906 (ALL_CFLAGS, CPP_CFLAGS): Add ${PROFILING_CFLAGS}.
1907 (LINK_CFLAGS): Add ${PROFILING_LDFLAGS}.
1908
1909 2010-07-12 Eli Zaretskii <eliz@gnu.org>
1910
1911 * makefile.w32-in (lisp2): Change hebrew.el to hebrew.elc (see
1912 2010-07-12T05:25:46Z!handa@etlken).
1913
1914 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1915
1916 * emacsclient.c (set_local_socket): Use strchr, strrchr instead of
1917 index, rindex.
1918 * movemail.c (mail_spool_name, popmail): Likewise.
1919 * pop.c (pop_list): Likewise.
1920
1921 2010-07-11 Eli Zaretskii <eliz@gnu.org>
1922
1923 * makefile.w32-in (obj): Add menu.o, bidi.o, w32uniscribe.o,
1924 and unexw32.o. (Bug#6603)
1925
1926 2010-07-10 Eli Zaretskii <eliz@gnu.org>
1927
1928 * Makefile.in ($(DESTDIR)${archlibdir}): Convert spaces to TABs.
1929
1930 2010-07-09 Andreas Schwab <schwab@linux-m68k.org>
1931
1932 * make-docfile.c (write_c_args): Restructure scanning loop.
1933
1934 2010-07-09 Dan Nicolaescu <dann@ics.uci.edu>
1935
1936 * make-docfile.c (write_c_args): Deal with type names in DEFUN
1937 arguments.
1938
1939 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
1940
1941 * update-game-score.c (P_): Remove macro.
1942 * ebrowse.c: Remove include guards.
1943 (P_): Remove macro.
1944
1945 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1946
1947 * ebrowse.c (add_sym, make_namespace): Replace bcopy, bzero by
1948 memcpy, memmove, memset.
1949 * pop.c (pop_retrieve, socket_connection, pop_getline): Likewise.
1950
1951 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1952
1953 * movemail.c: Add MAIL_USE_POP around prototypes.
1954 Include <string.h> if HAVE_STRING_H.
1955 (strerror): Only declare if !HAVE_STRERROR.
1956 (fatal): Make static.
1957 (error): Likewise.
1958 (pfatal_with_name): Likewise.
1959 (pfatal_and_delete): Likewise.
1960 (concat): Likewise.
1961 (xmalloc): Likewise.
1962 (popmail): Likewise.
1963 (pop_retr): Likewise.
1964 (mbx_write): Likewise.
1965 (mbx_delimit_begin): Likewise.
1966 (mbx_delimit_end): Likewise.
1967
1968 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1969
1970 * fakemail.c (action): Convert function definitions to standard C.
1971 (add_a_stream):
1972 * test-distrib.c (cool_read, main): Likewise.
1973
1974 2010-07-03 Andreas Schwab <schwab@linux-m68k.org>
1975
1976 * sorted-doc.c (cmpdoc): Fix signature.
1977 (qsort_compare): Delete.
1978 (main): Remove cast.
1979
1980 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
1981
1982 * ebrowse.c (match_qualified_namespace_alias): Check for null pointer.
1983
1984 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
1985
1986 Fix prototype warnings.
1987
1988 * ebrowse.c (match_qualified_namespace_alias):
1989 Pass sym* to find_namespace, not link*.
1990
1991 * emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET.
1992
1993 * sorted-doc.c (qsort_compare): New typedef.
1994 (main): Use it to cast cmpdoc.
1995
1996 2010-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1997
1998 * update-game-score.c: Convert function definitions to standard C.
1999 * sorted-doc.c:
2000 * profile.c:
2001 * pop.c:
2002 * movemail.c:
2003 * make-docfile.c:
2004 * hexl.c:
2005 * fakemail.c:
2006 * etags.c:
2007 * ebrowse.c:
2008 * digest-doc.c:
2009 * b2m.c: Likewise.
2010
2011 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2012
2013 * make-docfile.c (xmalloc, xrealloc, concat, readline, fatal):
2014 * b2m.c (scan_file, scan_lisp_file, scan_c_file): Convert to
2015 standard C prototypes.
2016
2017 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2018
2019 * ebrowse.c: Remove P_ and __P.
2020 * etags.c:
2021 * movemail.c:
2022 * pop.c:
2023 * update-game-score.c: Likewise.
2024
2025 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
2026
2027 * movemail.c (error): Avoid warning when there are no args.
2028
2029 2010-06-11 Juanma Barranquero <lekktu@gmail.com>
2030
2031 * makefile.w32-in (lisp2): Fix references to vc/vc-hooks.elc
2032 and vc/ediff-hook.elc.
2033
2034 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
2035
2036 * ntlib.h: Remove code dealing with BSTRING.
2037
2038 2010-05-29 Chong Yidong <cyd@stupidchicken.com>
2039
2040 * emacsclient.c (longopts, decode_options, print_help_and_exit):
2041 New arg `-parent-id'.
2042 (main): Send parent-id to Emacs.
2043
2044 2010-05-27 Glenn Morris <rgm@gnu.org>
2045
2046 * Makefile.in (distclean): No more Makefile.c.
2047
2048 2010-05-22 Jan Djärv <jan.h.d@swipnet.se>
2049
2050 * Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPS): New (Bug #6246).
2051 (all): Depend onSTAMP_INST_SCRIPTS, STAMP_SCRIPS (Bug #6246).
2052 (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
2053 New rules (Bug #6246).
2054 (clean): Remove stamp-* (Bug #6246).
2055
2056 2010-05-12 Glenn Morris <rgm@gnu.org>
2057
2058 * Makefile.in (INSTALLABLES): Remove @LIB_SRC_EXTRA_INSTALLABLES@.
2059
2060 2010-05-11 Glenn Morris <rgm@gnu.org>
2061
2062 * Makefile.in (.m.o): Remove, there are no .m files.
2063 (BASE_CFLAGS): New variable.
2064 (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Use $BASE_CFLAGS.
2065 (check): Update the message.
2066 (update-game-score${EXEEXT}): Do not use $MOVE_FLAGS.
2067
2068 * Makefile.in: Convert comments to makefile format.
2069
2070 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2071 (config.h) [MSDOS]: Do not include.
2072
2073 2010-05-10 Glenn Morris <rgm@gnu.org>
2074
2075 * Makefile.in (LIBS_SYSTEM): Set with configure, not cpp.
2076 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2077 (NOT_C_CODE): Remove, no longer used.
2078 (config.h) [!MSDOS]: No longer include.
2079 (LOADLIBES): Use LIBS_SYSTEM as a variable.
2080
2081 * Makefile.in (BLESSMAIL_TARGET): Set with configure, not cpp.
2082
2083 2010-05-08 Glenn Morris <rgm@gnu.org>
2084
2085 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2086
2087 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
2088
2089 * Version 23.2 released.
2090
2091 2010-05-06 Glenn Morris <rgm@gnu.org>
2092
2093 * Makefile.in: Minimize blessmail-related cpp usage.
2094 (BLESSMAIL_TARGET): New variable.
2095 (MOVEMAIL_NEEDS_BLESSING): Remove, replace by above variable.
2096 (blessmail): Always define this rule.
2097 (need-blessmail): New rule, split out from maybe-blessmail.
2098 (maybe-blessmail): Use BLESSMAIL_TARGET.
2099
2100 2010-05-04 Glenn Morris <rgm@gnu.org>
2101
2102 * Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than
2103 @c_switch_system@, @c_switch_machine@.
2104
2105 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2106
2107 * Makefile.in (LIBS_MACHINE): Remove all uses, unused.
2108
2109 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2110
2111 * Makefile.in (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Move to the
2112 non-cpp section.
2113
2114 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2115
2116 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): Define using
2117 autoconf, not cpp.
2118 (ALL_CFLAGS): Use them as make variables.
2119
2120 2010-04-07 Christoph Scholtes <cschol2112@googlemail.com>
2121
2122 * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Use parenthesis
2123 for macros for nmake compatibility.
2124
2125 2010-04-03 Juanma Barranquero <lekktu@gmail.com>
2126
2127 Add stubs for Windows, required after CVE-2010-0825 change.
2128 * ntlib.c (getgid, getegid, setegid): New stubs.
2129 * ntlib.h (getgid, getegid, setegid): Declare them.
2130
2131 2010-04-02 Dan Rosenberg <dan.j.rosenberg@gmail.com> (tiny change)
2132
2133 * movemail.c (main): Check return values of setuid.
2134 Avoid possibility of symlink attack when movemail is setgid mail
2135 (CVE-2010-0825).
2136
2137 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2138
2139 Remove extern errno declarations.
2140 * movemail.c:
2141 * etags.c:
2142 * emacsclient.c: Remove extern errno declarations.
2143
2144 2010-03-20 Glenn Morris <rgm@gnu.org>
2145
2146 * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
2147 (LIBHESIOD, LIBRESOLV): Make previous change a bit more friendly by
2148 defining these as Makefile variables.
2149 (LIBS_MOVE): Add LIBS_MAIL into this.
2150 (movemail${EXEEXT}): Just use LIBS_MOVE, not LIBS_MAIL as well.
2151
2152 2010-03-18 Glenn Morris <rgm@gnu.org>
2153
2154 * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
2155 (HESIODLIB, LIBS_MAIL): Set using autoconf rather than cpp.
2156 (BASE_CFLAGS): Remove (identical to CPP_CFLAGS).
2157
2158 2010-03-18 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2159
2160 * Makefile.in (uninstall): Handle the case where archlibdir does not
2161 exist. (Bug#5720)
2162
2163 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
2164
2165 * Branch for 23.2.
2166
2167 2010-02-20 Kevin Ryde <user42@zip.com.au>
2168
2169 * etags.c (Scheme_functions): Don't loop past a null character
2170 (Bug#5601).
2171
2172 2010-01-29 Kester Habermann <kester@linuxtag.org> (tiny change)
2173
2174 * etags.c (Fortran_functions): Handle recursive keyword (Bug#5484).
2175
2176 2010-01-11 Glenn Morris <rgm@gnu.org>
2177
2178 * ebrowse.c (version):
2179 * etags.c (print_version):
2180 * rcs2log (Copyright): Set copyright year to 2010.
2181
2182 2009-12-09 David Robinow <drobinow@gmail.com> (tiny change)
2183
2184 * makefile.w32-in: Use parenthesis for macros for nmake
2185 compatibility.
2186
2187 2009-11-23 Tobias Ringström <tobias@ringis.se> (tiny change)
2188
2189 * etags.c (absolute_filename): Use memmove if we have it for
2190 overlapping copy.
2191
2192 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2193
2194 * make-docfile.c (scan_lisp_file): Also look for `defvaralias'.
2195
2196 2009-10-15 Juanma Barranquero <lekktu@gmail.com>
2197
2198 * .gitignore: Add echolisp.tmp.
2199
2200 2009-10-15 Glenn Morris <rgm@gnu.org>
2201
2202 * emacsclient.c (print_help_and_exit): Fix bug report instructions.
2203
2204 * makefile.w32-in (echolisp): New rule.
2205 (clean): Delete echolisp.tmp.
2206
2207 2009-09-27 Eli Zaretskii <eliz@gnu.org>
2208
2209 * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Add term/internal.elc,
2210 term/pc-win.elc, emacs-lisp/easymenu.elc, and term/ns-win.elc, to
2211 be consistent with src/Makefile.in.
2212
2213 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2214
2215 * update-game-score.c (main): Sort scores before trimming them,
2216 reported by Jason Feng <jfeng@ozbert.com> (bug#4397).
2217
2218 2009-09-09 Glenn Morris <rgm@gnu.org>
2219
2220 * Makefile.in ($(DESTDIR)${archlibdir}): Set umask to world-readable
2221 before creating directories and game score files.
2222
2223 2009-08-19 Glenn Morris <rgm@gnu.org>
2224
2225 * cvtmail.c: Remove file.
2226 * Makefile.in (UTILITIES): Remove cvtmail.
2227 (cvtmail${EXEEXT}): Remove.
2228
2229 2009-07-08 E. Jay Berkenbilt <ejb@ql.org> (tiny change)
2230
2231 * b2m.c (main): Ensure that each message ends in two newlines.
2232
2233 2009-07-03 Jason Rumney <jasonr@gnu.org>
2234
2235 * emacsclient.c (w32_set_user_model_id): Use standard types.
2236
2237 2009-07-03 Eli Zaretskii <eliz@gnu.org>
2238
2239 * makefile.w32-in (WINNT_SUPPORT): Add common-win.elc, like
2240 src/Makefile.in did.
2241
2242 2009-06-30 Jason Rumney <jasonr@gnu.org>
2243
2244 * emacsclient.c (w32_give_focus): Use GetModuleHandle for library
2245 that is already loaded.
2246 (w32_set_user_model_id): New function.
2247 (main): Use it to associate emacsclient with emacs (bug#1849).
2248
2249 2009-06-29 Jim Meyering <meyering@redhat.com>
2250
2251 Remove useless if-before-free test.
2252 * make-docfile.c (scan_lisp_file): Remove useless test.
2253
2254 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2255
2256 * Makefile.in (movemail.o): Don't pass -Demacs, unused.
2257
2258 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
2259
2260 * Branch for 23.1.
2261
2262 2006-06-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2263
2264 * mac-fix-env.m:
2265 * Makefile.in (mac-fix-env): Remove.
2266
2267 2006-06-06 David Reitter <david.reitter@gmail.com>
2268
2269 * Makefile.in (mac-fix-env): Compile it using ALL_CFLAGS.
2270
2271 2009-04-20 Juanma Barranquero <lekktu@gmail.com>
2272
2273 * emacsclient.c (print_help_and_exit): Fix typo and tabify (careful
2274 spacing is required in the message output, as the comment suggests).
2275
2276 2009-04-20 Chong Yidong <cyd@stupidchicken.com>
2277
2278 * emacsclient.c (print_help_and_exit): Clarify argument placement
2279 for short option names.
2280
2281 2009-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2282
2283 * emacsclient.c (print_help_and_exit): Fix typo.
2284
2285 2009-03-21 Eli Zaretskii <eliz@gnu.org>
2286
2287 * ntlib.c (setuid): Argument is now unsigned.
2288 (getuid): Return value is now unsigned.
2289 (getpwuid): Argument is now unsigned.
2290 (fchown): UID and GID arguments are now unsigned.
2291
2292 * ntlib.h (fchown): UID and GID arguments are now unsigned.
2293 (getuid): Return value is now unsigned.
2294 (setuid): Argument is now unsigned.
2295 (getpwuid): Remove prototype (it's declared in nt/inc/pwd.h).
2296
2297 2009-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
2298
2299 * emacsclient.c (main): Revert part of last change, so
2300 drive-relative file names again work on Windows.
2301
2302 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2303
2304 * emacsclient.c (main): Always pass cwd via "-dir". Pass the file
2305 names without prepending cwd to them, so Emacs uses its customary
2306 rules to determine how to interpret the file name.
2307
2308 2009-03-04 Glenn Morris <rgm@gnu.org>
2309
2310 * movemail.c (main) [MAIL_USE_POP]: Add -r to usage message.
2311
2312 2009-02-13 Sven Joachim <svenjoac@gmx.de>
2313
2314 * movemail.c: Include time.h unconditionally.
2315 (main): Use time_t for time variables.
2316
2317 2009-02-11 Glenn Morris <rgm@gnu.org>
2318
2319 * movemail.c (mbx_delimit_begin): Also write the current time.
2320
2321 2009-02-10 Glenn Morris <rgm@gnu.org>
2322
2323 * movemail.c (mbx_delimit_begin, mbx_delimit_end): Write mbox rather
2324 than Babyl format. (Bug#2196)
2325
2326 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2327
2328 * emacsclient.c (decode_options): Use a dummy display name under
2329 NS/Cocoa.
2330
2331 2009-01-14 Lars Rasmusson <lars.rasmusson@gmail.com> (tiny change)
2332
2333 * ebrowse.c (matching_regexp): Fix OB1 error.
2334
2335 2009-01-05 Glenn Morris <rgm@gnu.org>
2336
2337 * ebrowse.c (version):
2338 * etags.c (print_version):
2339 * rcs2log (Copyright): Update copyright for 2009.
2340
2341 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
2342
2343 * movemail.c (main): Fatal if hard links cannot be created.
2344
2345 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
2346
2347 * emacsclient.c (start_daemon_and_retry_set_socket): Improve error
2348 checking.
2349
2350 2008-12-14 Dan Nicolaescu <dann@ics.uci.edu>
2351
2352 * emacsclient.c: Include syswait.h instead of sys/types.h.
2353
2354 2008-12-11 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
2355
2356 * emacsclient.c (WCONTINUED): New compatibility define
2357 for older systems.
2358
2359 2008-12-10 Dan Nicolaescu <dann@ics.uci.edu>
2360
2361 * emacsclient.c (main): Fix previous change.
2362
2363 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2364
2365 * emacsclient.c (main): Fix mindless breakage where emacsclient
2366 does not work *at all* on Windows, even if it *can* connect.
2367
2368 2008-12-10 Dan Nicolaescu <dann@ics.uci.edu>
2369
2370 * emacsclient.c (EMACS_DAEMON): Remove definition.
2371 (decode_options): Do not allow an empty alternate_editor on
2372 WINDOWSNT.
2373 (print_help_and_exit): Replace EMACS_DAEMON with WINDOWSNT.
2374 (start_daemon_and_retry_set_socket): Likewise.
2375 (main): Fail in case of not being able to connect.
2376
2377 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
2378
2379 * emacsclient.c [!WINDOWSNT] (EMACS_DAEMON): New define.
2380 Changes when EMACS_DAEMON is not defined:
2381 (print_help_and_exit): Don't add daemon information to help.
2382 (start_daemon_and_retry_set_socket): Make a no-op.
2383 (main): Don't set `start_daemon_if_needed' (which is initialized to 0).
2384
2385 2008-12-10 Dan Nicolaescu <dann@ics.uci.edu>
2386
2387 * emacsclient.c (print_help_and_exit): Describe what an empty
2388 string argument does for --alternate-editor.
2389 (set_socket): Make it possible to not exit in case of an error.
2390 (start_daemon_and_retry_set_socket): New function.
2391 (main): Use it. Restore the NULL value for socket_name and
2392 server_file after the set_socket call.
2393
2394 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
2395
2396 * emacsclient.c: Include <arpa/inet.h>.
2397
2398 2008-12-01 Dan Nicolaescu <dann@ics.uci.edu>
2399
2400 * make-docfile.c (scan_lisp_file): Use xmalloc instead of malloc.
2401
2402 2008-11-22 Derek Peschel <dpeschel@eskimo.com> (tiny change)
2403
2404 * etags.c (add_regex): Pass correct length to re_compile_pattern.
2405
2406 2008-11-02 Chong Yidong <cyd@stupidchicken.com>
2407
2408 * emacsclient.c (window_system): Delete redundant variable.
2409 (decode_options): Don't use it.
2410 (find_tty): New function.
2411 (main): Use find_tty, and don't use window_system.
2412
2413 2008-11-01 Eli Zaretskii <eliz@gnu.org>
2414
2415 * emacsclient.c (main) [WINDOWSNT]: Don't ifdef away the call to
2416 `ttyname'.
2417 (w32_getenv): Treat $TERM specially: if not found in the
2418 environment and in the Registry, return "w32console".
2419 (ttyname) [WINDOWSNT]: New function.
2420
2421 2008-10-31 Andreas Schwab <schwab@suse.de>
2422
2423 * emacsclient.c (main): Don't force sending tty when in eval mode.
2424
2425 2008-10-30 Chong Yidong <cyd@stupidchicken.com>
2426
2427 * emacsclient.c (main): If using the current frame, send tty
2428 information to Emacs in case daemon mode needs to occupy this tty.
2429
2430 2008-10-29 Juanma Barranquero <lekktu@gmail.com>
2431
2432 * emacsclient.c (EXTRA_SPACE): New macro.
2433 (get_server_config, set_local_socket): Use it.
2434
2435 * makefile.w32-in ($(BLD)/sorted-doc.$(O)): Remove spurious backslash.
2436 Reported by Guillaume Conjat <gconjat.ext@orange-ftgroup.com>.
2437
2438 2008-10-29 Ulrich Mueller <ulm@gentoo.org>
2439
2440 * emacsclient.c (set_local_socket): Use TMPDIR (default /tmp)
2441 instead of hardcoded /tmp.
2442
2443 2008-10-13 Dan Nicolaescu <dann@ics.uci.edu>
2444
2445 * emacsclient.c (longopts, print_help_and_exit): Add -nw.
2446 (decode_options): Use getopt_long_only.
2447
2448 2008-09-30 Eli Zaretskii <eliz@gnu.org>
2449
2450 * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove ccl.elc and
2451 codepage.elc.
2452
2453 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2454
2455 * emacsclient.c (main): Use stdout rather than stdin to obtain the
2456 terminal (bug#427).
2457
2458 2008-08-25 Francesco Potortì <pot@gnu.org>
2459
2460 * etags.c (main): Do not use static space for the tagfile string.
2461
2462 2008-08-17 Francesco Potortì <pot@gnu.org>
2463
2464 * etags.c (main): Use canonicalize_filename on tags file name.
2465 (relative_filename): Revert 3.85: do not collapse slashes here.
2466 (absolute_dirname): Remove useless call to canonicalize_filename.
2467 (canonicalize_filename): Collapse multiple slashes here.
2468
2469 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2470
2471 * Makefile.in (INSTALLABLES): Add LIB_SRC_EXTRA_INSTALLABLES.
2472 Do not special case for NS_IMPL_COCOA.
2473
2474 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2475
2476 * Makefile.in (CFLAGS): Drop -universal under NS_IMPL_COCOA.
2477 (.m.o): Dispense with GNUstep-specific flags.
2478
2479 2008-08-05 Ulrich Mueller <ulm@gentoo.org>
2480
2481 * pop.c (socket_connection): Add conditionals for
2482 HAVE_KRB5_ERROR_TEXT and HAVE_KRB5_ERROR_E_TEXT to support
2483 compilation with MIT Kerberos and Heimdal, respectively.
2484
2485 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
2486
2487 * etags.c:
2488 * emacsclient.c: Remove VMS support.
2489
2490 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2491
2492 Remove support for Mac Carbon.
2493 * makefile.w32-in:
2494 * emacsclient.c: Remove code for Carbon.
2495
2496 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
2497
2498 * Makefile.in (mac-fix-env): Remove #ifdef around rule.
2499
2500 2008-07-17 Andreas Schwab <schwab@suse.de>
2501
2502 * Makefile.in (INSTALL_SCRIPT): Remove duplicate definition.
2503 (LIB_STANDARD_LIBSRC): Don't define.
2504 (LOADLIBES): Remove LIB_STANDARD_LIBSRC.
2505
2506 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
2507
2508 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
2509 NS_IMPL_COCOA.
2510
2511 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
2512
2513 * ntlib.h (fcloseall, fgetchar, flushall, fputchar, putw):
2514 Remove, unused.
2515
2516 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2517
2518 * .cvsignore: Add mac-fix-env.
2519 * mac-fix-env.m: New file, automatically update
2520 ~/.MacOSX/environment.plist on OS X systems to expose environment
2521 variables inside Emacs started from icon.
2522 * Makefile.in: Add -universal to CFLAGS on OS X, add mac-fix-env to
2523 programs to build.
2524 * make-docfile.c: Add .m to list of file extensions.
2525
2526 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2527
2528 * movemail.c (main): Use int instead of WAITTYPE.
2529
2530 2008-07-05 Juanma Barranquero <lekktu@gmail.com>
2531
2532 * makefile.w32-in (OTHER_PLATFORM_SUPPORT):
2533 Remove vmsproc.el and vms-patch.el.
2534
2535 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
2536
2537 * makefile.w32-in (obj): Remove w32bdf.o.
2538
2539 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
2540
2541 * fakemail.c: Remove references to obsolete variables.
2542
2543 2008-06-02 Jim Meyering <meyering@redhat.com>
2544
2545 * ebrowse.c (xfree): Remove definition; s/xfree/free/.
2546
2547 Remove useless if-before-free tests.
2548 * ebrowse.c (xfree): Likewise.
2549 * etags.c (process_file_name, free_tree, free_fdesc): Likewise.
2550 (popclass_above, Prolog_functions, Erlang_functions): Likewise.
2551 * pop.c (pop_quit): Likewise.
2552
2553 2008-05-30 Juanma Barranquero <lekktu@gmail.com>
2554
2555 * makefile.w32-in (lisp2): Add minibuffer.elc.
2556
2557 2008-05-29 Tom Tromey <tromey@redhat.com>
2558
2559 * etags.c (relative_filename): Treat "///" like "/" in filenames.
2560
2561 2008-05-09 Eli Zaretskii <eliz@gnu.org>
2562
2563 * ntlib.c: Include sys/types.h, sys/stat.h, and errno.h.
2564 (IS_DIRECTORY_SEP): New macro.
2565 (convert_time, is_exec, stat): New functions.
2566
2567 2008-05-08 Eli Zaretskii <eliz@gnu.org>
2568
2569 * makefile.w32-in (lisp2): Rename epa-file-hook.elc to epa-hook.elc.
2570
2571 2008-05-03 Eli Zaretskii <eliz@gnu.org>
2572
2573 * makefile.w32-in (lisp2): Add epa-file-hook.elc, to track the
2574 corresponding change in src/Makefile.in.
2575
2576 2008-04-24 Adam Gołębiowski <adamg@pld-linux.org> (tiny change)
2577
2578 * Makefile.in (etags${EXEEXT}, ctags${EXEEXT}): Fix quote typo.
2579
2580 2008-04-10 Jason Rumney <jasonr@gnu.org>
2581
2582 * makefile.w32-in (CLIENTRES): New variable and target.
2583 (TRES): Remove.
2584 ($(BLD)/emacsclientw.exe): Use $(CLIENTRES) instead of $(TRES).
2585
2586 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
2587
2588 * vcdiff: Use "sccs get" rather than "get"; leave PATH alone.
2589
2590 2008-04-18 Steve Grubb <sgrubb@redhat.com> (tiny change)
2591
2592 * vcdiff: Use mktemp (CVE-2008-1694).
2593
2594 2008-04-09 Jason Rumney <jasonr@gnu.org>
2595
2596 * makefile.w32-in (distclean, maintainer-clean): New targets.
2597
2598 2008-03-13 Glenn Morris <rgm@gnu.org>
2599
2600 * makefile.w32-in (VERSION): Set to 23.0.60.
2601
2602 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
2603
2604 * .cvsignore: Add oo.
2605
2606 2008-02-27 Yuri Shtil <yuris@juniper.net> (tiny change)
2607
2608 * etags.c (Perl_functions): Fix call to skip_spaces.
2609
2610 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2611
2612 * Makefile.in (NO_SHORTNAMES):
2613 * emacsclient.c (NO_SHORTNAMES):
2614 * fakemail.c (NO_SHORTNAMES):
2615 * make-docfile.c (NO_SHORTNAMES):
2616 * movemail.c (NO_SHORTNAMES):
2617 * pop.c (NO_SHORTNAMES): Remove references to obsolete variable.
2618
2619 2008-02-23 Jason Rumney <jasonr@gnu.org>
2620
2621 * makefile.w32-in (MOUSE_SUPPORT): Remove duplicate tooltip.elc.
2622 (MSDOS_SUPPORT, VMS_SUPPORT): Remove.
2623 (OTHER_PLATFORM_SUPPORT): Replace above. Add X specific files too.
2624 (lisp2): Add new languages.
2625 ($(DOC)): Use OTHER_PLATFORM_SUPPORT.
2626
2627 2008-02-22 Juanma Barranquero <lekktu@gmail.com>
2628
2629 * makefile.w32-in (lisp2): Remove devanagari.el, kannada.el,
2630 malayalam.el, and tamil.el. Add sinhala.el.
2631
2632 2008-02-20 Juanma Barranquero <lekktu@gmail.com>
2633
2634 * emacsclient.c (main) [WINDOWSNT]: Understand DRIVE:NAME,
2635 where NAME is relative to DRIVE'S current directory.
2636
2637 2008-02-15 Juanma Barranquero <lekktu@gmail.com>
2638
2639 * emacsclient.c (print_help_and_exit): Show -d option on Windows.
2640
2641 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
2642
2643 * fakemail.c: Undo previous change.
2644
2645 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
2646
2647 * fakemail.c (MAIL_PROGRAM_NAME): Remove unused conditional.
2648 (main): Replace MAIL_PROGRAM_NAME with its value.
2649
2650 * Makefile.in (REGEXP_IN_LIBC): Remove reference to obsolete variable.
2651
2652 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
2653
2654 * emacsclient.c (decode_options): Pass --display implicitly if -c
2655 is specified. Only set tty if -t or -c is specified.
2656
2657 2008-02-04 Jason Rumney <jasonr@gnu.org>
2658
2659 * makefile.w32-in (lisp1): Use (), not {}.
2660
2661 2008-02-04 Tom Tromey <tromey@redhat.com>
2662
2663 * etags.c: Add "GTY" as synonym for __attribute__.
2664 Update gperf output.
2665
2666 2008-02-01 Jason Rumney <jasonr@gnu.org>
2667
2668 * makefile.w32-in (obj): Sync with src/Makefile.in.
2669 (TOOLTIP_SUPPORT, WINDOW_SUPPORT): New definitions.
2670 (WINNT_SUPPORT): Add term/w32-win.elc.
2671 (lisp1, lisp2): Sync with lisp in src/Makefile.in.
2672
2673 2008-02-01 Jason Rumney <jasonr@gnu.org>
2674
2675 * makefile.w32-in (obj): Add font.o and w32font.o.
2676
2677 2008-02-01 Zhang Wei <id.brep@gmail.com> (tiny change)
2678
2679 * makefile.w32-in (lisp1): Delete ucs-tables.elc,
2680 utf-8.elc, and latin-*.el.
2681
2682 2008-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2683
2684 * emacsclient.c (decode_options): Default to NULL display, as Emacs-22.
2685 Allow the -d option under w32 again, for those rare cases where it
2686 actually does make sense.
2687
2688 2008-01-25 Juanma Barranquero <lekktu@gmail.com>
2689
2690 * emacsclient.c (set_tcp_socket): Don't send "\n" after
2691 the authentication string; there's no need to haste.
2692
2693 2008-01-22 Chong Yidong <cyd@stupidchicken.com>
2694
2695 * pop.c (pop_stat, pop_last): Fix last fix.
2696
2697 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
2698
2699 * movemail.c: Remove references to XENIX.
2700
2701 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
2702
2703 * movemail.c:
2704 * make-docfile.c: Remove reference to symbols defined by systems
2705 not supported anymore: MAC_OS8, XENIX and STRIDE.
2706
2707 2008-01-12 Eli Zaretskii <eliz@gnu.org>
2708
2709 * emacsclient.c (decode_options) [WINDOWSNT]: Don't use the value
2710 of DISPLAY in the environment. Don't support -d.
2711 (print_help_and_exit) [WINDOWSNT]: Don't show the --display option.
2712 (longopts) [WINDOWSNT]: Remove --display.
2713
2714 2008-01-10 Chong Yidong <cyd@stupidchicken.com>
2715
2716 * pop.c (pop_stat, pop_last): Check validity of string-to-integer
2717 conversion. Mistakes spotted by Nico Golde.
2718
2719 2008-01-09 Glenn Morris <rgm@gnu.org>
2720
2721 * emacsclient.c: Add missing final newlines to message calls.
2722
2723 2008-01-09 Daniel Hackney <dan@haxney.org> (tiny change)
2724
2725 * emacsclient.c (set_socket): Add final newline to socket error message.
2726
2727 2008-01-04 Glenn Morris <rgm@gnu.org>
2728
2729 * ebrowse.c (version) <emacs_copyright>: New variable.
2730 Just use current year for copyright.
2731
2732 * etags.c (print_version):
2733 * rcs2log (Copyright): Update to 2008.
2734
2735 2007-11-28 Jason Rumney <jasonr@gnu.org>
2736
2737 * makefile.w32-in (VMS_SUPPORT): No longer byte-compiled.
2738
2739 2007-11-27 Jan Djärv <jan.h.d@swipnet.se>
2740
2741 * pop.c (socket_connection): Remove AI_ADDRCONFIG.
2742
2743 2007-11-19 Jan Djärv <jan.h.d@swipnet.se>
2744
2745 * pop.c (socket_connection): Move realhost out of #ifdefs.
2746 Set realhost both for HAVE_GETADDRINFO and !HAVE_GETADDRINFO.
2747
2748 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
2749
2750 * pop.c (socket_connection): Use getaddrinfo if available.
2751
2752 2007-11-22 Francesco Potortì <pot@gnu.org>
2753
2754 * etags.c (default_C_help) [CTAGS]: Differentiate the help string,
2755 as the defaults in ctags are different from etags.
2756
2757 2007-11-15 Francesco Potortì <pot@gnu.org>
2758
2759 * etags.c: Make prototypes for extern definitions, and add all
2760 that are needed to quench warnings on 64-bit.
2761 (main): Use the same defaults for ctags as for etags: find
2762 typedefs, structure tags, macro constants, enum constants, struct
2763 members and global variables.
2764 (make_C_tag) [DEBUG]: Add debugging printout.
2765 (C_entries): In case '}' decrement bracelev before testing it.
2766
2767 2007-11-15 Masatake YAMATO <jet@gyve.org>
2768
2769 * etags.c (C_entries): In case '}', set fvdef to fvnone
2770 unconditioned to (!ignoreindent && lp == newlb.buffer + 1).
2771
2772 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
2773
2774 * makefile.w32-in (obj): Remove sunfns.o.
2775
2776 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
2777
2778 * makefile.w32-in (obj): Remove abbrev.o.
2779
2780 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
2781
2782 * emacsclient.c: Add a wrapper for getenv so it also checks the
2783 registry on Windows. Suggestion and algorithm by Eli Zaretskii.
2784 Code partially based on w32_get_resource and init_environment (w32.c).
2785 (egetenv): New wrapper for getenv.
2786 (get_current_dir_name, decode_options, get_server_config)
2787 (set_local_socket, set_socket, main): Use egetenv, not getenv.
2788 (w32_get_resource, w32_getenv) [WINDOWSNT]: New functions.
2789
2790 2007-10-25 Jason Rumney <jasonr@gnu.org>
2791
2792 * emacsclient.c (sock_err_message): New function.
2793 (set_tcp_socket): Use it.
2794
2795 2007-10-09 Juanma Barranquero <lekktu@gmail.com>
2796
2797 * emacsclient.c (print_help_and_exit): Fix space to improve
2798 alignment in output messages.
2799
2800 2007-09-27 Jason Rumney <jasonr@gnu.org>
2801
2802 * makefile.w32-in (emacsclient, emacsclientw): Link to COMCTL32.
2803
2804 * emacsclient.c (w32_window_app): Init common controls when windowed.
2805
2806 2007-09-21 Glenn Morris <rgm@gnu.org>
2807
2808 * emacstool.c: Remove file.
2809 * Makefile.in (emacstool, nemacstool, xvetool, xveterm):
2810 Delete targets built from emacstool.
2811
2812 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
2813
2814 * emacsclient.c (decode_options): -t implies -c.
2815
2816 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
2817
2818 * emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP)
2819 (IS_ANY_SEP): Only define if !defined(HAVE_GET_CURRENT_DIR_NAME).
2820 (main_argc): Remove.
2821 (strprefix): Use strncmp.
2822
2823 2007-09-20 Jason Rumney <jasonr@gnu.org>
2824
2825 * emacsclient.c (main) [SIGSTOP]: Change conditional from WINDOWSNT.
2826
2827 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
2828
2829 * emacsclient.c (current_frame): Change the default.
2830 (longopts): Replace --current-frame by --create-frame.
2831 (decode_options): Reverse the meaning of -c.
2832 (print_help_and_exit): Update help text accordingly.
2833 (main): Remove the -version and -good-version messages.
2834
2835 2007-09-12 Glenn Morris <rgm@gnu.org>
2836
2837 * Makefile.in (SOURCES, unlock, relock): Delete.
2838
2839 2007-08-29 Glenn Morris <rgm@gnu.org>
2840
2841 * makefile.w32-in (VERSION): Increase to 23.0.50.
2842
2843 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
2844
2845 * emacsclient.c (w32_execvp): Move definition before use.
2846 (decode_options): Don't use a tty on mac carbon or windows.
2847
2848 2007-08-29 Jason Rumney <jasonr@gnu.org>
2849
2850 * emacsclient.c (SEND_STRING, SEND_QUOTED): Remove obfuscation macros.
2851 (quote_argument, set_tcp_socket, handle_sigcont, handle_sigtstp)
2852 (main): Expand removed macros inline.
2853 (main) [WINDOWSNT]: Don't call ttyname. Don't recognize -suspend
2854 option.
2855 (main) [NO_SOCKETS_IN_FILE_SYSTEM]: Don't call init_signals.
2856
2857 2007-08-29 Károly Lőrentey <lorentey@elte.hu>
2858
2859 * emacsclient.c (signal.h): New include.
2860 (sys/stat.h, errno.h): Always include, even on WINDOWSNT.
2861 (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP, IS_ANY_SEP):
2862 Copy definitions here from src/lisp.h.
2863 (main_argc, main_argv, current_frame, window_system, tty): New vars.
2864 (longopts): Add tty, current-frame.
2865 (xmalloc, xstrdup): New functions.
2866 (get_current_dir_name): New function, copied from src/sysdep.c.
2867 (decode_options): Set display from environment. Add tty and
2868 current_frame options. Make --no-wait imply --current-frame,
2869 except when it is the only option given. Make sure no frame is
2870 opened when --current-frame is set.
2871 (print_help_and_exit): Document tty and current-frame options.
2872 (fail): Change arguments to void.
2873 (main): When sockets are not defined, set main_argc, main_argv,
2874 and call fail() with no arguments.
2875 (emacs_socket): New variable (moved out from main `s').
2876 (quote_file_name): Rename to quote_argument.
2877 (quote_argument): New name for old quote_file_name.
2878 (unquote_argument, strprefix, pass_signal_to_emacs)
2879 (handle_sigcont, handle_sigtstp, init_signals): New functions.
2880 (set_local_socket): Initialize saved_errno to 0. If socket-name
2881 is too long, call `fail' rather than `exit'.
2882 (main): Doc update. Set main_argc, main_argv. New var `str'.
2883 Don't need a filename or argument if tty or window_system set.
2884 Call fail with no arguments. Use get_current_dir_name to send
2885 over the current directory. Send version number to Emacs for
2886 verification. If tty is set, check TERM, and pass name and type
2887 to Emacs. Pass window_system to Emacs. Move sending of eval to
2888 optind loop. Send -position, -file to Emacs. Call fsync after
2889 fflush. Check for a client/server version match.
2890 Handle -emacs-pid, -window-system-unsupported, -print, -error, and
2891 -suspend commands. Don't exit prematurely on --no-wait, let Emacs
2892 close the connection for us. When creating a new frame, send
2893 environment and pwd to Emacs. Send current-frame to Emacs.
2894
2895 2007-08-25 Eli Zaretskii <eliz@gnu.org>
2896
2897 * Makefile.in (rcs2log, rcs-checkin, grep-changelog, vcdiff):
2898 Prepend "-" to the command, in case srcdir=. and file is copied
2899 into itself.
2900
2901 2007-07-25 Glenn Morris <rgm@gnu.org>
2902
2903 * Relicense all FSF files to GPLv3 or later.
2904
2905 * COPYING: Switch to GPLv3.
2906
2907 2007-07-17 Francesco Potortì <pot@gnu.org>
2908
2909 * etags.c (C_entries): Reset the fvdef machine when out of function.
2910 (PRINT_UNDOCUMENTED_OPTIONS_HELP): #define as FALSE if undefined.
2911 (print_help): Use it in if() rather than #if.
2912 (print_help): Conditionally print help about --no-line-directive.
2913
2914 2007-07-16 Eli Zaretskii <eliz@gnu.org>
2915
2916 * makefile.w32-in (clean): Don't delete *~.
2917
2918 2007-06-07 Glenn Morris <rgm@gnu.org>
2919
2920 * etags.c (print_version): Add `emacs_copyright' string, for
2921 easier automatic updating.
2922
2923 2007-05-18 Francesco Potortì <pot@gnu.org>
2924
2925 * etags.c: Extern definitions of some more pointer functions for
2926 standalone compilation, especially important for 64bit platforms.
2927 (main, print_help): --members is now the default for etags.
2928 (C_entries): Parse start of C comment as a space == end of token.
2929 This is not necessary for C++ comment, already parsed as newline.
2930
2931 2007-04-26 Glenn Morris <rgm@gnu.org>
2932
2933 * makefile.w32-in (VERSION): Increase to 22.1.50.
2934
2935 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
2936
2937 * Version 22.1 released.
2938
2939 2007-02-26 Francesco Potortì <pot@gnu.org>
2940
2941 * Makefile.in (etags, ctags): Define EMACS_NAME as "GNU Emacs".
2942
2943 2007-02-20 Ulrich Mueller <ulm@kph.uni-mainz.de> (tiny change)
2944
2945 * Makefile.in (EMACS, EMACSOPT): New variables.
2946 (blessmail): Use `--no-site-file' when compiling.
2947
2948 2007-02-05 Francesco Potortì <pot@gnu.org>
2949
2950 * etags.c (default_C_help, Cplusplus_help, PHP_help, print_help)
2951 (main): Now --members is the default for etags, not for ctags yet.
2952
2953 2007-02-04 Per Cederqvist <ceder@ingate.com> (tiny change)
2954
2955 * etags.c (gperf, in_word_set): Change attribute for Java to
2956 (C_JAVA & ~C_PLPL). The previous change introduced 2004-09-13 was
2957 broken, as (C_JAVA & !C_PLPL) always evaluates to 0. This caused
2958 import, package, extends, implements and interface to be treated
2959 specially for all kinds of C-style files, not just Java files.
2960
2961 2007-01-02 Francesco Potortì <pot@gnu.org>
2962
2963 * etags.c (longopts): New undocumented option --no-duplicates.
2964 (no_duplicates): Static variables for the above option.
2965 (print_help): Do not print help for --no-warn, now undocumented.
2966 (add_node): Allow duplicate tags in ctags mode unless --no-duplicates.
2967 (main): Pass the -u option to sort in ctags mode.
2968
2969 2006-12-28 Francesco Potortì <pot@gnu.org>
2970
2971 * etags.c (readline): When creating a relative file name from a
2972 #line directive, leave the file name alone. The previous
2973 behavior was to make it relative to the tags file directory,
2974 under the hypothesis that the #line directive file name was
2975 relative to the directory of the tagged file. That hypothesis is
2976 wrong with Cpp and Lex.
2977 (Makefile_targets): Do not include spaces in tag names.
2978
2979 2006-12-22 Eli Zaretskii <eliz@gnu.org>
2980
2981 * makefile.w32-in (make-docfile, ctags, etags, ebrowse, hexl)
2982 (movemail, fakemail, sorted-doc, digest-doc, emacsclient)
2983 (test-distrib, $(DOC), all): Depend on stamp_BLD instead of $(BLD).
2984 ($(BLD)/make-docfile.$(O) $(BLD)/hexl.$(O) $(BLD)/fakemail.$(O))
2985 ($(BLD)/sorted-doc.$(O) $(BLD)/digest-doc.$(O))
2986 ($(BLD)/test-distrib.$(O) $(GETOPTOBJS) $(MOVEMAILOBJS))
2987 ($(BLD)/emacsclient.$(O) $(BLD)/etags.$(O) $(BLD)/regex.$(O))
2988 ($(BLD)/ebrowse.$(O) $(BLD)/ctags.$(O)): Depend on stamp_BLD.
2989 (clean): Delete stamp_BLD.
2990
2991 2006-12-20 Francesco Potortì <pot@gnu.org>
2992
2993 * etags.c (C_entries): DEFUN names were longer by one: corrected.
2994
2995 2006-12-18 Juanma Barranquero <lekktu@gmail.com>
2996
2997 * emacsclient.c [WINDOWSNT] (set_fg, get_wc): New variables.
2998 [WINDOWSNT] (w32_find_emacs_process, w32_give_focus): New functions.
2999 (main) [WINDOWSNT]: Remove code to release the focus; call
3000 w32_give_focus instead.
3001
3002 2006-12-15 Juanma Barranquero <lekktu@gmail.com>
3003
3004 * emacsclient.c (w32_execvp): New function; wrapper for `execvp'.
3005 (execvp) [WINDOWSNT]: Redefine to `w32_execvp'.
3006 (fail): Remove Windows-specific fix (subsumed into w32_execvp).
3007 Suggestions and comment by Eli Zaretskii.
3008
3009 2006-12-06 Christoph Conrad <christoph.conrad@gmx.de>
3010
3011 * makefile.w32-in ($(BLD)/emacsclient.exe, $(BLD)/emacsclientw.exe):
3012 Use $(USER32) for compatibility with Visual Studio .NET 2003.
3013
3014 2006-11-30 Juanma Barranquero <lekktu@gmail.com>
3015
3016 * emacsclient.c (emacs_pid): New variable.
3017 (message): Remove leftover code.
3018 (get_server_config): Set emacs_pid. Don't allow Emacs to grab the
3019 focus yet; emacsclient can still display an informational message
3020 before sending requests to Emacs.
3021 (main): Allow Emacs to grab the focus. Simplify message() call.
3022
3023 2006-11-30 Michael Mauger <mmaug@yahoo.com>
3024
3025 * emacsclient.c (message): Make sure the message is properly
3026 written even if it contains printf escapes, and flush the result.
3027 (set_tcp_socket): Make the message for non-local connections
3028 informational rather than an error.
3029
3030 2006-11-28 Kevin Ryde <user42@zip.com.au>
3031
3032 * etags.c (readline): Check for double quote after #line.
3033
3034 2006-11-28 Jan Djärv <jan.h.d@swipnet.se>
3035
3036 * etags.c (readline): sscanf could in principle return 2.
3037
3038 2006-11-28 Francesco Potortì <pot@gnu.org>
3039
3040 * etags.c (readline): lno is unsigned.
3041 (TeX_commands): Use p++ (rather than *p++) to increment p.
3042 (Lua_functions): Explicitly discard LOOKING_AT's return value.
3043
3044 2006-11-27 Juanma Barranquero <lekktu@gmail.com>
3045
3046 * makefile.w32-in (TRES): New macro (copied from nt/makefile.w32-in).
3047 ($(TRES)): New rule (copied from nt/makefile.w32-in).
3048 ($(BLD)/emacsclientw.exe): Add dependency.
3049
3050 2006-11-27 Eli Zaretskii <eliz@gnu.org>
3051
3052 * makefile.w32-in ($(BLD)/emacsclient.$(O)): Depend on makefile.w32-in.
3053
3054 2006-11-25 Juanma Barranquero <lekktu@gmail.com>
3055
3056 * makefile.w32-in (VERSION): New macro.
3057 (ECLIENT_CFLAGS): Add -DVERSION.
3058
3059 2006-11-25 Jason Rumney <jasonr@gnu.org>
3060
3061 * emacsclient.c (file_name_absolute_p) [WINDOWSNT]: Use isalpha().
3062
3063 2006-11-24 Michael Mauger <mmaug@yahoo.com>
3064
3065 * emacsclient.c (file_name_absolute_p) [WINDOWSNT]: Support absolute
3066 file names with forward slashes.
3067
3068 2006-11-23 Juanma Barranquero <lekktu@gmail.com>
3069
3070 * emacsclient.c (print_help_and_exit): Tweak message contents and
3071 tabs/spaces to improve alignment in message boxes.
3072
3073 2006-11-22 Lennart Borgman <lennart.borgman.073@student.lu.se>
3074
3075 * emacsclient.c: Include <stdarg.h>.
3076 [WINDOWSNT]: Include <windows.h>.
3077 (w32_check_console_app): New function.
3078 (message): New function.
3079 (decode_options, print_help_and_exit, fail, main)
3080 (initialize_sockets, get_server_config, set_tcp_socket)
3081 (set_local_socket, set_socket): Use message().
3082
3083 2006-11-13 Jason Rumney <jasonr@gnu.org>
3084
3085 * emacsclient.c [WINDOWSNT]: Let config.h define HAVE_SOCKETS and
3086 HAVE_INET_SOCKETS.
3087
3088 2006-11-13 Juanma Barranquero <lekktu@gmail.com>
3089
3090 * makefile.w32-in (emacsclient): Depend also on emacsclientw.exe.
3091 ($(BLD)/emacsclientw.exe): New target.
3092 (install): Install emacsclientw.exe.
3093 ($(BLD)/cvtmail.$(O), $(BLD)/emacstool.$(O)): Remove obsolete targets.
3094 (ECLIENT_CFLAGS): Remove redundant flags.
3095
3096 * emacsclient.c [WINDOWSNT]: Undef _WINSOCKAPI_ and _WINSOCK_H.
3097
3098 2006-11-13 Jason Rumney <jasonr@gnu.org>
3099
3100 * makefile.w32-in ($(BLD)/emacsclient.$(O)): Use CFLAGS.
3101
3102 2006-11-10 David Reitter <david.reitter@gmail.com>
3103
3104 * emacsclient.c [!WINDOWSNT]: Include <sys/types.h>.
3105
3106 2006-11-08 Juanma Barranquero <lekktu@gmail.com>
3107
3108 * emacsclient.c (get_server_config) [WINDOWSNT]: Declare set_fg as
3109 FARPROC to avoid a compiler warning.
3110
3111 2006-11-07 Juanma Barranquero <lekktu@gmail.com>
3112
3113 * emacsclient.c (get_server_config) [WINDOWSNT]: Look for the server
3114 file on APPDATA if it doesn't exist on HOME, even if HOME is defined.
3115
3116 * emacsclient.c (get_server_config): Extract also the Emacs pid
3117 from the server file. On Windows, try to force the Emacs frame to
3118 the foreground.
3119
3120 2006-11-06 Juanma Barranquero <lekktu@gmail.com>
3121
3122 * emacsclient.c (longopts) [!NO_SOCKETS_IN_FILE_SYSTEM]: Don't show
3123 option --socket-name.
3124 (decode_options): Don't get EMACS_SERVER_FILE here, it could override
3125 command line options.
3126 (decode_options) [!NO_SOCKETS_IN_FILE_SYSTEM]: Don't parse "-s" option.
3127 (fail): Don't check for missing arguments, it is now done in set_socket.
3128 (file_name_absolute_p): New function (loosely based on the one in
3129 fileio.c).
3130 (initialize_sockets): Don't check for duplicate loading of Winsock.
3131 (get_server_config): Only try relative paths in the default
3132 directory locations.
3133 (set_tcp_socket): Don't call INITIALIZE(). Warn when connecting to
3134 a remote server.
3135 (set_socket): Call INITIALIZE(). Search explicit command-line
3136 arguments, then environment variable EMACS_SERVER_FILE, then implicit
3137 socket paths, before trying the alternate editor.
3138 (main): Use file_name_absolute_p.
3139
3140 2006-11-04 Eli Zaretskii <eliz@gnu.org>
3141
3142 * makefile.w32-in (../src/$(BLD)/temacs.exe): Create as temporary
3143 file if it doesn't already exist.
3144
3145 2006-11-03 Juanma Barranquero <lekktu@gmail.com>
3146
3147 * emacsclient.c (initialize_sockets): Don't initialize Winsock
3148 more than once.
3149
3150 2006-11-03 Mark Davies <mark@mcs.vuw.ac.nz>
3151
3152 * Makefile.in (INSTALL_SCRIPT): New macro.
3153 ($(DESTDIR)${archlibdir}, install): Use it, instead of INSTALL_PROGRAM.
3154
3155 2006-11-02 Juanma Barranquero <lekktu@gmail.com>
3156
3157 * grep-changelog: When called with no arguments (not even a
3158 filter), show help instead of blindingly dumping every single
3159 ChangeLog available. Doc fix. Update version.
3160
3161 2006-11-02 Tim Van Holder <tim.vanholder@gmail.com>
3162
3163 * emacsclient.c [WINDOWSNT]: Define HAVE_INET_SOCKETS.
3164 [!WINDOWSNT]: Include <netinet/in.h> if available.
3165 [HAVE_SOCKETS]: Also require HAVE_INET_SOCKETS.
3166 (IOCTL, IOCTL_BOOL_ARG): Remove.
3167 (set_tcp_socket): Don't set the socket in blocking mode.
3168 Remove c_arg.
3169
3170 2006-11-01 Juanma Barranquero <lekktu@gmail.com>
3171
3172 * emacsclient.c (fail) [WINDOWSNT]: Force the first argv passed to
3173 execvp to point to alternate_editor (otherwise .BAT scripts can't run).
3174
3175 2006-10-31 Óscar Fuentes <ofv@wanadoo.es> (tiny change)
3176
3177 * emacsclient.c [WINDOWSNT]: Include <malloc.h> and <stdlib.h>.
3178 (close_winsock): Declare as __cdecl.
3179
3180 2006-10-31 Jan Djärv <jan.h.d@swipnet.se>
3181
3182 * emacsclient.c [!WINDOWSNT]: Include <fcntl.h> if available.
3183 (set_tcp_socket): Prefer O_NONBLOCK, then O_NDELAY, then FIONBIO
3184 to set the socket in non-blocking mode.
3185
3186 2006-10-31 Tim Van Holder <tim.vanholder@gmail.com>
3187
3188 * emacsclient.c [!WINDOWSNT]: Include <netinet/in.h> and <sys/ioctl.h>.
3189 (INVALID_SOCKET): Define.
3190 (initialize_sockets): Put #endif at the right place.
3191 (set_local_socket): Use progname, not argv[0].
3192
3193 2006-10-31 Juanma Barranquero <lekktu@gmail.com>
3194
3195 * makefile.w32-in (ALL): Add emacsclient.
3196 (ECLIENT_CFLAGS, ECLIENTOBJS): New macros.
3197 (emacsclient, $(BLD)/emacsclient.exe): New targets.
3198 (install): Install emacsclient.
3199
3200 * emacsclient.c: Add support for TCP sockets.
3201 (SEND_STRING, SEND_QUOTED, HSOCKET, CLOSE_SOCKET, IOCTL)
3202 (INITIALIZE): New macros.
3203 (IOCTL_BOOL_ARG): New typedef.
3204 (server_file): New global variable.
3205 (longopts): New option --server-file.
3206 (decode_options): Process new option --server-file and environment
3207 variable EMACS_SERVER_FILE.
3208 (print_help_and_exit): Document new option.
3209 (fail): If no connection available and no alternate editor,
3210 suggest using options to make them explicit.
3211 (AUTH_KEY_LENGTH, SEND_BUFFER_SIZE): New constants.
3212 (send_buffer, sblen): New variables.
3213 (send_to_emacs): New function to buffer output and send it with `send'.
3214 (quote_file_name): Use SEND_STRING.
3215 (close_winsock, initialize_sockets): New functions to load and
3216 unload Winsock.
3217 (get_server_config, set_tcp_socket): New functions to create and
3218 set up TCP sockets.
3219 (set_local_socket): New function to create and set up Unix
3220 socket (code moved from previous implementation).
3221 (set_socket): New function to choose between TCP and Unix sockets.
3222 (main): Use SEND_STRING and SEND_QUOTED. Most code moved to
3223 set_local_socket. Use set_socket. Get answers from server.el with
3224 recv(), not file stream functions.
3225
3226 2006-10-09 Eli Zaretskii <eliz@gnu.org>
3227
3228 * makefile.w32-in (../src/config.h): Fix error message.
3229
3230 2006-09-30 Eli Zaretskii <eliz@gnu.org>
3231
3232 * .cvsignore: Add blessmail.
3233
3234 2006-09-15 Jay Belanger <belanger@truman.edu>
3235
3236 * COPYING: Replace "Library Public License" by "Lesser Public
3237 License" throughout.
3238
3239 2006-08-09 Jan Djärv <jan.h.d@swipnet.se>
3240
3241 * etags.c (readline): Expect sscanf returns >= 1.
3242 (readline): Change position on %n and \" in sscanf.
3243
3244 2006-08-07 Masatake YAMATO <jet@gyve.org>
3245
3246 * etags.c (readline): Expect sscanf returns 2, not 1.
3247
3248 2006-08-07 Masatake YAMATO <jet@gyve.org>
3249
3250 * etags.c (TEX_mode): Check getc returns EOF.
3251 File ended without newline causes infinite loop.
3252
3253 2006-07-30 Adrian Aichner <adrian@xemacs.org> (tiny change)
3254
3255 * etags.c: It's XEmacs, not Xemacs: change all the occurrences.
3256
3257 2006-07-30 Francesco Potortì <pot@gnu.org>
3258
3259 * etags.c [ETAGS_REGEXPS]: Now is unconditionally defined.
3260 [LONG_OPTIONS]: Changed to NO_LONG_OPTIONS, which is undefined.
3261 (Objc_suffixes): Suggest using --lang=c for full help.
3262 (C_entries): Initialize savetoken to 0 to shut up the compiler.
3263
3264 2006-07-20 Andreas Schwab <schwab@suse.de>
3265
3266 * fakemail.c (fatal): Drop second parameter and treat first
3267 parameter as a plain string. Callers changed.
3268
3269 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
3270
3271 * ebrowse.c (usage, version): Mark as NO_RETURN.
3272
3273 * emacsclient.c (print_help_and_exit): Likewise.
3274
3275 2006-07-10 Francesco Potortì <pot@gnu.org>
3276
3277 * etags.c (absolute_filename): Free unused space (cosmetic change).
3278 (in_word_set): In C, also tag #undef symbols.
3279
3280 2006-06-09 Eli Zaretskii <eliz@gnu.org>
3281
3282 * yow.c: Remove file.
3283
3284 * makefile.w32-in ($(BLD)/yow.$(O)): Remove target.
3285
3286 * Makefile.in (UTILITIES): Remove yow${EXEEXT}.
3287 yow${EXEEXT}: Remove target.
3288
3289 2006-06-04 Masatake YAMATO <jet@gyve.org>
3290
3291 * ebrowse.c (main): Exit with EXIT_FAILURE if BROWSE file
3292 doesn't exist, is not seekable, not is failed in ftall.
3293
3294 2006-06-03 Eli Zaretskii <eliz@gnu.org>
3295
3296 * makefile.w32-in (ALL): Add sorted-doc and digest-doc.
3297 ($(BLD)/sorted-doc.exe, $(BLD)/digest-doc.exe)
3298 ($(BLD)/test-distrib.exe): New targets.
3299 (sorted-doc, digest-doc, test-distrib): New targets.
3300 (install): Install sorted-doc.exe and digest-doc.exe.
3301 ($(BLD)/sorted-doc.$(O)): Update dependencies.
3302
3303 * digest-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
3304 (main) [DOS_NT]: Switch stdin to binary mode, if it is not a
3305 terminal device.
3306
3307 * sorted-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
3308 [WINDOWSNT] <top level>: Don't redeclare malloc.
3309 (main) [DOS_NT]: Switch stdin to binary mode, if it is not a
3310 terminal device.
3311 (main): Initialize bp, to avoid compiler warnings.
3312
3313 * makefile.w32-in: Delete traces of leditcfns.c.
3314
3315 * leditcfns.c: Remove file.
3316
3317 2006-05-23 Francesco Potortì <pot@gnu.org>
3318
3319 * pop.c (pop_open, socket_connection, KPOP_SERVICE):
3320 Add comments explaining why the "kpop" service is never used.
3321
3322 2006-05-13 Eli Zaretskii <eliz@gnu.org>
3323
3324 * makefile.w32-in (lisp1): Add fringe.elc.
3325
3326 2006-05-02 Francesco Potortì <pot@gnu.org>
3327
3328 * etags.c (Perl_functions): Free space allocated for var package.
3329 (Erlang_functions): Possibly free space allocated for var last.
3330 (Prolog_functions): Possibly free space allocated for var last.
3331
3332 2006-04-29 Dan Nicolaescu <dann@ics.uci.edu>
3333
3334 * sorted-doc.c (main): Initialize docs to NULL.
3335
3336 * yow.c (yow): Free buf.
3337
3338 * etags.c: Delete c-indentation-style local variable.
3339
3340 2006-04-29 Richard Stallman <rms@gnu.org>
3341
3342 * movemail.c (main): Check for negative value from `read'.
3343
3344 * fakemail.c (read_header): Give fatal error if input has no header.
3345
3346 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
3347
3348 * b2m.c (main): Don't include <limits.h>.
3349 (TM_YEAR_BASE): New macro.
3350 (TM_YEAR_IN_ASCTIME_RANGE): Don't define if already defined, so
3351 that s/ files can override this. Use the more-conservative range
3352 1000-9999.
3353 (main): Check for asctime returning NULL.
3354 * fakemail.c: Likewise.
3355
3356 2006-03-27 Paul Eggert <eggert@cs.ucla.edu>
3357
3358 * b2m.c: Include <limits.h>.
3359 (TM_YEAR_IN_ASCTIME_RANGE): New macro.
3360 (main): Check for out-of-range time stamps.
3361 * fakemail.c: Likewise.
3362
3363 2006-03-18 Andre Spiegel <spiegel@gnu.org>
3364
3365 * vcdiff: Use "echo" as a default for $echo, otherwise we'll
3366 execute $DIFF twice, and once with the wrong options.
3367
3368 2006-02-23 Claudio Fontana <claudio@gnu.org>
3369
3370 * Makefile.in (install, uninstall): Add DESTDIR variable to
3371 support staged installations.
3372
3373 2005-12-30 Eli Zaretskii <eliz@gnu.org>
3374
3375 * makefile.w32-in (MOUSE_SUPPORT): Add tooltip.elc.
3376 (lisp1): Add rfn-eshadow.elc, international/utf-16.elc, image.elc,
3377 international/fontset.elc, dnd.elc, mwheel.elc, and tool-bar.elc.
3378 Rearrange the list to be similar to $(shortlisp) in
3379 src/Makefile.in.
3380 (lisp2): Add language/kannada.el, emacs-lisp/syntax.elc,
3381 emacs-lisp/timer.elc, jka-cmpr-hook.elc, font-lock.elc,
3382 jit-lock.elc. Rearrange the list to be similar to $(shortlisp) in
3383 src/Makefile.in.
3384
3385 2005-12-22 Richard M. Stallman <rms@gnu.org>
3386
3387 * Makefile.in (update-game-score.o): Delete spurious final `\'.
3388
3389 2005-11-18 Hideki IWAMOTO <h-iwamoto@kit.hi-ho.ne.jp> (tiny change)
3390
3391 * etags.c (main): Cxref mode writes to stdout: do not close tagf,
3392 which was never opened.
3393
3394 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
3395
3396 * etags.c: Undef STDIN if defined. (LynxOS defines it in system
3397 header files.)
3398
3399 2005-09-27 Francesco Potortì <pot@gnu.org>
3400
3401 * etags.c: Preliminary Forth support.
3402 (prolog_pr): Cast strlen to int before comparison.
3403 (LOOKING_AT, LOOKING_AT_NOCASE): Let the preprocessor check that
3404 the second argument is indeed a literal string.
3405 (main): In append mode, sort the tags file after writing it.
3406
3407 2005-09-27 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3408
3409 * etags.c (longopts, print_help, main): The -a (--append) option
3410 can be used in ctags also; for one, the Linux make file uses it.
3411
3412 2005-09-20 Chong Yidong <cyd@stupidchicken.com>
3413
3414 * ebrowse.c (add_sym): Compare namespace names instead of
3415 namespace objects. This prevents the parser from incorrectly
3416 treating classes whose superclass is in another namespace.
3417
3418 2005-09-15 Richard M. Stallman <rms@gnu.org>
3419
3420 * Makefile.in (update-game-score.o): New target.
3421 Compile and link this program separately.
3422 (update-game-score${EXEEXT}): Use GETOPTDEPTS.
3423
3424 2005-09-11 Jason Rumney <jasonr@gnu.org>
3425
3426 * makefile.w32-in (../src/config.h): Don't overwrite. Print a
3427 message instead.
3428 (../src/paths.h): Remove.
3429
3430 2005-07-27 Juanma Barranquero <lekktu@gmail.com>
3431
3432 * .cvsignore: Don't ignore fns-* and fns.el, which are no longer
3433 generated. Ignore also ctags.c and getopt.h.
3434
3435 * makefile.w32-in (clean): Delete getopt.h.
3436 (getopt.h): New rule.
3437
3438 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
3439
3440 Merge gnulib getopt implementation into Emacs.
3441
3442 * Makefile.in (mostlyclean): Remove getopt.h, getopt.h-t.
3443 (GETOPT_H): New macro, from gnulib.
3444 (getopt.h): New rule, from gnulib.
3445 (GETOPTOBJS): Now autoconfigured.
3446 (GETOPTDEPS): getopt.h is now autoconfigured.
3447 (getopt.o, getopt1.o): Depend on $(GETOPT_H), not ${srcdir}/getopt.h.
3448 (getopt.o): Depend on ${srcdir}/gettext.h.
3449 (movemail.o): Depend on $(GETOPT_H).
3450 * getopt.c, getopt1.c: Sync from gnulib.
3451 * getopt_.h, getopt_int.h, gettext.h: New files, from gnulib.
3452 * getopt.h: Removed (now is getopt_.h).
3453
3454 2005-07-13 Ken Raeburn <raeburn@gnu.org>
3455
3456 * pop.c: Don't include des.h (or variants thereof); krb.h will do it.
3457 (sendline): Add the \r\n to the line in a temporary buffer, and write
3458 it all at once.
3459
3460 2005-07-04 Lute Kamstra <lute@gnu.org>
3461
3462 Update FSF's address in GPL notices.
3463
3464 2005-06-13 Eli Zaretskii <eliz@gnu.org>
3465
3466 * makefile.w32-in ($(DOC)): Fix last change.
3467
3468 2005-06-12 Eli Zaretskii <eliz@gnu.org>
3469
3470 * makefile.w32-in ($(DOC)): Depend on make-docfile.exe,
3471 temacs.exe, and the preloaded *.elc files. This avoids
3472 unnecessary dumping and DOC rebuilding.
3473
3474 2005-06-04 Eli Zaretskii <eliz@gnu.org>
3475
3476 * ntlib.h (fileno): Don't define if already defined.
3477
3478 2005-05-25 Thien-Thi Nguyen <ttn@gnu.org>
3479
3480 * yow.c (setup_yow): Use EXIT_FAILURE in case no separators found.
3481 (yow): Use EXIT_FAILURE in case of memory error.
3482
3483 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3484
3485 * make-docfile.c (DIRECTORY_SEP): New macro.
3486 (IS_DIRECTORY_SEP): Use it.
3487
3488 2005-03-18 Jan Djärv <jan.h.d@swipnet.se>
3489
3490 * emacsclient.c: Avoid expansion of getcwd when defined as a macro.
3491
3492 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3493
3494 * make-docfile.c: Undo previous change.
3495
3496 2005-02-04 Andreas Schwab <schwab@suse.de>
3497
3498 * movemail.c (fatal): Accept third parameter and pass down to error.
3499 (pfatal_with_name): Pass error string as format parameter instead of
3500 as part of format string.
3501 (pfatal_and_delete): Likewise.
3502 (main): Adjust call to fatal.
3503 (xmalloc): Likewise.
3504
3505 2005-01-29 Richard M. Stallman <rms@gnu.org>
3506
3507 * movemail.c (popmail): Don't use Errmsg as format string.
3508
3509 2004-12-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3510
3511 * make-docfile.c: Include stdlib.h even if WINDOWSNT is not defined.
3512
3513 2004-12-15 Andreas Schwab <schwab@suse.de>
3514
3515 * etags.c (main): Fix typo in conversion of LONG_OPTIONS from
3516 preprocessing to compile time constant.
3517
3518 2004-11-17 Kim F. Storm <storm@cua.dk>
3519
3520 * etags.c: Undo last change.
3521
3522 2004-11-09 Kim F. Storm <storm@cua.dk>
3523
3524 * make-docfile.c (scan_c_file): Set defvarperbufferflag to
3525 silence compiler.
3526
3527 * hexl.c (main): Init local var c to silence compiler.
3528
3529 * etags.c (main, consider_token, C_entries): Add misc switch
3530 default targets to silence compiler.
3531
3532 2004-11-09 Jan Djärv <jan.h.d@swipnet.se>
3533
3534 * makefile.w32-in (obj): Add all files (X and Mac) to doc so the
3535 resulting DOC file can be used on Unix/Mac also.
3536
3537 2004-09-13 Francesco Potortì <pot@gnu.org>
3538
3539 * etags.c (main): When relative file names are given as argument,
3540 make them relative to the current working dir, rather than
3541 relative to the output tags file, if the latter is in /dev.
3542
3543 2004-09-13 Francesco Potortì <pot@gnu.org>
3544
3545 * etags.c [EXIT_SUCCESS, EXIT_FAILURE]: Define them when no
3546 <stdlib.h> is available.
3547 (enum sym_type): New st_C_attribute value for parsing
3548 gcc's __attribute__. Deleted st_C_typespec value.
3549 (gperf, in_word_set): Use gperf 3, options changed. Added the
3550 __attribute__ keyword, removed all the st_C_typespec keywords,
3551 changed attribute for Java to (C_JAVA & !C_PLPL).
3552 (inattribute): New global bool, part of the C state machine.
3553 (cblev): Identifier renamed to bracelev throughout.
3554 (consider_token, C_entries): Numerous changes for making the
3555 parser more robust and adding support for __attribute__.
3556
3557 2004-09-13 David A. Capello <dacap@users.sourceforge.net> (tiny change)
3558
3559 * etags.c (Lua_suffixes, Lua_help, lang_names, Lua_functions):
3560 Support the Lua scripting language <http://www.lua.org>.
3561
3562 2004-09-08 Francesco Potortì <pot@gnu.org>
3563
3564 * etags.c [LONG_OPTIONS]: Make it TRUE (ifdef) or FALSE (ifndef)
3565 for ease of use.
3566
3567 2004-07-17 Richard M. Stallman <rms@gnu.org>
3568
3569 * emacsclient.c (quote_file_name): Pass COPY thru %s to output it.
3570
3571 2004-06-01 Juanma Barranquero <lektu@terra.es>
3572
3573 * makefile.w32-in (obj): Add image.c.
3574
3575 2004-05-10 Thien-Thi Nguyen <ttn@gnu.org>
3576
3577 * test-distrib.c (main): For failing cases, exit with `EXIT_FAILURE'.
3578
3579 2004-05-08 Jason Rumney <jasonr@gnu.org>
3580
3581 * makefile.w32-in (lisp1, lisp2): Split lisp to avoid long
3582 command-lines.
3583
3584 2004-05-08 Thien-Thi Nguyen <ttn@gnu.org>
3585
3586 * cvtmail.c: Throughout, replace 0 destined for `exit' arg
3587 with `EXIT_SUCCESS'. Likewise, replace 1 with `EXIT_FAILURE'.
3588 (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
3589
3590 * ebrowse.c, emacsclient.c, fakemail.c, hexl.c,
3591 * make-docfile.c, movemail.c, profile.c, sorted-doc.c,
3592 * test-distrib.c, update-game-score.c, yow.c: Likewise.
3593
3594 2004-05-08 Thien-Thi Nguyen <ttn@gnu.org>
3595
3596 * Makefile.in (emacsclient${EXEEXT}): Use makefile var `version'.
3597
3598 2004-05-07 Thien-Thi Nguyen <ttn@gnu.org>
3599
3600 * b2m.c (GOOD, BAD): Delete macros. Throughout,
3601 replace w/ `EXIT_SUCCESS' and `EXIT_FAILURE', respectively.
3602 (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
3603
3604 * etags.c: Likewise.
3605
3606 2004-05-03 Jason Rumney <jasonr@gnu.org>
3607
3608 * makefile.nt: Remove.
3609
3610 2004-04-26 Eli Zaretskii <eliz@gnu.org>
3611
3612 * make-docfile.c (IS_DIRECTORY_SEP): New macro.
3613 (put_filename): Remove unused variable len. Use IS_DIRECTORY_SEP
3614 instead of a literal '/'.
3615
3616 2004-04-23 Juanma Barranquero <lektu@terra.es>
3617
3618 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
3619
3620 2004-04-17 Paul Eggert <eggert@gnu.org>
3621
3622 * rcs2log (Help): Clarify wording of the usage message.
3623 Reported by Alan Mackenzie in
3624 <http://mail.gnu.org/archive/html/bug-gnu-emacs/2004-04/msg00188.html>.
3625
3626 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
3627
3628 * make-docfile.c (xmalloc): Fix return type.
3629 (put_filename): New fun.
3630 (scan_file): Use it.
3631
3632 2004-03-09 Juanma Barranquero <lektu@terra.es>
3633
3634 * grep-changelog: Changes to support ChangeLog.10+.
3635 (main): Tidy up usage string. Fix "Use of uninitialized value"
3636 warning. Set version to 0.2. Parse the directory listing to get
3637 any ChangeLog.n file, not just 1..9.
3638 (header_match_p, entry_match_p, print_log, parse_changelog):
3639 Remove Perl prototypes (their purpose is to help the parser, which
3640 isn't needed here, not declare arguments).
3641 (parse_changelog): Make --reverse faster on big batches by not
3642 modifying the entries list.
3643
3644 2004-03-01 Juanma Barranquero <lektu@terra.es>
3645
3646 * makefile.w32-in (obj): Add fringe.c.
3647
3648 2004-02-14 Paul Eggert <eggert@twinsun.com>
3649
3650 * rcs2log: Work correctly if CVSROOT specifies :fork: or
3651 :local: methods, or omits the colon between the hostname
3652 and the path. Allow :/ in repository path, since CVS does.
3653 Fix typo: "pository" should be set from $CVSROOT, not $repository.
3654 This fixes a bug reported by Wolfgang Scherer in
3655 <http://mail.gnu.org/archive/html/bug-gnu-emacs/2004-02/msg00085.html>,
3656 along with some related bugs I discovered by inspecting how
3657 CVS itself parses $CVSROOT.
3658
3659 2004-02-04 Jérôme Marant <jmarant@nerim.net> (tiny change)
3660
3661 * emacsclient.c (decode_options): Fix handling of alternate editor.
3662
3663 2004-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
3664
3665 * emacsclient.c (main): Don't use the hostname in the socket name.
3666 Look for relative socket names in the /tmp dir rather than in cwd.
3667
3668 2004-01-24 Richard M. Stallman <rms@gnu.org>
3669
3670 * emacsclient.c (main): Restore errno from saved_errno,
3671 so the error message comes from socket_status.
3672
3673 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
3674
3675 * emacsclient.c (main): Stop if socket name too long.
3676 Only try su-fallback if the socket name was not explicit.
3677 Check socket name length in su-fallback case as well.
3678
3679 2004-01-08 Andreas Schwab <schwab@suse.de>
3680
3681 * emacsclient.c (main): Save errno from socket_status.
3682
3683 2004-01-04 Andreas Schwab <schwab@suse.de>
3684
3685 * emacsclient.c (main): Fix socket name when using another user.
3686
3687 2003-12-27 Paul Eggert <eggert@twinsun.com>
3688
3689 * rcs2log (rlog_options): Append -rbranchtag if CVS/Tag indicates
3690 a tag, and if the user has not specified an rlog option.
3691 Adapted from a suggestion by Martin Stjernholm in
3692 <http://mail.gnu.org/archive/html/bug-gnu-emacs/2003-07/msg00066.html>.
3693 (Copyright): Update to 2003.
3694
3695 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3696
3697 * make-docfile.c (main): For return code, no longer special-case VMS.
3698 Instead, use `EXIT_SUCCESS' and `EXIT_FAILURE' from stdlib.h.
3699
3700 2003-09-28 Andreas Büsching <crunchy@tzi.de> (tiny change)
3701
3702 * emacsclient.c (quote_file_name): Print the result instead of
3703 returning it. Fix the return type accordingly.
3704 (main): With --eval, if no file name, read from stdin.
3705 Quote file names.
3706
3707 2003-09-10 Richard M. Stallman <rms@gnu.org>
3708
3709 * emacsclient.c (main): Use socket_name.
3710
3711 2003-09-10 Andreas Büsching <crunchy@tzi.de> (tiny change)
3712
3713 * emacsclient.c (socket_name): New variable.
3714 (longopts, decode_options, print_help_and_exit):
3715 Handle --socket-name argument.
3716
3717 2003-08-25 Takaaki Ota <Takaaki.Ota@am.sony.com> (tiny change)
3718
3719 * etags.c (consider_token): Check C++ `operator' only when the
3720 token len is long enough.
3721
3722 2003-08-20 Dave Love <fx@gnu.org>
3723
3724 * Makefile.in: Remove obsolete references to alloca.
3725
3726 2003-07-29 Ken Brush <ken@wirex.com>
3727
3728 * emacsclient.c (main)
3729 * etags.c (suggest_asking_for_help)
3730 * movemail.c (main): Fix having macros in a printf statement.
3731
3732 2003-05-31 Juanma Barranquero <lektu@terra.es>
3733
3734 * makefile.w32-in (lisp): Fix references to byte-run.el,
3735 float-sup.el and map-ynp.el, which are now in emacs-lisp.
3736
3737 2003-05-22 Dave Love <fx@gnu.org>
3738
3739 * update-game-score.c (difftime) [!HAVE_DIFFTIME]: Define.
3740 (strerror) [!HAVE_STRERROR && !WINDOWSNT]: New.
3741
3742 2003-05-20 Dave Love <fx@gnu.org>
3743
3744 * movemail.c: Check HAVE_LIBLOCKFILE like HAVE_LIBMAIL.
3745
3746 * Makefile.in [HAVE_LIBLOCKFILE]: Define LIBS_MAIL=-llockfile.
3747
3748 2003-04-27 Oliver Scholz <alkibiades@gmx.de>
3749
3750 * update-game-score.c (read_scores): Fix corruption of scores on read.
3751
3752 2003-04-12 Stefan Monnier <monnier@cs.yale.edu>
3753
3754 * emacsclient.c (main): Use new safe location for socket.
3755
3756 2003-03-12 Tom Tromey <tromey@redhat.com>
3757
3758 * emacsclient.c (print_help_and_exit): Print to stdout.
3759 Exit successfully. Added some blank lines for readability.
3760 (decode_options): Don't call print_help_and_exit in default case.
3761 Print version information to stdout.
3762 (main): Don't call print_help_and_exit.
3763
3764 2003-02-15 Richard M. Stallman <rms@gnu.org>
3765
3766 * cvtmail.c: Cast result of malloc and realloc.
3767 Don't include stdlib.h, because config.h does.
3768 (malloc, realloc): Declarations deleted.
3769
3770 * yow.c (yow): Cast result of malloc and realloc.
3771 (malloc, realloc): Declarations deleted.
3772
3773 2003-02-11 Juanma Barranquero <lektu@terra.es>
3774
3775 * makefile.w32-in (lisp): Add malayalam.el and tamil.el.
3776
3777 2003-02-08 Andreas Schwab <schwab@suse.de>
3778
3779 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
3780 instead of the substitution.
3781
3782 2003-02-04 Richard M. Stallman <rms@gnu.org>
3783
3784 * update-game-score.c (push_score, read_scores): Cast values
3785 of malloc and realloc.
3786 (main, lock_file): Avoid assignment inside if.
3787
3788 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
3789
3790 * Makefile.in: Use @EXEEXT@ for Cygwin.
3791
3792 2003-01-21 Dave Love <fx@gnu.org>
3793
3794 * etags.c (Cplusplus_help, Cjava_help): Re-phrase and avoid
3795 column-0 `('.
3796
3797 * yow.c: Don't include string.h.
3798
3799 2003-01-20 Richard M. Stallman <rms@gnu.org>
3800
3801 * Makefile.in (rcs2log, rcs-checkin, grep-changelog, vcdiff):
3802 New targets.
3803
3804 2003-01-06 Kim F. Storm <storm@cua.dk>
3805
3806 * pop.c (__P): Rename from _P to avoid problems on Cygwin.
3807 All uses changed.
3808
3809 2002-12-18 Andrew Innes <andrewi@gnu.org>
3810
3811 * makefile.w32-in ($(DOC)): Use -o and -a options to make-docfile,
3812 because GNU make doesn't append when using >> redirection.
3813
3814 2002-12-12 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
3815
3816 * b2m.pl: Make sure every message ends with a blank line, because
3817 some mbox parsers require a blank line before "From " lines.
3818
3819 2002-12-08 Richard M. Stallman <rms@gnu.org>
3820
3821 * getopt.c: Do include libintl.h if HAVE_LIBINTL_H.
3822 (_): Test only HAVE_LIBINTL_H to decide what to do.
3823
3824 2002-12-05 Richard M. Stallman <rms@gnu.org>
3825
3826 * getopt.c: Comment out include of libintl.h or gettext.h.
3827
3828 2002-12-04 Richard M. Stallman <rms@gnu.org>
3829
3830 * Update getopt from gnulib version; changes described below.
3831
3832 * getopt1.c: Conditionally find getopt.h.
3833 [_LIBC] (getopt_long, getopt_long_only): Do libc_hidden_def.
3834
3835 * getopt.c (const): Move outside !HAVE_CONFIG_H conditional.
3836 (libintl.h): Include this if _LIBC. Otherwise include gettext.h.
3837 (wchar.h): Include, maybe.
3838 (attribute_hidden): Define if not defined.
3839 (__getopt_initialized): Use attribute_hidden.
3840 (__libc_argc, __libc_argv): Rename from original_argc, etc.
3841 (__getopt_nonoption_flags, nonoption_flags_max_len)
3842 (nonoption_flags_len): Conditional on USE_NONOPTION_FLAGS.
3843 (SWAP_FLAGS): New definitions.
3844 (exchange): Test USE_NONOPTION_FLAGS.
3845 (_getopt_initialize): Test USE_NONOPTION_FLAGS.
3846 (_getopt_internal): Error if argc < 1. New local var print_errors.
3847 Improve test for ambiguous long option.
3848 Add LIBIO support for error message output.
3849 (NONOPTION_P): Test USE_NONOPTION_FLAGS.
3850
3851 * getopt.h: Maybe include ctype.h.
3852 Treat __cplusplus like __STDC__.
3853 (decls): Use __ in arg names.
3854
3855 2002-12-02 Stephen Eglen <stephen@gnu.org>
3856
3857 * emacsclient.c (main): Tell user how to start server within Emacs
3858 if socket could not be found.
3859
3860 2002-12-02 Richard M. Stallman <rms@gnu.org>
3861
3862 * emacsclient.c (main): Test HAVE_GETCWD rather than BSD_SYSTEM.
3863
3864 2002-11-19 Ben Key <bkey1@tampabay.rr.com>
3865
3866 * makefile.w32-in: Fixed a bug that caused the documentation for
3867 the built in function play-sound-internal not to be included in
3868 /etc/DOC.
3869
3870 2002-11-18 Dave Love <fx@gnu.org>
3871
3872 * update-game-score.c: Include unistd.h, string.h, stdlib.h,
3873 fcntl.h, stdarg.h conditionally.
3874 (_GNU_SOURCE, __attribute__): Don't define.
3875 (optarg, optind, opterr): Declare.
3876 (lose, lose_syserr): Use NO_RETURN.
3877 (get_user_id): Use P_.
3878
3879 2002-11-17 Richard M. Stallman <rms@gnu.org>
3880
3881 * Makefile.in (${archlibdir}): Ignore errors operating on $(gamedir).
3882
3883 2002-11-14 Dave Love <fx@gnu.org>
3884
3885 * movemail.c (pop_retr): Declare comment.
3886
3887 * make-docfile.c (read_c_string_or_comment): Declare msgno.
3888
3889 * Makefile.in (YACC): Delete.
3890
3891 2002-10-19 Andreas Schwab <schwab@suse.de>
3892
3893 * Makefile.in (${archlibdir}): Always create $(gamedir).
3894 (update-game-score): Pass $(gamedir) as HAVE_SHARED_GAME_DIR.
3895
3896 2002-10-04 Juanma Barranquero <lektu@terra.es>
3897
3898 * makefile.w32-in (lisp): Load devanagari.el, not .elc.
3899
3900 2002-09-30 Markus Rost <rost@math.ohio-state.edu>
3901
3902 * emacsclient.c (main): Remove reference to SERVER_HOME_DIR
3903 completely.
3904
3905 2002-09-27 Stefan Monnier <monnier@cs.yale.edu>
3906
3907 * emacsclient.c: Remove SYSV support.
3908 (eval, display): New vars.
3909 (longopts): Add --eval and --display.
3910 (decode_options): Add -e and -d processing.
3911 (print_help_and_exit): Update the usage string.
3912 (main): Add support for --eval and --display.
3913 (main): Always use /tmp and non-qualified hostname.
3914
3915 2002-09-25 Stefan Monnier <monnier@cs.yale.edu>
3916
3917 * emacsserver.c: Remove.
3918
3919 2002-09-17 Stefan Monnier <monnier@cs.yale.edu>
3920
3921 * emacsclient.c (quote_file_name): Quote \n.
3922 (main): Print a final \n when needed.
3923
3924 2002-09-03 Francesco Potortì <pot@gnu.org>
3925
3926 * etags.c (regex_tag_multiline, readline): Never pass pfnote a
3927 string that cannot be freed.
3928
3929 2002-08-30 Francesco Potortì <pot@gnu.org>
3930
3931 * etags.c (consider_token, C_entries): Switch to C++ parsing when
3932 auto-detection is enabled and the `::' qualifier is met.
3933 (consider_token, C_entries): Several bugs corrected that tagged
3934 some declarations even though --declarations was not used.
3935 (plainc): New macro.
3936 (C_entries): Use it.
3937 (C_entries): Several cosmetic changes.
3938 (C_entries): Invalidate the token is some cases.
3939
3940 2002-08-29 Francesco Potortì <pot@gnu.org>
3941
3942 * etags.c (C_entries): Correct a problem with const C++ funcs.
3943 (ignoreindent): Rename from noindentypedefs.
3944 (cjava, cplpl): They are now macros instead of local vars.
3945
3946 2002-08-28 Francesco Potortì <pot@gnu.org>
3947
3948 * etags.c (HTML_labels): Tag ID= also.
3949
3950 2002-08-27 Francesco Potortì <pot@gnu.org>
3951
3952 * etags.c (Ada_funcs): Do not tag "use type Xxxx;".
3953
3954 * etags.c (HTML_labels): New language HTML.
3955 (etags_strcasecmp): Like BSD's, for compatibility.
3956 (strcaseeq): Make it into a macro.
3957
3958 * etags.c (make_tag): Never generate null length tag names.
3959 (linebuffer_init): Rename from initbuffer. All callers changed.
3960 (pattern): Structure renamed to `regexp', member regex renamed to
3961 pattern.
3962 (node_st): Member pat renamed to regex.
3963 (pattern); New member force_explicit_name, for future use.
3964 Now always set to true, cannot be reset.
3965 (add_regex, regex_tag_multiline, readline): Use it.
3966 (main): Free some global structures.
3967 (fdesc): New member `written'.
3968 (readline, process_file): Initialize it.
3969 (put_entries): Set it.
3970 (main): Use it to create entries for files without tags.
3971 (total_size_of_entries): Do not count invalid tags.
3972
3973 2002-08-19 Stefan Monnier <monnier@cs.yale.edu>
3974
3975 * make-docfile.c (scan_keyword_or_put_char, write_c_args): Use `fn'
3976 for the function name in the usage info.
3977
3978 2002-07-31 Colin Walters <walters@gnu.org>
3979
3980 * update-game-score.c (P_): New macro. Use it for all prototypes.
3981 (lose): Don't use varargs.
3982 (lose_syserr): New function.
3983
3984 * update-game-score.c: Change all functions to K&R style.
3985
3986 2002-07-30 Andreas Schwab <schwab@suse.de>
3987
3988 * Makefile.in (localstatedir): New variable.
3989
3990 2002-07-29 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
3991
3992 * b2m.pl: Fix regexp for finding return address fields.
3993
3994 2002-07-15 Stefan Monnier <monnier@cs.yale.edu>
3995
3996 * make-docfile.c (scan_c_file): Warn about missing `usage' info.
3997
3998 2002-07-05 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
3999
4000 * b2m.pl: Obey the rmail file and use the unpruned header properly.
4001
4002 2002-06-26 Pavel Janík <Pavel@Janik.cz>
4003
4004 * b2m.pl: New file.
4005
4006 2002-06-21 Francesco Potortì <pot@gnu.org>
4007
4008 * etags.c (F_getit, Fortran_functions, Ada_getit, Asm_labels)
4009 (Python_functions, PHP_functions, PHP_functions, PHP_functions)
4010 (PHP_functions, PHP_functions, Cobol_paragraphs)
4011 (Makefile_targets, Postscript_functions, Texinfo_nodes)
4012 (prolog_pr, erlang_func, erlang_attribute)
4013 (Perl_functions, Perl_functions, Pascal_functions)
4014 (TeX_commands, get_tag): Use make_tag instead of pfnote.
4015 (get_tag): Prototype changed, all callers changed.
4016
4017 2002-06-20 Francesco Potortì <pot@gnu.org>
4018
4019 * etags.c: Implement implicit tag names, that is, unnamed tags
4020 whose name is automatically deduced by etags.el. The advantage is
4021 that there is no explicit tag name in most tags, so the size of
4022 the tags file is reduced, yet find-tag is able to do a match as
4023 accurate as with named tags. See the comment in make_tag for details.
4024 (make_tag): New function (was the disabled function new_pfnote).
4025 (make_C_tag): Use it.
4026
4027 2002-06-19 Francesco Potortì <pot@gnu.org>
4028
4029 * etags.c (add_regex): Invalid regexp modifiers are ignored.
4030 (Makefile_targets): Tag variables unless --no-globals.
4031 (LOOP_ON_INPUT_LINES): Serious bug corrected.
4032
4033 2002-06-13 Francesco Potortì <pot@gnu.org>
4034
4035 * etags.c (erlang_atom, erlang_attribute): Bugs corrected.
4036 (invalidate_nodes): Bug corrected.
4037 (print_help): Better help for regexps.
4038
4039 2002-06-13 Juanma Barranquero <lektu@terra.es>
4040
4041 * makefile.w32-in (lisp): Add international/ucs-tables.elc and
4042 font-core.elc.
4043
4044 2002-06-12 Francesco Potortì <pot@gnu.org>
4045
4046 * etags.c: New multi-line regexp and new regexp syntax.
4047 (arg_type): at_icregexp label removed (obsolete).
4048 (pattern): New member multi_line for multi-line regexps.
4049 (filebuf): A global buffer containing the whole file as a string
4050 for multi-line regexp matching.
4051 (need_filebuf): Global flag raised if multi-line regexps used.
4052 (print_help): Document new regexp modifiers, remove references to
4053 obsolete option --ignore-case-regexp.
4054 (main): Do not set regexp syntax and translation table here.
4055 (main): Treat -c option as a backward compatibility hack.
4056 (main, find_entries): Init and free filebuf.
4057 (find_entries): Call regex_tag_multiline after the regular parser.
4058 (scan_separators): Check for unterminated regexp and return NULL.
4059 (analyse_regex, add_regex): Remove the ignore_case argument, which
4060 is now a modifier to the regexp. All callers changed.
4061 (add_regex): Manage the regexp modifiers.
4062 (regex_tag_multiline): New function. Reads from filebuf.
4063 (readline_internal): If necessary, copy the whole file into filebuf.
4064 (readline): Skip multi-line regexps, leave them to regex_tag_multiline.
4065
4066 2002-06-11 Francesco Potortì <pot@gnu.org>
4067
4068 * etags.c (add_regex): Better check for null regexps.
4069 (readline): Check for regex matching null string.
4070 (find_entries): Reorganization.
4071
4072 2002-06-07 Francesco Potortì <pot@gnu.org>
4073
4074 * etags.c (scan_separators): Support all character escape
4075 sequences supported by Gcc.
4076 (find_entries): Rewind unconditionally.
4077 (find_entries): Do not call language functions directly, now calls
4078 itself.
4079 (find_entries): Do general initializations here.
4080 (CNL_SAVE_DEFINEDEF, C_entries, LOOP_ON_INPUT_LINES, F_getit)
4081 (Ada_getit, Pascal_functions, Pascal_functions)
4082 (prolog_skip_comment): Do not do them here.
4083 (readline_internal): Increment lineno here.
4084 (readline): Conditionally undo readline_internal increment.
4085 (readline): Do not return a value.
4086
4087 2002-06-06 Francesco Potortì <pot@gnu.org>
4088
4089 * etags.c: New option --parse-stdin=FILE.
4090 (enum arg_type): New label at_stdin.
4091 (STDIN): New constant.
4092 (parsing_stdin): New flag.
4093 (longopts): New option --parse-stdin=NAME.
4094 (print_help): Document it.
4095 (main): Handle it.
4096 (process_file): Split into process_file and process_file_name.
4097 (process_file_name): New function.
4098
4099 * etags.c: Improvements and bug squashing in TeX handling.
4100 (TeX_commands): Skip comments.
4101 (TEX_defenv): Now contains more constructs.
4102 (TEX_cmt): Make it a static char and move it before TeX_commands.
4103 (TeX_commands): Shorten the tag to the brace after the name.
4104 (TeX_commands): Names now include the initial backslash.
4105 (TeX_commands): Names do not include numeric args #n.
4106 (TeX_commands): Correct line char number in tags.
4107 (TEX_tabent, TEX_token): Delete.
4108 (TeX_commands, TEX_decode_env): Streamlined.
4109
4110 2002-06-05 Francesco Potortì <pot@gnu.org>
4111
4112 * etags.c (main): Avoid a buffer overrun with sprintf.
4113
4114 2002-05-30 Richard M. Stallman <rms@gnu.org>
4115
4116 * Makefile.in (LIBS_MAIL): Rename from LIB_MAIL.
4117 (LIBS_MOVE): Rename from MOVE_LIBS.
4118
4119 2002-05-26 Paul Eggert <eggert@twinsun.com>
4120
4121 Reinstate the following change from 2002-03-22, which was
4122 inadvertently lost on 2002-04-13.
4123
4124 * etags.c (main): Use `sort -o TAGFILE TAGFILE' instead of
4125 `sort TAGFILE -o TAGFILE', as POSIX 1003.1-2001 disallows
4126 the latter usage.
4127
4128 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4129
4130 * pop.c (socket_connection): Move the code to resolve the POP
4131 host right before trying to connect with it.
4132
4133 2002-05-05 Eli Zaretskii <eliz@is.elta.co.il>
4134
4135 * tcp.c: Delete file since the TCP emulation is no longer in use on any
4136 platform.
4137
4138 2002-04-28 Colin Walters <walters@verbum.org>
4139
4140 * Makefile.in (${archlibdir}): Don't conditionalize on
4141 HAVE_SHARED_GAME_DIR. Instead, test at installation time whether
4142 or not we have access to the specified game user.
4143
4144 * update-game-score.c (SCORE_FILE_PREFIX): Delete.
4145 (main): New argument -d, for specifying directory.
4146 (usage): Document.
4147 (get_user_id): Compute.
4148 (get_home_dir): Delete.
4149 (get_prefix): New function, taken from main.
4150 (main): Check whether or not we are running setuid. Move prefix
4151 computation to get_prefix. Don't call getpwent; we don't need to
4152 any more. Instead, move it to get_user_id().
4153
4154 2002-04-24 Pavel Janík <Pavel@Janik.cz>
4155
4156 * ebrowse.c (skip_initializer): Return void.
4157
4158 2002-04-23 Colin Walters <walters@verbum.org>
4159
4160 * update-game-score.c (read_score) [HAVE_GETDELIM]: Trim trailing
4161 space.
4162
4163 2002-04-22 Francesco Potortì <pot@gnu.org>
4164
4165 * etags.c (last_node): Make it a global variable.
4166 (process_file): Print the tags from the nodes as soon as
4167 possible, and delete the nodes. This brings down the memory
4168 occupancy as etags to almost the same level as when the #line
4169 directives were not parsed.
4170 (free_fdesc): New function.
4171 (find_entries): Use it.
4172 (invalidate_nodes): In etags mode, do not just mark the nodes as
4173 invalid, do delete them.
4174
4175 2002-04-21 Gerd Moellmann <gerd@gnu.org>
4176
4177 * ebrowse.c (add_declarator): Test *CLS instead of CLS.
4178
4179 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
4180
4181 * update-game-score.c: Move config.h before the other headers, to
4182 avoid compiler warnings.
4183
4184 2002-04-16 Francesco Potortì <pot@gnu.org>
4185
4186 * etags.c (find_entries): Bug fix in list management.
4187
4188 2002-04-15 Francesco Potortì <pot@gnu.org>
4189
4190 * etags.c (get_language_from_filename): Add one argument.
4191 (strcaseeq): New function.
4192 (get_language_from_filename): Use it to do a case insensitive
4193 comparison if called with appropriate args.
4194 (find_entries): Try with case insensitive match.
4195 (process_file): Bug fixed.
4196
4197 2002-04-13 Francesco Potortì <pot@gnu.org>
4198
4199 * etags.c (find_entries): Delete tags previously obtained from
4200 file xxx.c's #line directives when parsing file xxx.y. This is
4201 generally done for automatically generated files containing
4202 #line directives. This handles the case when xxx.y is tagged
4203 before xxx.c, and the entries of xxx.c pointing to xxx.y should
4204 be discarded.
4205 (language): Add the metasource member. Initializers changed.
4206 (invalidate_nodes): New function.
4207 (readline): Discard lines after having found a #line
4208 directive pointing to an already tagged file. This handles the
4209 case when xxx.y is tagged before xxx.c, and the entries of
4210 xxx.c pointing to xxx.y should be discarded.
4211 (fdesc): New structure for keeping track of input files.
4212 (fdesc): Remove `file' member (a string) and use instead a pointer
4213 to a file description structure.
4214 (curfile, curfiledir, curtagfname, curlang, nocharno)
4215 (forced_lang): Global variables removed in favor of fdhead and
4216 curfdp, pointers to file description structures.
4217 (longopts, main, print_help): Use the CTAGS conditional to include
4218 or exclude options that work on etags or ctags only.
4219 (process_file, find_entries, pfnote, add_node, put_entries)
4220 (readline): Use fdhead and curfdp.
4221 (process_file, find_entries): Do not take an arg string, all
4222 callers changed.
4223
4224 * etags.c (longopts, print_help, main): Test CTAGS to disallow
4225 options that are not right for either etags or ctags.
4226
4227 * etags.c (number_len, total_size_of_entries): Define them also
4228 in CTAGS mode, because gcc does not compile all refs away.
4229
4230 2002-04-14 Colin Walters <walters@debian.org>
4231
4232 * update-game-score.c (lock_file): If the lock file is older than
4233 an hour, delete it. Reset attempts to zero if we have to break
4234 the lock.
4235
4236 2002-04-14 Andreas Schwab <schwab@suse.de>
4237
4238 * update-game-score.c (read_score): Fix type of second parameter
4239 of getdelim to be of type size_t instead of int. Use 0 instead of
4240 ESUCCES.
4241
4242 2002-04-10 Colin Walters <walters@verbum.org>
4243
4244 * update-game-score.c (toplevel): Include stdarg.h.
4245 (MAX_DATA_LEN, MAX_SCORES): New.
4246 (SCORE_FILE_PREFIX): If HAVE_SHARED_GAME_DIR is not defined,
4247 default to ~/.emacs.d/games.
4248 (get_user_id): Don't zero uid in the case where we can't get the
4249 username.
4250 (lose): New function.
4251 (main): Actually use `max', and default it to MAX_SCORES.
4252 Correctly handle new default for SCORE_FILE_PREFIX. Use `lose'
4253 function.
4254 (read_score): Handle the case of reading unamelen characters, then
4255 finishing. Use mktemp if mkstemp isn't available.
4256 (lock_file, unlock_file): Delete unused versions.
4257 (lock_file): Always sleep, even if we unlinked the lock file.
4258
4259 * Makefile.in (gamedir, gameuser): New variables.
4260 (toplevel, UTILITIES): Add update-game-score.
4261 (${archlibdir}): Handle HAVE_SHARED_GAME_DIR.
4262
4263 2002-04-07 Colin Walters <walters@verbum.org>
4264
4265 * update-game-score.c (SCORE_FILE_PREFIX): Don't hardcode.
4266 (get_user_id): Take struct passwd as an argument.
4267 (get_home_dir): New function.
4268 (main): Read in user information here. Discover home directory if
4269 necessary.
4270 (read_score): Trim newline only in `getline' case.
4271
4272 2002-04-05 Colin Walters <walters@debian.org>
4273
4274 * update-game-score.c (toplevel): Include pwd.h.
4275 (struct score_entry): Add username field.
4276 (push_score): Use it.
4277 (get_user_id): New function.
4278 (main): Don't malloc excessively.
4279 (main): Use username field.
4280 (read_score): Read it.
4281 (push_score): Handle it.
4282 (write_scores): Write it.
4283 (read_score): Handle arbitrary length data.
4284
4285 2002-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4286
4287 * ebrowse.c (add_declarator): Fix the first call to add_member_defn.
4288
4289 2002-03-29 Gerd Moellmann <gerd@gnu.org>
4290
4291 * ebrowse.c (add_declarator, skip_initializer): New functions.
4292 (declaration): Use them.
4293
4294 2002-03-28 Jason Rumney <jasonr@gnu.org>
4295
4296 * makefile.w32-in (lisp): Move backquote.elc into emacs-lisp.
4297
4298 2002-03-27 Colin Walters <walters@debian.org>
4299
4300 * update-game-score.c: New file.
4301
4302 2002-03-22 Paul Eggert <eggert@twinsun.com>
4303
4304 * etags.c (main): Use `sort -o TAGFILE TAGFILE' instead of
4305 `sort TAGFILE -o TAGFILE', as POSIX 1003.1-2001 disallows
4306 the latter usage.
4307
4308 2002-03-12 Francesco Potortì <pot@gnu.org>
4309
4310 * etags.c (Python_functions): Skip spaces at beginning of lines.
4311 (Python_functions, PHP_functions): Name tags, for ctags' sake.
4312 (TeX_commands): Name tags. Correction of old disabled code.
4313
4314 * etags.c (curfiledir, curtagfname): New global variables.
4315 (process_file): Initialize them.
4316 (readline): Canonicalize the name found in #line directive.
4317
4318 2002-03-06 Jason Rumney <jasonr@gnu.org>
4319
4320 * etags.c (put_entries): Use #if !CTAGS, to fix link error on
4321 compilers that don't optimize out dead code.
4322
4323 2002-03-05 Francesco Potortì <pot@gnu.org>
4324
4325 * etags.c: Honor #line directives.
4326 (no_line_directive): New global var; set it for old behavior.
4327 (main): Remove some #ifdef in the getopt switch.
4328 (add_node, put_entries): Code added to merge different chunks of
4329 nodes referring to the same file. Currently the tags are just
4330 appended, without any check for duplicates.
4331 (Perl_functions): Do not special case ctags.
4332 (readline): Identify #line directives and do the right thing.
4333 (nocharno, invalidcharno): New global vars.
4334 (process_file): Reset nocharno.
4335 (readline): Set nocharno.
4336 (pfnote): Read nocharno and maybe put invalidcharno in node.
4337 (total_size_of_entries, put_entries): Use invalidcharno.
4338
4339 * etags.c: Keep the whole tag table in memory, even in etags mode.
4340 (main): Call put_entries here even in CTAGS mode.
4341 (main, process_file): Check the return values of fclose and pclose.
4342 (process_file): Do not call put_entries after parsing each file.
4343 (process_file): Canonicalize file names even for ctags.
4344 (process_file): Set curfile here...
4345 (find_entries): ... not here any more.
4346 (add_node): In etags mode, build a linked list of entries (on
4347 right pointer) for each file, and link the first entry of each
4348 file on left nodes.
4349 (put_entries): Print here the name of the file.
4350 (put_entries): Print the entries starting from the first file.
4351 (number_len, total_size_of_entries): Define these only in etags
4352 mode, make the second work only on the right nodes.
4353
4354 * etags.c: Make all global variables static.
4355
4356 2002-02-25 Juanma Barranquero <lektu@terra.es>
4357
4358 * makefile.w32-in (lisp): Add missing backslash.
4359
4360 2002-02-24 Jason Rumney <jasonr@gnu.org>
4361
4362 * makefile.w32-in (WINNT_SUPPORT, MOUSE_SUPPORT, lisp): Revert to
4363 using .elc files.
4364 (lisp): Sync with list in src/Makefile.in.
4365 (VMS_SUPPORT, MSDOS_SUPPORT): Define, so DOC files can be shared.
4366
4367 2002-02-10 Paul Eggert <eggert@twinsun.com>
4368
4369 * rcs-checkin: Use `sort -k 2', not `sort +1', as POSIX 1003.1-2001
4370 disallows the old syntax.
4371
4372 2002-02-03 Paul Eggert <eggert@twinsun.com>
4373
4374 * rcs2log (Copyright): Update to 2002.
4375 (AWK, TMPDIR): Work around portability problem in broken shells that
4376 don't understand `: ${VAR=val}'.
4377 (SORT_K_OPTIONS): New var, for hosts that conform to POSIX 1003.1-2001.
4378 Prefer the new -k option to the traditional +M -N option.
4379
4380 2002-01-01 Pavel Janík <Pavel@Janik.cz>
4381
4382 * b2m.c (main): Parenthesize assignment when used as truth value
4383 to prevent gcc warnings.
4384
4385 * fakemail.c: Include <config.h>.
4386
4387 2001-12-29 Pavel Janík <Pavel@Janik.cz>
4388
4389 * cvtmail.c, emacsclient.c, emacsserver.c, pop.c, sorted-doc.c,
4390 * yow.c: Include <config.h>.
4391
4392 2001-12-21 Francesco Potortì <pot@gnu.org>
4393
4394 * etags.c (Perl_functions): Tag packages and use them in sub tags.
4395 (get_tag): Return a pointer to the tag that is found.
4396
4397 * etags.c (LOOKING_AT): Use !intoken instead of iswhite.
4398 (F_takeprec): Rename from takeprec. All callers changed.
4399 (F_getit): Rename from getit. All callers changed.
4400 (nocase_tail): Rename from tail. All callers changed.
4401 (Ada_getit): Rename from adagetit. All callers changed.
4402 (L_getit): Simplify by using get_tag.
4403 (Perl_functions, Postscript_functions, erlang_attribute): Use the
4404 modified LOOKING_AT.
4405 (notinname): Remove '[' and added ')' to the recognized chars.
4406 (LOOKING_AT, get_tag, PHP_functions): Use notinname.
4407 (Ada_getit, Ada_funcs, Python_functions, Scheme_functions):
4408 Clarified, using strneq or notinname.
4409 (L_isdef, L_isquote): Remove.
4410 (Lisp_functions, L_getit): Clarified.
4411
4412 * etags.c (P_): Rename to __P for consistency with config.h.
4413 [HAVE_CONFIG_H]: Let config.h deal with __P.
4414 [__STDC__] [!HAVE_CONFIG_H]: Define PTR as in config.h.
4415 [!__STDC__] [!HAVE_CONFIG_H]: Do not undefine static, because
4416 gperf code needs it.
4417 [HAVE_CONFIG_H] [!PTR]: Define PTR (for use with XEmacs).
4418 [HAVE_CONFIG_H] [!__P]: Define __P (for use with XEmacs).
4419 (xmalloc, xrealloc): Use PTR instead of long *.
4420 (bool): Make it a define, not a typedef, for C++ compilers.
4421 (pattern): Members renamed to avoid name clash in some C++ compilers.
4422 (get_language_from_langname): Use const argument.
4423
4424 2001-12-22 Pavel Janík <Pavel@Janik.cz>
4425
4426 * makefile.nt, makefile.w32-in: Remove mocklisp files.
4427
4428 2001-12-19 Pavel Janík <Pavel@Janik.cz>
4429
4430 * emacsserver.c: Conditionally include config.h.
4431
4432 * fakemail.c: Likewise.
4433
4434 * emacsclient.c: Include "config.h", not <../src/config.h>.
4435 (main): Parenthesize assignment when used as truth value to
4436 prevent gcc warnings.
4437
4438 * ebrowse.c: Include stdlib.h and string.h conditionally.
4439
4440 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4441
4442 * yow.c (main): Use time_t, not long, to avoid a compiler warning.
4443
4444 2001-12-18 Pavel Janík <Pavel@Janik.cz>
4445
4446 * test-distrib.c: Fix previous change.
4447
4448 2001-12-18 Dave Love <fx@gnu.org>
4449
4450 * test-distrib.c: Conditionally include fcntl.h.
4451
4452 * fakemail.c: Include "config.h", not <../src/config.h>.
4453 (_XOPEN_SOURCE): Define as 500.
4454
4455 * emacsserver.c: Include "config.h", not <../src/config.h>.
4456
4457 * cvtmail.c: Include config.h, stdlib.h.
4458 (xmalloc, xrealloc, skip_to_lf sysfail): Prototype.
4459
4460 * yow.c: Conditionally include various headers. Use "epaths.h",
4461 not <../src/epaths.h>.
4462 (malloc, realloc) [!HAVE_STDLIB_H]: Prototype.
4463
4464 2001-12-12 Francesco Potortì <pot@gnu.org>
4465
4466 * etags.c (PHP_functions): New function for parsing PHP.
4467 (LOOKING_AT): New macro.
4468 (Perl_functions, Python_functions, PHP_functions)
4469 (Scheme_functions, Texinfo_nodes): Use it.
4470 (Perl_functions): Use strneq.
4471 (prolog_pred): Rename to prolog_pr.
4472 (prolog_pr): Recognize Prolog rules in addition to predicates.
4473 [ETAGS_REGEXPS] [!HAVE_CONFIG_H] [__CYGWIN__]: Prevent
4474 unmodified compile, as Cygwin's regex.h is incompatible with us.
4475 [!HAVE_CONFIG_H] [!__STDC__]: #define const as the empty string.
4476
4477 2001-12-11 Richard M. Stallman <rms@gnu.org>
4478
4479 * Makefile.in (clean): Don't delete ../etc/DOC*.
4480
4481 2001-12-11 Pavel Janík <Pavel@Janik.cz>
4482
4483 * COPYING: Moved back.
4484
4485 2001-11-30 Andrew Innes <andrewi@gnu.org>
4486
4487 * makefile.w32-in (FACE_SUPPORT, MOUSE_SUPPORT, FLOAT_SUPPORT)
4488 (WINNT_SUPPORT, lisp): Reference .el files instead of .elc files,
4489 to simplify bootstrapping.
4490 ($(DOC)): Change dependency to just `make-docfile'.
4491
4492 2001-11-29 Pavel Janík <Pavel@Janik.cz>
4493
4494 * COPYING: Removed.
4495
4496 2001-11-28 Paul Eggert <eggert@twinsun.com>
4497
4498 * rcs2log (Copyright): Add '(C)' as per coding guidelines.
4499
4500 The following changes are derived from suggestions by Bob Chapman
4501 <rechapman@compuserve.com>.
4502
4503 * rcs2log (printlogline): Also allow tab and newline to separate
4504 '(function):' from the rest of a comment.
4505 (reformat the sorted log entries): Require date and author to
4506 match the clumpname.
4507
4508 2001-11-16 Gerd Moellmann <gerd@gnu.org>
4509
4510 * ebrowse.c (matching_regexp): Escape '\\'.
4511
4512 2001-11-15 Pavel Janík <Pavel@Janik.cz>
4513
4514 * Makefile.in: Add support for --program-prefix, --program-suffix
4515 and --program-transform-name options.
4516
4517 2001-11-03 Richard M. Stallman <rms@gnu.org>
4518
4519 * cvtmail.c (xrealloc): Always pass two args to `fatal'.
4520
4521 * movemail.c (popmail): Always pass two args to `error'.
4522
4523 2001-10-24 Ken Raeburn <raeburn@gnu.org>
4524
4525 * Makefile.in (HESIODLIB) [HAVE_LIBHESIOD]: Set to include
4526 -lhesiod and maybe -lresolv.
4527 (CRYPTOLIB) [HAVE_LIBK5CRYPTO]: Use -lk5crypto for Kerberos
4528 support if it's available.
4529
4530 2001-10-21 Miles Bader <miles@gnu.org>
4531
4532 * make-docfile.c (struct rcsoc_state): New type.
4533 (read_c_string_or_comment): Add SAW_USAGE
4534 parameter, and implement scanning for a `usage:' keyword.
4535 Use a variable of type `rcsoc_state' to hold most of our state.
4536 (put_char): Add STATE parameter, and remove all other parameters
4537 except CH. Use STATE to get access to all needed state.
4538 (scan_keyword_or_put_char): New function.
4539 (scan_c_file): Pass SAW_USAGE argument to read_c_string_or_comment.
4540 Don't output a usage-string if there was one in the doc-string.
4541
4542 2001-10-20 Gerd Moellmann <gerd@gnu.org>
4543
4544 * (Version 21.1 released.)
4545
4546 2001-10-19 Pavel Janík <Pavel@Janik.cz>
4547
4548 * b2m.c: Properly spell the name of Emacs.
4549
4550 2001-10-17 Miles Bader <miles@gnu.org>
4551
4552 * make-docfile.c (put_char): New function.
4553 (read_c_string_or_comment): Strip trailing spaces and newlines.
4554
4555 2001-10-16 Miles Bader <miles@gnu.org>
4556
4557 * make-docfile.c (scan_c_file): Handle `new style' doc strings in
4558 comments [with `doc:' keyword prefix].
4559
4560 2001-10-15 Gerd Moellmann <gerd@gnu.org>
4561
4562 * make-docfile.c (read_c_string_or_comment): Don't drop a '*'
4563 in a C doc comment.
4564
4565 2001-10-13 Gerd Moellmann <gerd@gnu.org>
4566
4567 * make-docfile.c (read_c_string_or_comment): Rename from
4568 read_c_string. Add parameter COMMENT. Read C-style comments.
4569 (scan_c_file): Handle doc strings in C comments.
4570
4571 2001-10-12 Andrew Innes <andrewi@gnu.org>
4572
4573 * makefile.nt (ALL): Do not include fakemail.
4574
4575 * makefile.w32-in (install): Do not copy fakemail.
4576
4577 2001-10-10 Jason Rumney <jasonr@gnu.org>
4578
4579 * makefile.w32-in (ALL): Do not include fakemail.
4580
4581 * makefile.nt (install): Ditto.
4582
4583 2001-10-09 Gerd Moellmann <gerd@gnu.org>
4584
4585 * emacsserver.c (main): Cast geteuid in sprintf to int.
4586
4587 * emacsclient.c (main): Cast isdigit argument to unsigned char.
4588
4589 2001-10-07 Pavel Janík <Pavel@Janik.cz>
4590
4591 * profile.c: Include config.h, not ../src/config.h.
4592 Include systime.h, not ../src/systime.h.
4593
4594 2001-10-05 Gerd Moellmann <gerd@gnu.org>
4595
4596 * Branch for 21.1.
4597
4598 2001-10-01 Alexander Zhuckov <zuav@int.spb.ru>
4599
4600 * ebrowse.c (struct alias): Add two new struct members: NAMESP and
4601 ALIASEE to help work with namespace aliases.
4602 (struct sym): Remove struct member NAMESP_ALIASES.
4603 (namespace_alias_table): New variable.
4604 (make_namespace): Add parameter CONTEXT.
4605 (check_namespace): New function.
4606 (find_namespace): Add parameter CONTEXT.
4607 (check_namespace_alias): New function.
4608 (register_namespace_alias): Change type of parameter OLD_NAME.
4609 Search for already defined alias in NAMESPACE_ALIAS_TABLE.
4610 (check_namespace): New function.
4611 (enter_namespace): Call find_namespace with CONTEXT parameter.
4612 (match_qualified_namespace_alias): New function.
4613 (parse_qualified_ident_or_type): Fix typo in comment.
4614 While parsing qualified ident or type update namespace context and
4615 restore it on exit.
4616 (parse_qualified_param_ident_or_type): Fix typo in comment.
4617 (globals): Change handling of namespace aliases.
4618 (version): Add year 2001.
4619
4620 2001-09-15 Eli Zaretskii <eliz@is.elta.co.il>
4621
4622 * etags.c (analyse_regex): If regex_arg is NULL, return
4623 immediately after a call to free_patterns.
4624
4625 2001-09-05 Paul Eggert <eggert@twinsun.com>
4626
4627 * rcs2log (Help, mainline code): Add new option -L FILE.
4628 (Copyright): Update year.
4629 (LANG, LANGUAGE, LC_ALL, LC_COLLATE, LC_CTYPE, LC_MESSAGES)
4630 (LC_NUMERIC, LC_TIME): New shell vars, to make sure we live in the
4631 C locale.
4632 (mainline code): Handle nonstandard -u option differently, by
4633 transforming it to standard form. Check for "Working file: ", not
4634 "Working file:". Allow file names with spaces.
4635 (SOH, rlogfile): New shell vars.
4636 (rlogout): Remove. Its old functionality is mostly migrated to
4637 rlogfile.
4638
4639 Append ';;' to the last arm of every case statement, for
4640 portability to ancient broken BSD shells.
4641
4642 (logins): Fix bug; was not being computed at all, lowering performance.
4643 (pository): New var. This fixes some bugs where repositories are
4644 remote, or have trailing slashes.
4645 (authors): $llogout is never an empty shell var, so don't worry
4646 about that possibility.
4647 (printlogline, mainline code): Fix bug with SOH's being put into
4648 the output.
4649
4650 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
4651
4652 * ebrowse.c (SEEK_END): #define if not defined by system headers.
4653 Suggested by Dave Love <d.love@dl.ac.uk>.
4654
4655 2001-08-29 Eli Zaretskii <eliz@is.elta.co.il>
4656
4657 * makefile.nt (lisp): Synchronize with src/Makefile.in.
4658 * makefile.w32-in (lisp): Ditto.
4659
4660 2001-07-25 Juanma Barranquero <lektu@terra.es>
4661
4662 * grep-changelog (parse_changelog): Remove unused local variable.
4663
4664 * grep-changelog (main): Add new option --reverse.
4665 (print_log): Use it.
4666 (parse_changelog): Use it.
4667
4668 2001-07-20 Gerd Moellmann <gerd@gnu.org>
4669
4670 * grep-changelog: Remove RCS Id keyword.
4671
4672 2001-07-20 Juanma Barranquero <lektu@terra.es>
4673
4674 * grep-changelog (parse_changelog): Add tests for defined values
4675 to quiet warning from Perl 5.005 or above.
4676 (entry_match_p, header_match_p): Fix handling of null or empty
4677 argument to prevent duplicate headers.
4678
4679 * grep-changelog (main, parse_changelog): Make "use strict"-clean.
4680
4681 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4682
4683 * emacsclient.c (print_help_and_exit): Fix help message for
4684 +LINE:COLUMN option.
4685
4686 2000-07-17 Han-Wen Nienhuys <hanwen@cs.uu.nl>
4687
4688 * emacsclient.c (main): Add support for +LINE:COLUMN command line
4689 argument.
4690
4691 2001-07-16 Gerd Moellmann <gerd@gnu.org>
4692
4693 * ebrowse.c (main): Check that the output file exists and
4694 is non-empty if invoked with `--append'.
4695
4696 2001-05-14 Francesco Potortì <pot@gnu.org>
4697
4698 * etags.c (add_regex): Reset the whole newly allocated pattern
4699 buffer instead of the individual members. It's safer and works
4700 with XEmacs.
4701
4702 * etags.1: Markups corrected.
4703
4704 2001-05-08 Gerd Moellmann <gerd@gnu.org>
4705
4706 * ebrowse.c (enter_namespace): Fix reallocation of namespace_stack.
4707
4708 2001-05-03 Gerd Moellmann <gerd@gnu.org>
4709
4710 * ebrowse.c (globals): Fix handling of namespace aliases.
4711
4712 2001-04-27 Eli Zaretskii <eliz@is.elta.co.il>
4713
4714 * etags.c (print_help): Enclose the regexp in the help text
4715 example in quotes.
4716
4717 2001-04-05 Dave Love <fx@gnu.org>
4718
4719 * emacsclient.c (fail): Don't return a value.
4720 (main): Cast uid values for sprintf.
4721
4722 2001-04-03 Gerd Moellmann <gerd@gnu.org>
4723
4724 * emacsclient.c (fail, main): Don't use implicit int return type.
4725
4726 * b2m.c (main): Always return a value.
4727
4728 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4729
4730 * ebrowse.c (parse_qualified_param_ident_or_type): Return a
4731 freshly allocated object in *LAST_ID.
4732 (read_line): Accept \r\n line endings.
4733
4734 2001-02-24 Andrew Innes <andrewi@gnu.org>
4735
4736 * makefile.w32-in: Fix copyright notice.
4737
4738 2001-02-23 Francesco Potortì <pot@gnu.org>
4739
4740 * etags.c (enum sym_type): New label st_C_template.
4741 (gperf input): Use it for switching to C++ from C.
4742 (consider_token): Do it.
4743 (C_entries): Initialize typdefcblev to quiet compilers.
4744 [!HAVE_CONFIG_H] [!__STDC__]: #define static as nothing.
4745
4746 2001-02-22 Andrew Innes <andrewi@gnu.org>
4747
4748 * makefile.nt ($(BLD)\movemail.obj): Remove reference to
4749 VMS header files.
4750 ($(BLD)\profile.obj): Ditto.
4751
4752 * makefile.w32-in ($(BLD)/movemail.$(O)): Remove reference to
4753 VMS header files.
4754 ($(BLD)/profile.$(O)): Ditto.
4755
4756 2001-02-05 Andrew Innes <andrewi@gnu.org>
4757
4758 * makefile.w32-in ($(DOC)): Use $(THISDIR) instead of . in
4759 invocation of make-docfile, to work with Windows 2000.
4760
4761 2001-01-31 Dave Love <fx@gnu.org>
4762
4763 * etags.c (in_word_set): Use `static' in definition (for pcc).
4764
4765 2001-01-31 Francesco Potortì <pot@gnu.org>
4766
4767 * etags.c [NDEBUG]: #undef assert and #define it as ((void)0), for
4768 the sake of some buggy assert.h (e.g. in MinGW and sunos4 pcc).
4769 (C_entries): Tag token renamed to still_in_token because sunos4
4770 pcc wants to expand it as the token() macro even though it has no
4771 arguments.
4772
4773 2001-01-30 Andrew Innes <andrewi@gnu.org>
4774
4775 * etags.c (assert) [__MINGW32__]: Redefine assert to work around a
4776 bug in the Mingw32 assert.h header file.
4777
4778 2001-01-30 Francesco Potortì <pot@gnu.org>
4779
4780 * etags.c [WIN32-NATIVE]: #undef MSDOS, #undef WINDOWSNT and
4781 #define it for the sake of XEmacs.
4782 [WINDOWSNT]: #undef HAVE_NTGUI even if built without
4783 HAVE_CONFIG_H. This change only affects a standalone etags.
4784 [WINDOWSNT]: #undef DOS_NT and #define it even if built with
4785 HAVE_CONFIG_H. This change does nothing in Emacs, as DOS_NT is
4786 always defined when HAVE_CONFIG_H and WINDOWS are both defined.
4787 [!HAVE_UNISTD_H]: Use defined(WINDOWSNT) instead of the bare
4788 WINDOWSNT, as this is the correct way to use it.
4789
4790 2001-01-28 Francesco Potortì <pot@gnu.org>
4791
4792 * etags.c: Be capable to parse nested struct-like structures.
4793 (structdef, structtag): Struct state machine revisited.
4794 (struct tok): Revisited.
4795 (cstack, nestlev, instruct): New struct and macros.
4796 (pushclass_above, popclass_above, write_classname): New functions
4797 for dealing with nested class names.
4798 (consider_token, make_C_tag, C_entries): Many changes for dealing
4799 with arbitrarily nested structures.
4800 (etags_getcwd): #if MSDOS, not #ifdef MSDOS!
4801 (C_entries): Consider templates in C++.
4802 (sym_type): New constant st_C_class for detecting "class" also in
4803 C mode.
4804 (C_AUTO): New macro for automatic detection of C++.
4805 (consider_token): Automatic set C++ mode.
4806 (C_entries): New security check for yacc.
4807 (print_language_names, print_help): Mention the autodetect
4808 feature, do not show help for the -C option, now mostly useless.
4809 (C_entries): Tag C++ forward declarations if --declarations.
4810 (C_entries): Don't be fooled by things like XDEFUN.
4811 (consider_token): Discard asm pseudo function.
4812
4813 2001-01-27 Eli Zaretskii <eliz@is.elta.co.il>
4814
4815 * etags.c: Add a coding: tag.
4816
4817 2001-01-26 Gerd Moellmann <gerd@gnu.org>
4818
4819 * ebrowse.c (matching_regexp_buffer, matching_regexp_end_buf):
4820 New variables.
4821 (matching_regexp): Use them instead of static variables in
4822 function scope.
4823
4824 2001-01-25 Francesco Potortì <pot@gnu.org>
4825
4826 * etags.c (struct tok): Rename from struct token.
4827 (token): Rename from tok.
4828 (structtype): Make it a local variable.
4829 [DEBUG]: Use assert.
4830 (xrnew): Change the synopsis.
4831 (typedefs_or_cplusplus): Rename from typedefs_and_cplusplus.
4832 (grow_linebuffer): Don't call xrnew when not needed.
4833 (token): Buffer renamed to line.
4834 (C_entries): Three calls to inibuffer moved here from main.
4835 (C_entries): Remove all references to var methodlen, delete it.
4836 (linebuffer_setlen): Was grow_buffer, now also sets len.
4837 (consider_token, C_entries, Pascal_functions): Use it.
4838 (C_entries): Preventing problems relative to extern "C".
4839 (C_entries): Can tag more than one variable or func separated by
4840 comma when --declarations is used.
4841 (C_entries): More accurate tagging of members and declarations.
4842 (yacc_rules): Was global, made local to C_entries.
4843 (next_token_is_func): Remove.
4844 (fvdef): New constants fdefunkey, fdefunname.
4845 (consider_token, C_entries): Use them.
4846 (C_entries): Build proper lisp names for Emacs DEFUNs.
4847
4848 2001-01-22 Gerd Moellmann <gerd@gnu.org>
4849
4850 * ebrowse.c (xfree): New function.
4851 (member, declaration, globals): Use xmalloc instead of alloca.
4852
4853 2001-01-15 Francesco Potortì <pot@gnu.org>
4854
4855 * etags.c (print_language_names): Print filenames in addition to
4856 suffixes.
4857
4858 2001-01-14 Francesco Potortì <pot@gnu.org>
4859
4860 * etags.c (get_language_from_langname): Rename from
4861 get_language_from_name.
4862 (get_language_from_filename): Rename from get_language_from_suffix.
4863 Now first looks for the complete file name.
4864 (language): New member char **filenames.
4865 (Makefile_filenames): List of possible filenames for makefiles.
4866 (lang_names): Add a NULL member for every entry, added an entry
4867 for makefiles.
4868 (Makefile_targets): New function.
4869 (Texinfo_nodes): Rename from Texinfo_functions and made
4870 it conformant to the style of the rest of the code.
4871
4872 2001-01-13 Gerd Moellmann <gerd@gnu.org>
4873
4874 * make-docfile.c (write_c_args): Print newlines as spaces.
4875
4876 2001-01-06 Andrew Innes <andrewi@gnu.org>
4877
4878 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
4879 of *.pdb.
4880
4881 2001-01-03 Paul Eggert <eggert@twinsun.com>
4882
4883 * rcs2log: Avoid security hole allowing attacker to
4884 cause user of rcs2log to overwrite arbitrary files, fixing
4885 a bug reported by Morten Welinder.
4886
4887 Don't put "exit 1" at the end of the exit trap; it's
4888 ineffective in POSIX shells.
4889
4890 2001-01-02 Gerd Moellmann <gerd@gnu.org>
4891
4892 * ebrowse.c (yyerror): Change to take two arguments.
4893 Add prototype. Change callers.
4894
4895 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
4896
4897 * ebrowse.c (enter_namespace, main): Cast variables to shut up
4898 compiler warnings.
4899 (yyerror): Change parameter declarations to be of type long, so
4900 that they can take pointers on 64-bit platforms.
4901
4902 * emacsclient.c (main): Remove unused local variable statbfr.
4903 (main) <homedir>: Make its declaration conditional on
4904 SERVER_HOME_DIR, to avoid compiler warnings.
4905
4906 * emacsserver.c (main) <homedir>: Make its declaration conditional
4907 on SERVER_HOME_DIR, to avoid compiler warnings.
4908
4909 * fakemail.c (readline): Cast buffer to "long *" to pacify
4910 over-zealous compilers.
4911
4912 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4913
4914 * etags.c (canonicalize_filename) [DOS_NT]: Fix last change.
4915
4916 2000-12-15 Gerd Moellmann <gerd@gnu.org>
4917
4918 * ebrowse.c (operator_name): Cast argument of isalpha to
4919 unsigned char.
4920
4921 * etags.c (ISALNUM, ISALPHA, ISDIGIT, ISLOWER): New macros.
4922 Use them throughout instead of ctype functions/macros.
4923 (lowcase): Cast to unsigned char.
4924 (UPCASE): New macro.
4925 (canonicalize_filename): Use UPCASE instead toupper.
4926
4927 * fakemail.c (get_keyword): Make sure that isspace and
4928 similar aren't called with a negative argument.
4929
4930 2000-12-13 Dave Love <fx@gnu.org>
4931
4932 * ebrowse.c (ensure_scope_buffer_room): Fix xrealloc call.
4933
4934 2000-12-06 Andrew Innes <andrewi@gnu.org>
4935
4936 * makefile.w32-in (LOCAL_FLAGS): Remove -DVERSION flag, since we
4937 don't know the real version, and I can't seem to get the quoting
4938 right in all circumstances.
4939
4940 * ebrowse.c (VERSION): Provide default definition, like etags.c
4941 does, because Windows build can't snarf this from version.el.
4942
4943 2000-11-30 Andrew Innes <andrewi@gnu.org>
4944
4945 * makefile.w32-in ($(BLD)/ebrowse.exe): Use tabs not spaces.
4946 (install): Ditto.
4947
4948 2000-11-23 Jason Rumney <jasonr@gnu.org>
4949
4950 * makefile.w32-in: Add targets for ebrowse.exe.
4951 (LOCAL_FLAGS): Add -DVERSION flag.
4952
4953 2000-09-25 Dave Love <fx@gnu.org>
4954
4955 * sorted-doc.c: Include config.h.
4956 [!HAVE_STDLIB_H]: Declare malloc.
4957
4958 2000-09-14 Andrew Innes <andrewi@gnu.org>
4959
4960 * makefile.w32-in: Revert to Unix line endings.
4961
4962 2000-09-04 Dave Love <fx@gnu.org>
4963
4964 * movemail.c (index, rindex): Prototype conditionally.
4965
4966 2000-09-03 Andrew Innes <andrewi@gnu.org>
4967
4968 * makefile.w32-in: Change to DOS line endings.
4969
4970 2000-09-01 Eli Zaretskii <eliz@is.elta.co.il>
4971
4972 * movemail.c (toplevel): Remove redundant fcntl.h.
4973 [!F_OK]: Provide default definitions only after including both
4974 fcntl.h and unistd.h.
4975
4976 2000-08-29 Dave Love <fx@gnu.org>
4977
4978 * movemail.c: Revert previous change.
4979
4980 2000-08-29 Eli Zaretskii <eliz@is.elta.co.il>
4981
4982 * Makefile.in (profile, make-docfile, hexl): Depend on config.h.
4983
4984 2000-08-28 Dave Love <fx@gnu.org>
4985
4986 * movemail.c (toplevel) [HAVE_STRING_H]: Include string.h.
4987 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
4988
4989 2000-08-22 Andrew Innes <andrewi@gnu.org>
4990
4991 * ntlib.h (WIN32): Remove unnecessary definition.
4992 (sleep): Make argument unsigned long.
4993 (_WINSOCK_H): Undefine so normal winsock definitions can be used.
4994
4995 * ntlib.c (sleep): Make argument unsigned long.
4996
4997 * movemail.c (main) [WINDOWSNT]: Force binary mode for fileio.
4998
4999 * makefile.w32-in: New file.
5000
5001 2000-08-20 Eli Zaretskii <eliz@is.elta.co.il>
5002
5003 * etags.c (canonicalize_filename) [DOS_NT]: Upcase the first
5004 letter only if it is a drive letter.
5005
5006 2000-07-14 Gerd Moellmann <gerd@gnu.org>
5007
5008 * ebrowse.c (xrealloc, xmalloc): Rename from yrealloc and ymalloc.
5009
5010 * etags.c (xmalloc, xrealloc): Make externally visible, for use
5011 by alloca.o.
5012
5013 * Makefile.in (alloca.o): Add -Demacs so that alloca will use xmalloc.
5014
5015 2000-07-10 Gerd Moellmann <gerd@gnu.org>
5016
5017 * ebrowse.c (yylex): Accept string literals with newlines in them.
5018 (process_pp_line): Handle case of string literal with newline
5019 in it in replacement text, which counts as continuing the
5020 replacement text in GNU C.
5021
5022 2000-07-02 Gerd Moellmann <gerd@gnu.org>
5023
5024 * ebrowse.c (token_string): Add missing tokens.
5025 (parm_list): Handle case of qualified pointers.
5026
5027 2000-06-23 Dave Love <fx@gnu.org>
5028
5029 * ebrowse.c: Move config.h before other includes (which may use
5030 feature tests).
5031
5032 2000-06-14 Jim Meyering <meyering@lucent.com>
5033
5034 * grep-changelog: Fix typos in comments. Remove trailing blanks.
5035
5036 2000-06-11 Jason Rumney <jasonr@gnu.org>
5037
5038 * makefile.nt: Add targets for ebrowse.
5039
5040 * ebrowse.c [WINDOWS_NT]: Use stricmp instead of strcasecmp to
5041 compare filenames.
5042
5043 2000-06-06 Gerd Moellmann <gerd@gnu.org>
5044
5045 * ebrowse.c (ymalloc): Rename from xmalloc.
5046 (yrealloc): Rename from xrealloc.
5047
5048 2000-05-21 Dave Love <fx@gnu.org>
5049
5050 * movemail.c: Include config.h, not ../src/config.h.
5051 (Errmsg): Bump length.
5052
5053 * pop.c (ERROR_MAX): Increase to 160.
5054
5055 2000-05-04 Gerd Moellmann <gerd@gnu.org>
5056
5057 * ebrowse.c (DEFAULT_OUTFILE): Set to `BROWSE'.
5058
5059 2000-05-02 Eli Zaretskii <eliz@is.elta.co.il>
5060
5061 * ebrowse.c (PATH_LIST_SEPARATOR) [__MSDOS__ || WINDOWSNT]:
5062 Define to semi-colon.
5063 (FILENAME_EQ): New macro, for comparing file names.
5064 (add_member_decl, add_global_decl, add_member_defn): Use FILENAME_EQ.
5065 (process_file): Don't assume that fread always reads as many bytes
5066 as it was told to (DOS-style CR-LF text files fail this logic).
5067 (open_file): Allocate enough space for path->path plus the file
5068 name and the slash.
5069
5070 2000-04-19 Dave Love <fx@gnu.org>
5071
5072 * etags.c (Texinfo_functions): New function.
5073 (lang_names): Install it.
5074 (Texinfo_suffixes): New variable.
5075
5076 2000-04-19 Gerd Moellmann <gerd@gnu.org>
5077
5078 * ebrowse.c (xmalloc, xrealloc): Rewritten.
5079 (declaration): Remove parameter IS_EXTERN.
5080 (class_definition): Remove unused variable.
5081
5082 2000-04-09 Gerd Moellmann <gerd@gnu.org>
5083
5084 * Makefile.in (INSTALLABLES): Add ebrowse.
5085 (ebrowse): New target.
5086
5087 * ebrowse.c: New file.
5088
5089 2000-03-29 Andreas Schwab <schwab@suse.de>
5090
5091 * make-docfile.c (scan_lisp_file): Also look for `defsubst'.
5092
5093 2000-03-02 Gerd Moellmann <gerd@gnu.org>
5094
5095 * etags.c (lisp_suffixes): Add `LSP'.
5096
5097 2000-02-10 Francesco Potortì <pot@gnu.org>
5098
5099 * etags.c (iswhite): Redefine not to consider '\0' as white
5100 space, and use it throughout in place of isspace, thus preventing a
5101 potential signed char to int conversion problem.
5102 (MSDOS): #undefine before redefining.
5103
5104 2000-02-04 Francesco Potortì <pot@gnu.org>
5105
5106 * etags.c (many functions): Add prototypes.
5107
5108 2000-02-10 Dave Love <fx@gnu.org>
5109
5110 * etags.c (pfnote, new_pfnote, C_entries, prolog_pred)
5111 (erlang_func): Add `static' to definitions to keep pcc happy.
5112
5113 2000-01-31 Francesco Potortì <pot@gnu.org>
5114
5115 * etags.c [MSDOS]: Set MSDOS to 1 if #defined, 0 otherwise.
5116 (get_compressor_from_suffix, process_file): Use MSDOS in if clause.
5117 (etags_strchr, etags_strrchr): Use const char * and int as arguments.
5118 (getenv, getcwd): Only declare them if necessary.
5119 (EMACS_NAME): New constant macro.
5120 (print_version): Use it.
5121 (P_) [__STDC__]: Macro for defining function prototypes.
5122
5123 2000-01-18 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
5124
5125 * etags.c [WINDOWSNT]: #include <direct.h>
5126
5127 2000-01-18 Martin Buchholz <martin@xemacs.org>
5128
5129 * etags.c (all functions): Made them static.
5130 (all functions): Write prototypes.
5131
5132 2000-01-29 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5133
5134 * movemail.c (main): Improve error message if can't create lock file.
5135
5136 2000-01-28 Eric Hanchrow <offby1@blarg.net>
5137
5138 * emacsclient.c (socket_status): New function.
5139 (main): If $LOGNAME or $USER exist and differ from our euid, look
5140 for a socket based on the UID associated with the name.
5141
5142 2000-01-12 Han-Wen Nienhuys <hanwen@cs.uu.nl>
5143
5144 * emacsclient.c: Add option -a EDITOR and environment variable
5145 ALTERNATE_EDITOR. Exec this editor if we fail to contact Emacs.
5146
5147 1999-12-10 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5148
5149 * movemail.c (popmail): Allow mailbox specifications of the
5150 form `po:username:hostname'.
5151
5152 1999-11-19 Francesco Potortì <pot@gnu.org>
5153
5154 * etags.c (_GNU_SOURCE): Define only if undefined.
5155 (get_scheme): Declaration deleted.
5156 (main): Error was called with an integer as second arg, instead of
5157 a char pointer.
5158 (canonicalize_filename): Bug removed.
5159
5160 1999-11-18 Dave Love <d.love@dl.ac.uk>
5161
5162 * etags.c (C_entries): Rename label `intoken', avoiding K&R
5163 lossage from name clash with macro.
5164
5165 1999-11-13 Gerd Moellmann <gerd@gnu.org>
5166
5167 * Makefile.in (b2m): Add dependency on GETOPTDEPS.
5168
5169 1999-11-03 Gerd Moellmann <gerd@gnu.org>
5170
5171 * etags.c (print_help): Change email address to send bugs to.
5172
5173 1999-11-01 Francesco Potortì <pot@gnu.org>
5174
5175 * etags.c: Add suffix psw for PSWrap.
5176 (L_getit): Generalize a "cp!=' '" into "!isspace(*cp)".
5177 (Postscript_functions): Add code for PSWrap.
5178 (Scheme_functions): Use local pointer and new get_tag function.
5179 (get_tag): New name for old get_scheme.
5180 (process_file): Do not free NULL when file does not exist.
5181 (typdef): ttypedefseen renamed to tkeyseen, new label ttypeseen.
5182 (C_entries): Modifications that make --members tag even inside
5183 typedefs and C nested structs (one level only).
5184 (consider_token): Correct a bug which prevented tagging of enum
5185 constants.
5186 (C_stab_entry): Add if, for, while, switch, return as
5187 st_C_ignore. This makes it simpler to work when cblev!=0.
5188
5189 * etags.c (C_entries): Tag member function declarations when
5190 --declarations is used.
5191
5192 * etags.c (C_entries, consider_token): C++ `operator' now is
5193 tagged in most cases.
5194 As before, :: is not recognized if surrounded by spaces.
5195
5196 * etags.c (relative_filename): Account for DOS file names such
5197 that is impossible to make one relative to another.
5198
5199 * etags.c (sym_type): New st_C_extern tag.
5200 (gperf input): Use it for spotting external declarations.
5201 (print_help): Document the new behavior of --declarations.
5202 (fvextern): New global variable.
5203 (consider_token, C_entries): Use it.
5204
5205 * etags.c (HAVE_GETCWD) [WINDOWSNT]: Define if undefined.
5206 (etags_getcwd): Remove test for WINDOWSNT.
5207
5208 * etags.c (process_file) [MSDOS]: If foo.c.gz is not found, try
5209 foo.cgz, foo.cz, etc.
5210
5211 * etags.c (declarations): New global switch.
5212 (longopts): Describe it.
5213 (print_help): Document it.
5214 (C_entries): Use it.
5215 (process_file): Don't process a file twice.
5216
5217 * etags.c (Fortran_functions): No tags for "procedure".
5218
5219 1999-11-01 Eli Zaretskii <eliz@is.elta.co.il>
5220
5221 * etags.c (get_compressor_from_suffix): Second argument EXTPTR, if
5222 non-zero, returns a pointer to where the extension begins; callers
5223 changed.
5224 [MSDOS]: Support DOS file names by handling e.g. foo.cgz as if it
5225 were foo.c.gz.
5226
5227 1999-11-01 Francesco Potortì <pot@gnu.org>
5228
5229 * etags.c (sym_type, C_stab_entry): New constant st_C_operator.
5230 (fvdev): New constant foperator.
5231 (consider_token): Use it to get "operator" in C++.
5232 (C_entries): Extend length of operator@ function name.
5233 (C_entries): Use foperator when necessary.
5234
5235 * etags.c (main) [!ETAGS_REGEXPS]: Do not call free_patterns.
5236
5237 * etags.c (compressor): New struct for compressed files.
5238 (get_compressor_from_suffix): New function.
5239 (get_language_from_suffix): Use it. Also, semantics changed.
5240 (process_file): Consider compressed files, close file.
5241 (find_entries): Use different call arg for get_language_from_suffix,
5242 don't close file.
5243
5244 * etags.c (main): Call free_tree.
5245 (find_entries): Do not free curfile.
5246 (pfnote): Cosmetic change: NULL and '\0' where appropriate.
5247 (prolog_pred, erlang_func, substitute): Cast strlen to int when
5248 comparing.
5249 (canonicalize_filename): Shut up compiler warning.
5250 (Perl_functions): Make tag significant.
5251
5252 1999-11-01 Dave Love <d.love@dl.ac.uk>
5253
5254 * etags.c (longopts, optstring): New option --ignore-case-regex (-c).
5255 (argument_type): New member at_icregexp.
5256 (lc_trans): New global.
5257 (main): Fill lc_trans. Process -c args.
5258 (add_regex): New arg determining whether to use translation table.
5259 (analyse_regex): New arg. Use it for add_regex.
5260
5261 1999-11-01 Francesco Potortì <pot@gnu.org>
5262
5263 * etags.c (init): Cosmetic change: NULL --> '\0'.
5264 (erlang_attribute): Bug corrected (uninitialized variable).
5265 (filename_is_absolute): New function replaces absolutefn macro and
5266 corrects a bug. All callers changed.
5267 (canonicalize_filename): New function.
5268 (process_file, etags_getcwd, absolute_dirname): Use it.
5269 (relative_filename, absolute_filename): Remove var shadowing.
5270 (C_entries, Pascal_functions): Add fake initializations to keep
5271 compilers quiet.
5272 (TeX_functions, Prolog_functions, Erlang_functions): Cleanup.
5273
5274 * etags.c (xrnew): New macro. All callers of xrealloc changed.
5275 (language): New typedef (was struct lang_entry).
5276 (curlang): New global variable.
5277 (node): Typedef renamed from NODE.
5278 (linebuffer): New typedef (was struct linebuffer).
5279 (pattern): New typedef (was struct pattern). Some members added.
5280 Now used as element of a linked list.
5281 (patterns, num_patterns): Global variables deleted.
5282 (p_head): New global variable.
5283 (forced_lang): New global variable (replaces lang_func).
5284 (get_language_from_name, get_language_from_interpreter)
5285 (get_language_from_suffix): Semantics changed. All callers changed.
5286 (last_node): New global variable.
5287 (free_tree, add_node, put_entries, total_size_of_entries):
5288 Change name of local vars to avoid clashes with typedef node.
5289 (number_len): Rewritten for elegance.
5290 (token): New typedef replaces TOKEN.
5291 (analyse_regex, add_regex): Rewritten for new functionality.
5292 (free_patterns): New function called from main and add_regex.
5293 (initbuffer, readline_internal, readline, grow_linebuffer):
5294 Change name of local vars to avoid clashes with typedef linebuffer.
5295 (readline): Rewritten for new functionality.
5296
5297 * etags.c (Scheme_suffixes): New suffix ".ss".
5298 (print_help): --globals is now used for more than C-type languages.
5299 (Perl_functions): Tag global variables ("my" and "local").
5300
5301 * etags.c (print_help): Some messages clarified.
5302 (LOOP_ON_INPUT_LINES): New macro.
5303 (just_read_file, Fortran_functions, Asm_labels, Perl_functions)
5304 (Python_functions, Cobol_paragraphs, Pascal_functions)
5305 (Lisp_functions, Postscript_functions, Scheme_functions)
5306 (TeX_functions, Prolog_functions, Erlang_functions): Use it.
5307 (Cobol_paragraphs, Postscript_functions, TeX_functions)
5308 (Prolog_functions, Erlang_functions): Use a local variable instead
5309 of the global variable dbp.
5310 (Pascal_functions, L_isquote, Scheme_functions): Use GNU coding
5311 standard indentation.
5312
5313 * etags.c (Python_suffixes, lang_names, Python_functions):
5314 Python support.
5315 (skip_spaces, skip_non_spaces): Utility functions.
5316 (find_entries, takeprec, getit, Fortran_functions, Perl_functions)
5317 (Python_functions, L_getit, Lisp_functions, Scheme_functions)
5318 (prolog_pred, erlanf_func, erlang_attribute): Use them.
5319 (eat_white): Delete.
5320
5321 * etags.c (CHAR, init): Keep into account non US-ASCII
5322 characters and compilers with default signed chars.
5323 (L_getit): Tag "(defstruct (foo", "(defun (operator" and similar
5324 constructs.
5325 (C_stab_entry): "interface" in Java behaves like "class".
5326
5327 * etags.c (HAVE_NTGUI) [WINDOWSNT]: #undef if HAVE_CONFIG_H.
5328 (main): Put interval syntax here.
5329 (add_regex): And remove it from here.
5330
5331 * etags.c (suggest_asking_for_help): Provide a
5332 meaningful help message with and without LONG_OPTIONS.
5333
5334 * etags.c (<io.h>) [MSDOS]: Include it, don't include string.h.
5335 <stdlib.h, string.h>: Don't test MSDOS when including them.
5336 (white, nonam, endtk): Like elsewhere, use \r instead of \013.
5337 (put_entries): Correctly use %ld instead of %d in printf.
5338
5339 * etags.c (<unistd.h>) [HAVE_UNISTD_H]: Include conditionally, else
5340 declare getcwd if HAVE_GETCWD.
5341 (consider_token): Dead break instruction removed.
5342
5343 1999-10-19 Paul Eggert <eggert@twinsun.com>
5344
5345 Add support for large files. Merge glibc 2.1.2.
5346
5347 * b2m.c, emacsclient.c, emacsserver.c, fakemail.c, make-docfile.c,
5348 * movemail.c, pop.c:
5349 Do not include <stdlib.h>, as <config.h> does this now.
5350
5351 * b2m.c, emacsserver.c, etags.c, profile.c:
5352 Include <config.h> before any system include files.
5353
5354 * emacsclient.c, emacsserver.c, fakemail.c, movemail.c, pop.c,
5355 * test-distrib.c:
5356 (read, write, open, close): Do not undef.
5357
5358 * getopt.c, getopt1.c: Adopt glibc 2.1.2, with the following fix:
5359 (const): Do not define if HAVE_CONFIG_H; that's config.h's job.
5360
5361 * getopt.h: Adopt glibc 2.1.2.
5362
5363 1999-10-15 Dave Love <fx@gnu.org>
5364
5365 * Makefile.in (pop.o): Depend on config.h.
5366
5367 1999-10-11 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5368
5369 * pop.c: Use "pop3" as the POP service name on all platforms,
5370 instead of using "pop" on Unix and "pop3" on Windows NT. "pop3"
5371 has been the standard service name since RFC 1340 was published in
5372 July 1992, so I think it's safe to start using it by default.
5373
5374 1999-09-27 Dave Love <fx@gnu.org>
5375
5376 * make-docfile.c (scan_lisp_file): Fix typo causing infloop.
5377
5378 1999-09-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5379
5380 * make-docfile.c (scan_lisp_file): Fix previous changes;
5381 swallow CRLF like just CR or just LF.
5382
5383 1999-09-03 Richard Stallman <rms@gnu.org>
5384
5385 * make-docfile.c: Include config.h not ../src/config.h.
5386 (main, fopen, chdir): Add #undef.
5387 (read_c_string, scan_c_file, skip_white, read_lisp_symbol)
5388 (scan_lisp_file): Handle \r like \n.
5389
5390 1999-08-30 Andreas Schwab <schwab@gnu.org>
5391
5392 * make-docfile.c, fakemail.c: Include <stdlib.h> if available.
5393
5394 * emacsserver.c: Include <stdlib.h> if available. Don't declare
5395 errno if it's a macro.
5396
5397 * test-distrib.c: Include <unistd.h> if available.
5398
5399 1999-08-29 Richard Stallman <rms@gnu.org>
5400
5401 * emacsclient.c (print_help_and_exit): Mention --version.
5402
5403 1999-08-25 Richard M. Stallman <rms@gnu.org>
5404
5405 * emacsclient.c (decode_options): Update version output.
5406 (print_help_and_exit): Update bug report address.
5407
5408 1999-08-13 Richard M. Stallman <rms@gnu.org>
5409
5410 * emacsclient.c (main): Move the dynamic allocation of
5411 system_name outside of the SERVER_HOME_DIR conditional.
5412 * emacsserver.c (main): Likewise.
5413
5414 1999-08-10 Gerd Moellmann <gerd@gnu.org>
5415
5416 * grep-changelog: New.
5417 * Makefile.in (INSTALLABLE_SCRIPTS): Add it.
5418
5419 1999-07-12 Richard Stallman <rms@gnu.org>
5420
5421 * Version 20.4 released.
5422
5423 1999-06-30 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
5424
5425 * Makefile.in (clean): Remove fns*.el.
5426
5427 1999-06-23 Dave Love <fx@gnu.org>
5428
5429 * etags.c (erlang_attribute): Fix undefined variable usage (after
5430 Potortì).
5431
5432 1999-05-02 Andrew Innes <andrewi@gnu.org>
5433
5434 * movemail.c (main) [WINDOWSNT]: Call ftruncate, which is now
5435 mapped to _chsize.
5436
5437 1999-04-29 Richard M. Stallman <rms@gnu.org>
5438
5439 * emacsclient.c (main, both versions): Use quote_file_name on cwd.
5440
5441 1999-03-30 Dave Love <fx@gnu.org>
5442
5443 * sorted-doc.c (main): Split up tables. Modify the preamble
5444 somewhat.
5445
5446 1999-03-05 Geoff Voelker <voelker@cs.washington.edu>
5447
5448 * makefile.nt: Remove common multiple file compilation commands.
5449
5450 1999-02-26 Richard Stallman <rms@gnu.org>
5451
5452 * Makefile.in (yow): Depend on epaths.h, not paths.h.
5453
5454 * yow.c: Refer to epaths.h.
5455
5456 1999-02-22 Simon Josefsson <jas@pdc.kth.se>
5457
5458 * emacsserver.c (perror_1, fatal_error): Don't compile unless needed.
5459
5460 1999-01-27 Andrew Innes <andrewi@gnu.org>
5461
5462 * makefile.nt: Do make version comparison as strings.
5463
5464 1999-01-25 Richard Stallman <rms@gnu.org>
5465
5466 * emacsclient.c (xmalloc): Fix previous change.
5467
5468 1999-01-24 Richard M. Stallman <rms@borg.ai.mit.edu>
5469
5470 * emacsclient.c (xmalloc): Declare to return long.
5471
5472 1999-01-22 Geoff Voelker <voelker@cs.washington.edu>
5473
5474 * etags.c (etags_getcwd, absolute_filename) [DOS_NT]: Canonicalize
5475 the case of the drive letter.
5476
5477 1999-01-15 Richard Stallman <rms@psilocin.ai.mit.edu>
5478
5479 * emacsserver.c (main): Eliminate arbitrary limit on
5480 length of system_name.
5481
5482 * emacsclient.c (main): Eliminate arbitrary limit on
5483 length of system_name.
5484 (xmalloc): Define unconditionally.
5485
5486 1999-01-12 Darrin B. Jewell <jewell@mit.edu>
5487
5488 * etags.c (relative_filename): Stop backward search at beginning
5489 of string, since non-Unix systems can have absolute paths with no
5490 initial slash.
5491
5492 1998-12-08 Geoff Voelker <voelker@cs.washington.edu>
5493
5494 * makefile.nt: Do string comparison of _NMAKE_VER.
5495
5496 1998-11-03 Theodore Jump <tjump@cais.com>
5497
5498 * makefile.nt: Compile multiple source files when possible.
5499
5500 1998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
5501
5502 * Makefile.in: Replace tabs with spaces
5503 when they might confuse some Make versions.
5504
5505 1998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
5506
5507 * emacsclient.c (main): Null-terminate system_name.
5508
5509 * emacsserver.c (main): Null-terminate system_name.
5510
5511 1998-09-21 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5512
5513 * movemail.c (popmail, pop_retr) [MAIL_USE_POP]: When displaying
5514 an error message from POP, mention that it's from POP, to
5515 distinguish it from local error messages.
5516
5517 1998-09-04 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5518
5519 * movemail.c [MAIL_USE_POP]: Add the "-r" flag to reverse the
5520 order of messages downloaded from a POP server (e.g., if the
5521 server stores messages in mailboxes in reverse order).
5522
5523 1998-08-19 Richard Stallman <rms@psilocin.ai.mit.edu>
5524
5525 * Version 20.3 released.
5526
5527 1998-08-11 Paul Eggert <eggert@twinsun.com>
5528
5529 * rcs2log: Update copyright date and bug report address.
5530 (initialize_fullname): Prefer getent if available.
5531
5532 1998-07-30 Paul Eggert <eggert@twinsun.com>
5533
5534 * Makefile.in (REGEXPDEPS, regex.o):
5535 Prepend $(srcdir)/ to rule dependencies outside this dir.
5536
5537 1998-06-09 Andrew Innes <andrewi@harlequin.co.uk>
5538
5539 * etags.c (etags_getcwd) [WINDOWSNT]: Use getcwd on Windows.
5540
5541 1998-06-06 Richard Stallman <rms@psilocin.ai.mit.edu>
5542
5543 * Makefile.in: Properly terminate a comment.
5544
5545 1998-06-01 Andrew Innes <andrewi@mescaline.gnu.org>
5546
5547 * movemail.c (sys_wait): Rename to wait.
5548
5549 * ntlib.h: Undefine _WINSOCKAPI_.
5550
5551 * makefile.nt (LOCAL_FLAGS): Define HAVE_CONFIG_H.
5552
5553 1998-05-30 Geoff Voelker <voelker@cs.washington.edu>
5554
5555 * ntlib.c (getppid): Look for EM_PARENT_PROCESS_ID.
5556
5557 1998-05-01 Andrew Innes <andrewi@harlequin.co.uk>
5558
5559 * movemail.c [WINDOWSNT]: Undefine DISABLE_DIRECT_ACCESS.
5560 Force all file i/o to be in binary mode. Include ntlib.h.
5561
5562 1998-04-27 Andreas Schwab <schwab@delysid.gnu.org>
5563
5564 * make-docfile.c: Include <unistd.h> for chdir.
5565
5566 1998-04-25 Richard Stallman <rms@psilocin.gnu.org>
5567
5568 * etags.c (TEX_decode_env): Don't free the value getenv returns.
5569
5570 1998-04-17 Geoff Voelker <voelker@cs.washington.edu>
5571
5572 * makefile.nt (obj): Update with new files in src.
5573 (clean): Delete patch scratch files, optimized compilation dir.
5574
5575 1998-04-08 Dave Love <fx@gnu.org>
5576
5577 * emacsclient.c: Move inclusion of unistd.h to top, else fails on
5578 Irix6, at least.
5579
5580 1998-04-06 Andreas Schwab <schwab@gnu.org>
5581
5582 Silence -Wimplicit:
5583 * movemail.c: Move cancelations up. Include <stdlib.h> if
5584 available.
5585 * fakemail.c (_XOPEN_SOURCE): Define for declaration of cuserid.
5586 (parse_header): Explicitly declare return type.
5587 * emacsserver.c: Include <unistd.h> if available.
5588 (main, handle_signals, perror_1, fatal_error): Explicitly declare
5589 return types. Add forward declarations.
5590 * emacsclient.c: Include <stdlib.h> and <unistd.h> if available.
5591 Don't declare geteuid.
5592 (print_help_and_exit): Change return type to void.
5593 Forward declare it.
5594 * b2m.c: Include <stdlib.h> if available.
5595 (main): Explicitly declare return type.
5596
5597 1998-04-03 Richard Stallman <rms@psilocin.gnu.org>
5598
5599 * etags.c (put_entries): Use %ld.
5600
5601 * b2m.c (fatal): Declare the arg.
5602
5603 1998-03-26 Richard Stallman <rms@psilocin.gnu.org>
5604
5605 * pop.c (pop_getline): Rename from getline.
5606
5607 1998-03-05 Richard Stallman <rms@psilocin.gnu.org>
5608
5609 * Makefile.in (install): Use INSTALL_STRIP with INSTALL_PROGRAM
5610 for the utilities.
5611
5612 1998-01-23 Dave Love <d.love@dl.ac.uk>
5613
5614 * etags.c (getit, Cobol_paragraphs, Pascal_functions,
5615 Postscript_functions, prolog_pred, erlang_func, erlang_attribute):
5616 Always make named tags.
5617 (Fortran_functions): Grok BLOCK DATA.
5618
5619 1998-01-23 Andreas Schwab <schwab@gnu.org>
5620
5621 * movemail.c (main): Fix interwoven brace and cpp conditional
5622 nesting.
5623
5624 1997-12-03 Paul Eggert <eggert@delysid.gnu.org>
5625
5626 * movemail.c (mbx_write) [MAIL_USE_POP]: Disable the code which quotes
5627 with a '>' any lines starting with "From " read from the POP server,
5628 but leave the code in place, wrapped in #ifdef
5629 MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later
5630 because it turns out that something is depending on it.
5631 Change suggested by Paul Eggert <eggert@twinsun.com>.
5632 Convert the character \037 (^_) at the beginning of a line into
5633 the character '^' followed by the character '_', because otherwise
5634 Emacs can't parse the resulting file as a valid BABYL file.
5635 Change suggested by Paul Eggert <eggert@twinsun.com>.
5636
5637 1997-12-03 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5638
5639 * movemail.c, pop.c, pop.h: Allow messages retrieved from the POP
5640 server to contain embedded nulls.
5641
5642 1997-12-02 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5643
5644 * movemail.c (mbx_write) [MAIL_USE_POP]: Disable the code which
5645 quotes with a '>' any lines starting with "From " read from the
5646 POP server, but leave the code in place, wrapped in #ifdef
5647 MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later
5648 because it turns out that something is depending on it.
5649 Change suggested by Paul Eggert <eggert@twinsun.com>.
5650
5651 Convert the character \037 (^_) at the beginning of a line into
5652 the character '^' followed by the character '_', because otherwise
5653 Emacs can't parse the resulting file as a valid BABYL file.
5654 Change suggested by Paul Eggert <eggert@twinsun.com>.
5655
5656 1997-11-22 Richard Stallman <rms@gnu.org>
5657
5658 * b2m.c: Include getopt.h.
5659 (main): Use getopt_long to handle --version and --help.
5660
5661 * Makefile.in (b2m): Define VERSION. Link with $(GETOPTOBJS).
5662
5663 1997-10-31 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5664
5665 * pop.c (fullwrite): Get rid of an extra call to write.
5666 Problem pointed out by Chiaki Ishikawa.
5667
5668 1997-10-16 Dave Love <d.love@dl.ac.uk>
5669
5670 * etags.c (L_getit): Always make named tags so that Emacs
5671 completion on symbols containing `:' etc. works.
5672 (get_scheme): Likewise.
5673
5674 1997-09-24 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5675
5676 * pop.c: Use system header files instead of declaring C-library
5677 functions explicitly.
5678
5679 1997-09-19 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5680
5681 * Version 20.2 released.
5682
5683 1997-09-15 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5684
5685 * Version 20.1 released.
5686
5687 1997-09-02 Andrew Innes <andrewi@harlequin.co.uk>
5688
5689 * makefile.nt (movemail.exe): Link wsock32.lib before LIBS.
5690
5691 * ntlib.c (getpid): Delete function.
5692
5693 1997-08-28 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5694
5695 * make-docfile.c (scan_lisp_file): Handle custom-declare-variable.
5696
5697 1997-08-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5698
5699 * emacsclient.c [HAVE_SYSVIPC]: Include errno.h, as in the other case.
5700 (main) [!BSD_SYSTEM]: Fix error message for getcwd failure.
5701
5702 1997-08-14 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5703
5704 * emacsserver.c (main): Use SOCKLEN_TYPE for fromlen, if it is defined.
5705
5706 1997-08-13 Kazushi (Jam) Marukawa <jam@poboxes.com>
5707
5708 * profile.c (get_time): Cast arg to fprintf.
5709
5710 * hexl.c (main): Use %08lx instead of %08x in printf because the
5711 variable named addresses is long.
5712
5713 1997-08-08 Geoff Voelker <voelker@cs.washington.edu>
5714
5715 * makefile.nt (lisp): Update paths to lisp files that have moved.
5716
5717 1997-08-08 Andrew Innes <andrewi@harlequin.co.uk>
5718
5719 * makefile.nt (ctags.obj): New target.
5720 (etags.obj, getopt.obj, make-docfile.obj): Update dependencies.
5721
5722 * ntlib.h: Add includes.
5723 Undo definitions of crt routines from config.h.
5724
5725 1997-08-06 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5726
5727 * etags.c (Yacc_suffixes, Asm_suffixes): Add some alternatives.
5728
5729 1997-07-22 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5730
5731 * pop.c: Support auto-configuration of both Kerberos V4 and
5732 Kerberos V5 for movemail, including detection of V4 and V5 header
5733 files and libraries.
5734 Include <string.h> when STDC_HEADERS is defined, to get
5735 declarations of string functions.
5736 [KERBEROS5] (socket_connection): Support the current MIT Kerberos
5737 V5 API rather than the old one.
5738 [KERBEROS] (socket_connection): Change a constant name from
5739 SOCKET_ERROR to POP_SOCKET_ERROR to avoid a namespace conflict
5740 with a constant in a header file.
5741
5742 * Makefile.in: Support auto-configuration of both Kerberos V4 and
5743 Kerberos V5 for movemail, including detection of V4 and V5 header
5744 files and libraries.
5745
5746 1997-07-17 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5747
5748 * fakemail.c [HAVE_UNISTD_H]: Include unistd.h.
5749
5750 * etags.c [HAVE_UNISTD_H]: Include unistd.h.
5751
5752 1997-07-09 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5753
5754 * emacsclient.c [C_ALLOCA] (xmalloc): New function.
5755
5756 1997-07-04 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5757
5758 * movemail.c (rindex): Add declaration.
5759
5760 1997-07-01 Geoff Voelker <voelker@cs.washington.edu>
5761
5762 * makefile.nt (GETOPTOBJS, GETOPTDEFS, MOVEMAILOBJS): Define.
5763 (movemail.exe): Depend upon and link with getopt files.
5764 (obj): Include new source files.
5765 (FACE_SUPPORT, MOUSE_SUPPORT, FLOAT_SUPPORT, WINNT_SUPPORT): Define.
5766 (lisp): Include new and reorganized elisp files.
5767
5768 1997-06-27 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5769
5770 * Makefile.in (blessmail): Find blessmail.el in mail subdirectory.
5771
5772 1997-06-25 Paul Eggert <eggert@twinsun.com>
5773
5774 * rcs2log: Don't assign to $0 in awk; some awks don't allow this.
5775
5776 1997-06-14 Karl Heuer <kwzh@gnu.ai.mit.edu>
5777
5778 * b2m.c (readline): Terminate buffer properly when EOF seen.
5779 Test for valid pointer before dereferencing it.
5780
5781 1997-05-30 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5782
5783 * Makefile.in (etags): Remove -DETAGS_REGEXPS, because now it is
5784 defined inside etags.c if HAVE_CONFIG_H is defined.
5785
5786 1997-05-29 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5787
5788 * etags.c (logical): Type name changed to bool.
5789 (ETAGS_REGEXPS, LONG_OPTIONS) [HAVE_CONFIG_H]: #define them.
5790 (<getopt.h>) [LONG_OPTIONS]: Include conditionally.
5791 (getopt_long) [!LONG_OPTIONS]: Redefine as macro.
5792 (main): Accepted options depend on ETAGS_REGEXPS and LONG_OPTIONS.
5793 (longopts): New long options without short counterpart are
5794 globals, members, no-globals, no-members. Regexp options are now
5795 defined conditionally to ETAGS_REGEXPS.
5796 (print_help): Update.
5797
5798 1997-05-22 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5799
5800 * etags.c (C_entries): Use "." instead of "::" for Java.
5801 (consider_token): is_func renamed to is_func_or_var.
5802 (C_entries): is_func renamed to funorvar.
5803 (C_entries): Initialize tok.named.
5804 (sym_type, C_stab_entry, consider_token): st_C_ignore is used to
5805 get rid of "import", "package" and "friend".
5806 (fvdef): Rename from funcdef. Also some constants renamed.
5807 All users changed.
5808 (C_entries): Make separate tags for variables separated by comma.
5809 (globals, members): New flags.
5810 (main, C_entries): Use them.
5811 (make_C_tag, C_entries): Make tok a global variable.
5812
5813 1997-05-16 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5814
5815 * etags.c (funcdef): New vignore constant.
5816 (consider_token, C_entries): Use it to tag global variables.
5817 (print_help): Update for global variables.
5818 (consider_token, C_entries): Set the len member of token_name.
5819 (prolog_pred): Cleanup according to GNU coding standards.
5820 (Cobol_suffixes, lang_names, Cobol_paragraphs): Cobol support.
5821 (prolog_white, erlang_white): Rename to eat_white, callers changed.
5822
5823 1997-05-15 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5824
5825 * etags.c (CHARS, CHAR): New constant and macro.
5826 (iswhite, begtoken, intoken, endtoken): Use them.
5827 (notinname, _nin, nonam): New macro, array, string.
5828 (init): Cleanup and init _nin.
5829 (new_pfnote): New function.
5830 (make_C_tag) [traditional_tag_style]: Use it.
5831 (traditional_tag_style): Constant set to TRUE for now.
5832
5833 1997-05-14 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5834
5835 * etags.c (C_entries, Pascal_functions): Cleanup.
5836 (TeX_functions): NULL as a function arg needs a cast.
5837 (Erlang_functions, erlang_func, erlang_attribute): Cleanup.
5838
5839 1997-05-13 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5840
5841 * etags.c (TeX_functions): Cleaned up.
5842 (tex_getit): Remove.
5843
5844 1997-05-13 Paul Eggert <eggert@twinsun.com>
5845
5846 * rcs2log (files): When computing arguments automatically, ignore
5847 non-files within the RCS subdirectory.
5848
5849 1997-05-13 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5850
5851 * etags.c (C_JAVA): New #define.
5852 (Cjava_suffixes): .java is Java.
5853 (Cjava_entries): New function.
5854 (lang_names): Add Java.
5855 (sym_type): Add st_C_javastruct for Java.
5856 (C_stab_entry): Add `extends' and `implements' keywords.
5857 (consider_token, C_entries): Recognize Java structures.
5858
5859 1997-05-12 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5860
5861 * etags.c (Cplusplus_suffixes): .pdb is PostScript with C syntax.
5862 (Postscript_suffixes): .ps is PostScript.
5863 (lang_names): Add postscript.
5864 (Postscript_functions): New function.
5865 (TEX_decode_env): Close minor memory leak.
5866 (just_read_file): Correct the char number of the tag.
5867
5868 1997-05-11 Paul Eggert <eggert@twinsun.com>
5869
5870 * rcs2log (loginFullnameMailaddrs, logins, rlog_options, files):
5871 Don't prepend $nl since this causes some shells to generate the
5872 empty string when IFS is $nl.
5873 (printlogline): Use SOH (octal code 1), not CR, since some
5874 PC-based shells mishandle CR.
5875 (initialize_fullname): Set NIS_PATH to the empty string before invoking
5876 nismatch, in case it's set to some nonstandard value.
5877
5878 1997-05-06 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5879
5880 * pop.c (getline): Don't miss CRLF pairs when the CR and LF are
5881 read in separate blocks.
5882
5883 1997-04-30 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5884
5885 * etags.c [TeX_named_tokens]: Set to FALSE if undefined.
5886 (struct linebuffer): New member `len' is the length of the string.
5887 (find_entries, Pascal_functions, TeX_functions, TEX_getit):
5888 Use it instead of strlen.
5889 (TEX_getit): Declare and define unconditionally as static.
5890 (TeX_functions): Use if instead of #if TeX_named_tokens.
5891 (add_regex): Set RE_INTERVALS flag for regex compilation.
5892 (substitute): Code cleanup.
5893 (readline_internal): Code cleanup, set new member `len'.
5894 (readline): Bug corrected.
5895
5896 1997-04-23 Geoff Voelker <voelker@cs.washington.edu>
5897
5898 * makefile.nt: Change references of windowsnt.h to ms-w32.h.
5899 (obj): Change references of nt*.c files to w32*.c files.
5900
5901 1997-04-15 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5902
5903 * etags.c (xnew): Add support for debugging with chkmalloc.
5904 (error): Use this instead of printf whenever possible.
5905 (main): Only call xnew after having initialized progname.
5906 (substitute): Bad memory corruption error corrected.
5907
5908 1997-04-08 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5909
5910 * etags.c (add_regex): Undo previous change.
5911 (relative_filename): Small memory leak closed.
5912 (absolute_filename): Cleaned up the code, possibly closing a bug.
5913 (absolute_dirname): Always return a newly allocated string.
5914
5915 1997-03-21 Paul Eggert <eggert@twinsun.com>
5916
5917 * rcs2log (files): Ignore files in RCS directory whose names are
5918 of the form ,*, or *_; they are probably RCS lock files.
5919 Also, ignore files named .rcsfreeze.log or .rcsfreeze.ver;
5920 they are used by rcsfreeze.
5921
5922 1997-03-14 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5923
5924 * etags.c (add_regex): Reset *putbuf before using it.
5925
5926 1997-02-23 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5927
5928 * movemail.c (popmail): Remove some unnecessary function
5929 declarations.
5930 (popmail, pop_retr): Since popmail always passes mbx_write and mbf
5931 into pop_retr, there's no reason to pass in mbx_write, and the
5932 file argument can be declared FILE * explicitly. This fixes a
5933 compilation problem on systems with 64-bit pointers.
5934
5935 1997-02-13 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
5936
5937 * movemail.c: Delete duplicate inclusion of fcntl.h
5938 and duplicate #undefs of open, read, write, close.
5939
5940 1997-01-20 Jonathan I. Kamens <jik@kamens.brookline.ma.us>
5941
5942 * movemail.c (main): Do not display "[POP-password]" in the usage
5943 message when movemail is compiled without POP support.
5944 (main, popmail): Add the optional "-p" argument, which causes
5945 movemail to leave mail in the inbox after copying it into the
5946 output file.
5947
5948 * Makefile.in (movemail): Link with getopt.
5949
5950 1997-01-20 Paul Eggert <eggert@twinsun.com>
5951
5952 * rcs2log (--help, --version): New options, per GNU coding standards.
5953 (Copyright, Help, Id): New variables, for above.
5954 (rlog): Use -q option with cvs log, to avoid useless chatter.
5955
5956 Treat logs of "Initial revision" (RCS) or "file F was initially added
5957 on branch B." (CVS) as if they said "New file.", for consistency with
5958 change log entries.
5959
5960 1997-01-01 Paul Eggert <eggert@twinsun.com>
5961
5962 * vcdiff (PATH): Add /usr/xpg4/bin,
5963 where XPG4 SCCS hangs out in Solaris 2.5.
5964 (sid1): Don't use bare -r, since XPG4 `get' does not allow it.
5965
5966 1996-12-19 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
5967
5968 * etags.c (streq, strneq): Use == NULL rather than !.
5969
5970 1996-12-18 Jonathan I. Kamens <jik@annex-1-slip-jik.cam.ov.com>
5971
5972 * Makefile.in (LIBMAIL): New macro. Conditionally includes -lmail.
5973 (movemail): Use LIBMAIL, to link against -lmail.
5974
5975 * movemail.c: Include maillock.h (conditionally).
5976 Remove a redundant inclusion of <stdio.h>.
5977 (MAIL_USE_MAILLOCK): New macro, conditionally defined.
5978 (main): Add variable spool_name.
5979 Support the usage of maillock and mailunlock to
5980 lock and unlock mailboxes.
5981 (mail_spool_name): New function.
5982
5983 * movemail.c: Fix an uninitialized variable which could cause
5984 movemail to exit with an error status incorrectly on systems which
5985 use lock files rather than a system locking function to lock
5986 mailboxes.
5987
5988 1996-12-16 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
5989
5990 * pop.c (socket_connection): Free realhost after using it.
5991
5992 1996-12-04 Francesco Potortì <F.Potorti@cnuce.cnr.it>
5993
5994 * etags.c (C_entries): Test tok.valid. This handles some
5995 particular cases involving function declarations that failed.
5996
5997 1996-11-22 Charles Hannum <mycroft@gnu.ai.mit.edu>
5998
5999 * pop.c (socket_connection):
6000 gethostbyname may return a pointer to static data.
6001 krb_realmofhost can clobber it. So copy it.
6002
6003 1996-11-14 Francesco Potortì <F.Potorti@cnuce.cnr.it>
6004
6005 * etags.c (pfnote, fatal, error): Callers using a NULL pointer
6006 must cast it to (char *) because we have no prototypes.
6007 (make_C_tag): Macro deleted, new function.
6008 (C_entries): Calls to make_C_tag macro changed to call function.
6009
6010 1996-11-13 Francesco Potortì <F.Potorti@cnuce.cnr.it>
6011
6012 * etags.c (grow_linebuffer): New function.
6013 (GROW_LINEBUFFER): Macro deleted. All callers changed.
6014 (make_tag): Macro renamed to make_C_tag. All callers changed.
6015 (<stdlib.h>, <string.h>) [STDC_HEADERS]: New #include's.
6016 (Prolog_functions): prolog_skip_comment was called with wrong
6017 number of arguments.
6018 (xrealloc): fatal was called with wrong number of arguments.
6019
6020 1996-11-08 Francesco Potortì <F.Potorti@cnuce.cnr.it>
6021
6022 * etags.c (relative_filename): Bug corrected.
6023 (etags_getcwd): Avoid warning of unused variable.
6024 (C_entries, consider_token): Add support for enum labels.
6025
6026 1996-11-03 Paul Eggert <eggert@twinsun.com>
6027
6028 * rcs2log: When processing cvs log output, remove `Attic/' from
6029 repository file names.
6030
6031 1996-10-22 Karl Heuer <kwzh@gnu.ai.mit.edu>
6032
6033 * emacsserver.c: Fix 1996-09-02 change.
6034
6035 1996-10-12 Paul Eggert <eggert@twinsun.com>
6036
6037 * rcs2log (rlog_options): Look for ' option' rather than 'unknown
6038 option', since CVS says 'invalid option'.
6039 (datearg): Use the empty string, not '-d>1970-01-01', to extract all
6040 revisions, since some hosts reject 1970-01-01 when east of UTC.
6041 (date): Remove.
6042
6043 1996-10-06 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
6044
6045 * etags.c (etags_getcwd) [WINDOWSNT]: Convert backslashes to slashes.
6046
6047 1996-10-02 Francesco Potortì <F.Potorti@cnuce.cnr.it>
6048
6049 * etags.c (print_version): Print copyright info.
6050
6051 * etags.c (print_help): Print the bug reporting address.
6052 (main): Use return as the last instruction, instead of exit.
6053
6054 * etags.c (main): Don't open the tags file in cxref mode.
6055
6056 1996-09-29 Dave Love <d.love@dl.ac.uk>
6057
6058 * rcs2log (date): Make default format acceptable to CVS post v1.8
6059 as well as earlier CVSs and RCS.
6060
6061 1996-09-29 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
6062
6063 * movemail.c (main): If the lock call fails with EBUSY or
6064 EAGAIN, retry a few times.
6065
6066 1996-09-25 Paul Eggert <eggert@twinsun.com>
6067
6068 * rcs2log (rlog_options): Use $rlog, not rlog, when deciding
6069 whether to append -zLT.
6070
6071 1996-09-16 Karl Heuer <kwzh@gnu.ai.mit.edu>
6072
6073 * fakemail.c: Replaced symbol BSD with BSD_SYSTEM.
6074 * emacsclient.c, movemail.c: Likewise.
6075
6076 1996-09-09 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
6077
6078 * emacsclient.c (longopts): Change nowait to no-wait.
6079 (print_help_and_exit): Fix option name; upcase metavars.
6080
6081 1996-09-06 Erik Naggum <erik@naggum.no>
6082
6083 * emacsserver.c (main): Declare `fromlen' as size_t.
6084
6085 1996-09-02 Eli Zaretskii <eliz@is.elta.co.il>
6086
6087 * etags.c (etags_getcwd): Use getcwd if available even if MSDOS.
6088
6089 1996-09-02 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
6090
6091 * emacsclient.c (quote_file_name): Quote with &, not \.
6092 Quote `-' only at start of file name. Terminate the value string.
6093
6094 * emacsserver.c: Include signal.h properly;
6095 delete the duplicate includes for it.
6096
6097 * emacsserver.c: On fatal signal, delete socket-file:
6098 * emacsserver.c: Include signal.h.
6099 (xmalloc, fatal, error): New functions.
6100 (delete_socket, handle_signals): New functions.
6101 (progname, socket_name): New variables.
6102 [HAVE_SOCKETS] (main): Call handle_signals; set the new variables.
6103
6104 1996-09-01 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
6105
6106 * emacsclient.c (quote_file_name): New function.
6107 (main, both versions): Use quote_file_name.
6108 (decode_options): Don't return a value.
6109 (main, both versions): Use optind.
6110 Don't check for -nowait here.
6111
6112 * emacsclient.c (decode_options): New function.
6113 (main, both versions): Call decode_options.
6114 (print_help_and_exit): New function.
6115 (VERSION): New macro.
6116
6117 * Makefile.in (emacsclient): Link with getopt.
6118 Add -DVERSION so emacsclient knows its version number.
6119
6120 1996-08-31 Geoff Voelker <voelker@cs.washington.edu>
6121
6122 * makefile.nt (lisp): Include dos-nt.elc.
6123
6124 1996-08-31 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
6125
6126 * Makefile.in (blessmail): Use $srcdir to find blessmail.el.
6127
6128 1996-08-28 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
6129
6130 * emacsclient.c (both versions): Handle -nowait and --nowait
6131 by sending data to the server.
6132
6133 1996-08-26 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
6134
6135 * Makefile.in (INSTALL_STRIP): New variable.
6136 (${archlibdir}): Use INSTALL_STRIP.
6137
6138 * Makefile.in (MOVE_LIBS): Use conditionals on KERBEROS,
6139 HAVE_LIBKRB, HAVE_LIBDES, HAVE_LIBCOM_ERR to set it up.
6140
6141 * pop.c: Reverse conditional in previous change.
6142
6143 1996-08-24 Richard Stallman <rms@ethanol.gnu.ai.mit.edu>
6144
6145 * pop.c: Include des.h krb.h with no dir name if SOLARIS2.
6146
6147 1996-08-24 Paul Eggert <eggert@twinsun.com>
6148
6149 * rcs2log: Use ISO 8601 date format, with time zone appended
6150 if change-log-time-zone-rule is non-nil, instead of
6151 traditional Unix date format.
6152
6153 (datearg): When computing default from ChangeLog, handle ISO format
6154 dates in addition to old-fashioned dates from Emacs 19.31 and earlier.
6155 Don't worry about hh:mm:ss since the resolution is now by day.
6156 Use empty datearg, not empty rlog_options, to decide whether to pass
6157 "$datearg" option to $rlog.
6158 (logTZ): New variable, set to TZ specified by change-log-time-zone-rule.
6159 (month_data): Remove `mo'; no longer needed.
6160 (rlog_options): Use -zLT for localtime output, if `rlog' supports it.
6161
6162 Match `revision' line of rlog output more accurately.
6163
6164 Add -c, -v options.
6165
6166 1996-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6167
6168 * hexl.c: Include <config.h>, so DOS_NT is defined on MSDOS.
6169
6170 1996-08-11 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
6171
6172 * Version 19.33 released.
6173
6174 1996-07-31 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
6175
6176 * Version 19.32 released.
6177
6178 1996-07-23 Andrew Innes <andrewi@harlequin.co.uk>
6179
6180 * etags.c (readline_internal) [DOS_NT]: Don't include CRs when
6181 computing character positions in source files.
6182
6183 1996-07-16 Andrew Innes <andrewi@harlequin.co.uk>
6184
6185 * makefile.nt (clean): Use OBJDIR macro.
6186
6187 1996-07-16 Karl Heuer <kwzh@gnu.ai.mit.edu>
6188
6189 * cvtmail.c, sorted-doc.c, yow.c, emacsserver.c: Undo previous change.
6190
6191 1996-07-15 David Mosberger-Tang <davidm@AZStarNet.com>
6192
6193 * cvtmail.c, sorted-doc.c, yow.c [__GNU_LIBRARY__]: Use <string.h>.
6194 * emacsserver.c (main) [__GNU_LIBRARY__]: Use size_t for fromlen.
6195 * etags.c, fakemail.c, profile.c: Declare main as int, not void.
6196
6197 1996-07-15 Andrew Innes <andrewi@harlequin.co.uk>
6198
6199 * ntlib.h: Correct return type of getwd.
6200 * ntlib.c (getwd): Correct return type.
6201
6202 1996-07-02 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
6203
6204 * emacsserver.c (main) [HAVE_SOCKETS]: Call rewind before writing
6205 to infile.
6206
6207 1996-07-01 Andrew Innes <andrewi@harlequin.co.uk>
6208
6209 * makefile.nt: Remove all references to wakeup.
6210
6211 1996-06-28 Francesco Potortì <F.Potorti@cnuce.cnr.it>
6212
6213 * etags.c (C_stab_entry): New keywords for C++ namespace, bool,
6214 explicit, mutable, typename.
6215
6216 1996-06-29 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
6217
6218 * emacsclient.c (main) [HAVE_SOCKETS]: Use two separate stdio
6219 streams, one for sending and one for reading the reply.
6220
6221 1996-06-21 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
6222
6223 * Makefile.in (timer, timer.o, getdate.o, $(srcdir)/getdate.c)
6224 (wakeup): Target deleted.
6225 (UTILITIES): Delete wakeup and timer.
6226
6227 * wakeup.c, timer.c, getdate.y, getdate.c: Files deleted.
6228
6229 1996-06-11 Geoff Voelker <voelker@cs.washington.edu>
6230
6231 * etags.c (etags_getcwd) [DOS_NT]: Change conditional to MSDOS only.
6232 * makefile.nt (ETAGS_CFLAGS): Define HAVE_GETCWD macro.
6233
6234 1996-06-06 Richard Stallman <rms@psilocin.gnu.ai.mit.edu>
6235
6236 * etags.c (main): Copy cwd when appending slash.
6237
6238 1996-05-25 Karl Heuer <kwzh@gnu.ai.mit.edu>
6239
6240 * Version 19.31 released.
6241
6242 1996-05-17 Francesco Potortì <F.Potorti@cnuce.cnr.it>
6243
6244 * etags.c (CNL_SAVE_DEFINEDEF): Set linecharno for use by readline.
6245 (Pascal_functions): Increase linecharno by the correct number of
6246 chars, inline the GET_NEW_LINE macro and delete its definition.
6247
6248 1996-05-03 Andrew Innes <andrewi@harlequin.co.uk>
6249
6250 * makefile.nt (OBJDIR, BLD): Remove macro definitions.
6251
6252 1996-05-03 Andrew Innes <andrewi@harlequin.co.uk>
6253
6254 * makefile.nt (LOCAL_FLAGS): Include path to NT shadow includes.
6255 (movemail.exe, fakemail.exe): Now built under Win32.o.
6256
6257 * ntlib.c: Include ntlib.h.
6258 (nt_sleep): Rename to sleep.
6259 (getwd): Return directory.
6260 (getlogin, cuserid, getuid, setuid, getpwuid, getpass, fchown,
6261 sys_ctime, sys_fopen): New functions.
6262
6263 * ntlib.h: New file.
6264
6265 1996-04-29 Richard Stallman <rms@delasyd.gnu.ai.mit.edu>
6266
6267 * pop.c (SEND, RECV): Rename from send, recv.
6268 (pop_open, pop_trash): Make the trash_started code unconditional.
6269 (socket_connection): Delete casts to void.
6270
6271 1996-04-28 Richard Stallman <rms@delasyd.gnu.ai.mit.edu>
6272
6273 * movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
6274 Definitions copied from lisp.h.
6275
6276 1996-04-22 Andrew Innes <andrewi@harlequin.co.uk>
6277
6278 * fakemail.c [WINDOWSNT]: Include ntlib.h.
6279
6280 * hexl.c [DOSNT]: Include fcntl.h.
6281 [WINDOWSNT]: Include io.h.
6282 (main) [MSDOS]: Change conditional to DOS_NT.
6283
6284 * movemail.c (access, unlink) [WINDOWSNT]: Macros undefined.
6285 (fork, syswait, DISABLE_DIRECT_ACCESS) [WINDOWSNT]: Macros defined.
6286 [WINDOWSNT]: Include locking.h.
6287 (main): Update usage message. Use IS_DIRECTORY_SEP.
6288 (main) [DISABLE_DIRECT_ACCESS]: Don't check access if defined.
6289 (main) [WINDOWSNT]: Invoke locking instead of flock.
6290 (main) [MAIL_USE_SYSTEM_LOCK && WINDOWSNT]: Emulate ftruncate.
6291 (main) [MAIL_USE_POP]: Pass password to popmail if used.
6292 Include winsock.h; don't include unix inet headers.
6293 (popmail): Add password argument and pass it to pop_open.
6294 Open output file in binary mode.
6295
6296 * pop.c [WINDOWSNT]: Include winsock.h and ntlib.h.
6297 Macro SOCKET_ERROR undefined.
6298 Don't declare h_errno.
6299 [!WINDOWSNT]: Define macros recv and send.
6300 [!WINDOWSNT] (POP_SERVICE): Change to pop3.
6301 (pop_open) [WINDOWSNT]: Initialize trash_started.
6302 (have_winsock) [WINDOWSNT]: New variable.
6303 (socket_connection) [WINDOWSNT]: Initialize winsock.
6304 (socket_connection): Use closesocket instead of close.
6305 (getline): Use recv instead of read.
6306 (fullwrite): Use send instead of write.
6307 (pop_trash): Use closesocket instead of close.
6308 (pop_trash) [WINDOWSNT]: Cleanup winsock.
6309 Check if being called recursively by sendline.
6310
6311 * pop.h (struct _popserver): New field trash_started.
6312
6313 * wakeup.c [HAVE_CONFIG_H]: Only include config.h when defined.
6314
6315 1996-04-14 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6316
6317 * hexl.c (main) [DJGPP v2]: Don't change to binary for a tty.
6318
6319 1996-04-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6320
6321 * etags.c [WINDOWSNT]: Include io.h.
6322
6323 1996-04-10 Geoff Voelker <voelker@cs.washington.edu>
6324
6325 * makefile.nt (CTAGSOBJ): Compile with regexp support.
6326
6327 1996-04-09 Eli Zaretskii <eliz@is.elta.co.il>
6328
6329 * hexl.c [DJGPP v2]: Include io.h.
6330 (main) [DJGPP v2]: Switch standard streams to binary with setmode.
6331
6332 * b2m.c (main) [MSDOS]: Switch standard streams to binary under
6333 DJGPP v2.
6334
6335 1996-04-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6336
6337 * etags.c (absolute_filename): Use absolutefn.
6338
6339 1996-03-31 Eli Zaretskii <eliz@is.elta.co.il>
6340
6341 * etags.c (absolutefn) [DOS_NT]: Support Novell drives whose drive
6342 letter isn't an alphabetic character.
6343 (main) [DOS_NT]: Use binary mode on redirected `stdout'.
6344 (process_file) [DOS_NT]: Convert all slashes to forward style.
6345 (absolute_filename) [DOS_NT]: Emit error message for relative
6346 paths with a drive letter.
6347 (absolute_filename) [DOS_NT]: Handle absolute pathnames with
6348 DOS/NT drive letters which try to reference the parent of the root.
6349 (absolute_dirname) [DOS_NT]: Convert all slashes to forward style.
6350
6351 1996-03-27 Geoff Voelker <voelker@cs.washington.edu>
6352
6353 * makefile.nt: Change uses of del to $(DEL).
6354
6355 1996-03-22 Francesco Potortì <F.Potorti@cnuce.cnr.it>
6356
6357 * etags.c (just_read_file): Reset lineno and charno on entry.
6358
6359 1996-03-15 Anders Lindgren <andersl@csd.uu.se>
6360
6361 * etags.c: Prolog language totally rewritten.
6362 (Prolog_functions): Rewritten from scratch.
6363 (skip_comment, prolog_getit): Remove.
6364 (prolog_skip_comment): New function, like old skip_comment.
6365 (prolog_pred, prolog_atom, prolog_white): New functions.
6366 (erlang_func, erlang_attributes): Forward declarations added.
6367 (erlang_atom): Check if backslash ends line inside quoted atom.
6368
6369 1996-03-14 Francesco Potortì <F.Potorti@cnuce.cnr.it>
6370
6371 * etags.c (absolutefn): DOS_NT version corrected.
6372 (main): Append "/" to the dir name only if not already there.
6373 (print_help): Explain the absolute/relative file name issue.
6374
6375 1996-03-08 Anders Lindgren <andersl@csd.uu.se>
6376
6377 * etags.c: New Language Erlang added.
6378 (Erlang_functions, erlang_func, erlang_attribute, erlang_atom)
6379 (erlang_white): New functions.
6380 (Erlang_suffixes): New suffix list.
6381 (lang_names): Erlang entry added.
6382 (prolog_getit): Accepts headers spanning several lines.
6383 Always name tags.
6384 (Prolog_functions): Remove incorrect compensation for
6385 newline characters.
6386 (readline_internal): Zero-terminate last line.
6387
6388 1996-03-20 Mike Long <mike.long@analog.com>
6389
6390 * b2m.c (main): Initialize progname variable before using it.
6391 Quote `username' in From_ header.
6392
6393 1996-03-18 Geoff Voelker <voelker@cs.washington.edu>
6394
6395 * ntlib.c (getpid): New function.
6396
6397 1996-02-21 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
6398
6399 * emacsclient.c (main, both definitions):
6400 Print a newline for normal termination.
6401
6402 1996-02-21 Noah Friedman <friedman@prep.ai.mit.edu>
6403
6404 * tcp.c (main): Convert port to network byte order.
6405
6406 1996-01-20 Karl Heuer <kwzh@gnu.ai.mit.edu>
6407
6408 * pop.c (pop_retrieve, getline): Avoid type clashes.
6409
6410 1996-01-19 Karl Heuer <kwzh@gnu.ai.mit.edu>
6411
6412 * etags.c (enum sym_type, anonymous enum): Delete final comma.
6413
6414 1996-01-15 Paul Eggert <eggert@twinsun.com>
6415
6416 * rcs2log (initialize_fullname): Add support for NIS+.
6417 (hostname): Fully qualify the default hostname with the domainname
6418 if the hostname lacks a `.'.
6419
6420 1996-01-10 Karl Heuer <kwzh@gnu.ai.mit.edu>
6421
6422 * etags.c (consider_token): Fix typo in expression.
6423
6424 1996-01-04 Paul Eggert <eggert@twinsun.com>
6425
6426 * etags.c (substitute): Fix spelling in message.
6427
6428 1996-01-03 George V. Reilly <georger@microcrafts.com>
6429
6430 * makefile.nt (etags, ctags): Compile with regexp support.
6431 (make-docfile, wakeup, etags, ctags, hexl): Ensure build
6432 subdirectory exists before compiling.
6433
6434 1996-01-02 Karl Heuer <kwzh@gnu.ai.mit.edu>
6435
6436 * emacsserver.c (main): Do chmod based on existing permission.
6437
6438 1995-12-27 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6439
6440 * Makefile.in (install): Turn on read/execute permission.
6441
6442 1995-12-03 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
6443
6444 * Makefile.in (LIB_STANDARD_LIBSRC): Use this instead of LIB_STANDARD.
6445 (LOADLIBES): Use LIB_STANDARD_LIBSRC.
6446
6447 1995-12-01 Richard Stallman <rms@whiz-bang.gnu.ai.mit.edu>
6448
6449 * Makefile.in (THIS_IS_MAKEFILE): Rename from THIS_IS_YMAKEFILE.
6450
6451 1995-12-07 Francesco Potortì <pot@cnuce.cnr.it>
6452
6453 * etags.c (pfnote): Don't make a tag for ctags if there is no name.
6454 (getit, Asm_labels, Perl_functions, Pascal_functions, L_getit,
6455 get_scheme, prolog_getit): Name the tag in ctags mode.
6456 (pfnote): Truncate ctags lines to 50 chars, like it worked once.
6457 (Perl_interpreters): Accept "@PERL@" as an interpreter.
6458 (suggest_asking_for_help): New function.
6459 (main, get_language_from_name): Use suggest_asking_for_help.
6460 (main): Let get_language_from_name make language existence check.
6461 (streq, strneq): Check the arguments #if DEBUG.
6462
6463 1995-12-06 Francesco Potortì <pot@cnuce.cnr.it>
6464
6465 * etags.c (Cplusplus_suffixes): Add .M suffix for Objective C++.
6466 (gperf): Add keywords for Objective C and GNU macros.
6467 (sym_type): Add values to account for Objective C and GNU macros.
6468 (begtk): The '@' character can start a token.
6469 (objdef, methodlen, objtag): New variables for Objective C.
6470 (consider_token, C_entries): Add code for Objective C.
6471 (plain_C_suffixes): Add .m and .lm for Objective C.
6472 (Yacc_suffixes): Add .ym for Objective yacc.
6473 (GROW_LINEBUFFER): New macro.
6474 (consider_token, C_entries, Pascal_functions): Use the new macro.
6475 (consider_token): Take one more argument. Caller changed.
6476 (consider_token): Use the hashing function to spot GNU macros.
6477 (C_entries): Consider // as a comment start even in plain C for
6478 the sake of Objective C parsing.
6479
6480 1995-12-04 Francesco Potortì <pot@cnuce.cnr.it>
6481
6482 * Makefile.in (ctags): Depend on etags only for simplicity;
6483 compile with regexp support enabled.
6484
6485 1995-11-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6486
6487 * Version 19.30 released.
6488
6489 1995-11-22 Geoff Voelker <voelker@cs.washington.edu>
6490
6491 * makefile.nt (DOC, clean): Don't use switches to del not
6492 supported by Windows 95.
6493
6494 1995-11-13 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6495
6496 * Makefile.in (regex.o): Depend on ../src/config.h.
6497
6498 1995-11-12 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6499
6500 * Makefile.in (LIB_STANDARD): Extract this as in src/Makefile.in.
6501 (LOADLIBES): Use LIB_STANDARD.
6502
6503 1995-11-07 Kevin Gallo <kgallo@microsoft.com>
6504
6505 * makefile.nt (DOC): Include strings from w32term.c, w32xfns.c,
6506 w32fns.c, w32faces.c, w32select.c, w32menu.c, w32reg.c; remove
6507 Windows 95 conditional.
6508
6509 1995-11-06 Francesco Potortì (pot@cnuce.cnr.it)
6510
6511 * etags.c (get_lang_from_name, get_lang_from_interpreter)
6512 (get_lang_from_suffix): New functions.
6513 (get_language): Function deleted.
6514 (lang_entry): Two members added to struct.
6515 (lang_names): Reflect the new layout of lang_entry.
6516 (print_language_names, main, find_entries): Use the new functions.
6517 (find_entries): Look at the first line for #! if no language.
6518 (C_entries): Invalidate the token when funcdef is reset.
6519 (Perl_functions): New function.
6520 (lang_suffixes): .pl and .pm are Perl suffixes.
6521
6522 1995-11-02 Francesco Potortì (pot@cnuce.cnr.it)
6523
6524 * etags.c (lowcase): Use the standard tolower function.
6525 (substitute): Remove some wrong and some useless code related with
6526 escape '\' character in regexp replacement string.
6527 (TEX_defenv): Add part, appendix, entry, index. Remove typeout.
6528 (lang_suffixes): New suffixes: .hpp for C++; .f90 for Fortran;
6529 .bib, .ltx, .TeX for TeX (.bbl, .dtx removed); .ml for Lisp;
6530 .prolog for prolog (.pl removed).
6531 (massage_name, etags_getcwd): Use lowcase instead of tolower.
6532 (C_entries, find_entries): Add comments about memory leakage.
6533 (add_node): Dead code removed.
6534
6535 1995-10-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6536
6537 * Makefile.in (getdate.o, movemail.o): Specify -Demacs.
6538 (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Delete -Demacs.
6539
6540 1995-08-30 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6541
6542 * test-distrib.c: Add #undef for open, close, read, write.
6543
6544 1995-08-23 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6545
6546 * test-distrib.c [HAVE_CONFIG_H]: Include config.h.
6547 [! O_RDONLY]: Define it to zero.
6548 (main): Use O_RDONLY instead of explicit zero.
6549
6550 1995-08-17 Francesco Potortì (pot@cnuce.cnr.it)
6551
6552 * etags.c (Pascal_functions): Close comment bug corrected.
6553 (add_node): Correctly compare node file names.
6554 (Pascal_functions): Correctly allocate and free memory for tline.
6555 (pfnote): Put the definition of fp in the innermost block.
6556 (NODE): `named' member removed.
6557 (pfnote, free_tree, put_entries, total_size_of_entries): Do not
6558 use the `named' member, check whether `name' is NULL instead.
6559 (pfnote): `named' argument removed, all callers changed.
6560 (getit, Asm_labels, Pascal_functions, L_getit, get_scheme,
6561 TeX_functions, TEX_getit, prolog_getit): Useless string allocation
6562 removed from pfnote call, some code cleanup.
6563 (relative_filename): Free temporary space allocated by concat.
6564
6565 1995-08-16 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6566
6567 * Makefile.in (getdate.c): New target.
6568 (getdate.o): Just compile getdate.c.
6569
6570 1995-08-12 Karl Heuer <kwzh@gnu.ai.mit.edu>
6571
6572 * fakemail.c (xrealloc): Change cast to match return type.
6573
6574 1995-08-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6575
6576 * fakemail.c (xmalloc, xrealloc): Use return-type long *.
6577
6578 1995-08-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6579
6580 * movemail.c (main): Fix previous change.
6581 Add error check for empty OUTNAME.
6582
6583 1995-08-05 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6584
6585 * movemail.c (main): Mention lock file name in error message.
6586
6587 1995-07-30 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6588
6589 * profile.c (gettimeofday): New function, defined if necessary.
6590
6591 1995-07-18 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6592
6593 * Makefile.in: Renamed from Makefile.in.in.
6594 (distclean): Delete Makefile.c, not Makefile.in.
6595
6596 1995-07-17 Michael Shields <shields@tembel.org>
6597
6598 * Makefile.in.in (tags): Synonym for `TAGS'.
6599
6600 1995-07-16 Karl Heuer <kwzh@gnu.ai.mit.edu>
6601
6602 * Makefile.in.in (install, maybe-blessmail): Don't cd ..;
6603 configure has already set $(INSTALL) to the proper relative path.
6604
6605 1995-07-08 Paul Eggert <eggert@twinsun.com>
6606
6607 * rcs2log (datearg): Separate date from time with comma, not space,
6608 to work around CVS 1.5 bug.
6609 (CVSROOT): Don't abort when unset if repository is absolute.
6610
6611 1995-07-07 Paul Eggert <eggert@twinsun.com>
6612
6613 * rcs-checkin, rcs2log, vcdiff:
6614 Replace `#!/bin/sh' with `#! /bin/sh', for benefit of systems
6615 that interpret `#! /' as a 4-byte magic number.
6616
6617 1995-06-29 Jonathan I. Kamens <jik@cam.ov.com>
6618
6619 * movemail.c (main) [MAIL_USE_POP]: When a user specifies a
6620 mailbox with "po:mailbox", the mailbox is everything after the
6621 "po:" prefix.
6622
6623 1995-06-28 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6624
6625 * emacsserver.c: Make all error messages start with `Error: '.
6626 (fatal_error, perror_1): New functions, use throughout.
6627
6628 1995-06-28 Paul Eggert <eggert@twinsun.com>
6629
6630 * rcs2log (CVSROOT, repository):
6631 Allow remote repositories a la CVS 1.4.
6632
6633 1995-06-27 Francesco Potortì (pot@cnuce.cnr.it)
6634
6635 * etags.c (plain_C_entries): New function.
6636 (lowcase): New macro.
6637 (tail, Fortran_functions, Pascal_functions): Use new macro lowcase.
6638 (lang_suffixes): New suffix ".pc" for Pro*C files.
6639 (consider_token): Don't tag all tokens beginning with DEFUN & Co..
6640 (tail): Look for the end of the token when comparing.
6641 (takeprec): Since now tail behaves differently, use strneq.
6642
6643 1995-06-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6644
6645 * movemail.c (main): Add newline in usage message.
6646
6647 1995-06-21 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6648
6649 * make-docfile.c (scan_file): Make sure it never looks at filename[-1].
6650
6651 1995-06-21 Francesco Potortì (pot@cnuce.cnr.it)
6652
6653 * etags.c (find_entries): Rewind before rereading the input file.
6654
6655 1995-06-20 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6656
6657 * Version 19.29 released.
6658
6659 * make-docfile.c (main) [MSDOS]: Do set _fmode.
6660 This undoes part of the previous change.
6661
6662 1995-06-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6663
6664 * make-docfile.c (main): On MSDOS, don't change stdout
6665 to binary, and insist on an -o option.
6666
6667 1995-06-13 Geoff Voelker <voelker@cs.washington.edu>
6668
6669 * etags.c (process_file, absolute_filename): Handle filenames
6670 starting with a drive letter.
6671
6672 * makefile.nt (install): Copy wakeup.exe properly.
6673
6674 1995-06-08 Karl Heuer <kwzh@gnu.ai.mit.edu>
6675
6676 * make-docfile.c [MSDOS]: #undef chdir.
6677
6678 1995-06-04 Paul Eggert <eggert@twinsun.com>
6679
6680 * rcs2log (output_authors): Allow ':' in time zone,
6681 as per ISO 8601 and RCS 5.6.8 beta.
6682
6683 1995-05-29 Francesco Potortì (pot@cnuce.cnr.it)
6684
6685 * etags.c (etags_getcwd): Undo the /bin/pwd change. It may raise
6686 compatibility problems.
6687
6688 1995-05-26 Richard Stallman <rms@gnu.ai.mit.edu>
6689
6690 * etags.c (etags_getcwd): Don't use #elif.
6691 Have just one function body.
6692
6693 1995-05-25 Geoff Voelker <voelker@cs.washington.edu>
6694
6695 * makefile.nt (LIBS): Use BASE_LIBS.
6696 (make-docfile.exe, hexl.exe, wakeup.exe, etags.exe): Don't depend
6697 upon LIBS.
6698 (DOC): Use del instead of rm.
6699 (DOC) [WINDOWS95]: Use DOC.
6700 (clean): Handle MSVC aux files.
6701 (config.h, paths.h): Use $(CP) instead of cp.
6702 (config.h): Use $(CONFIG_H)
6703 (make-docfile.obj): Depend upon config.h.
6704 Clean up comments.
6705
6706 1995-05-23 Francesco Potortì (pot@cnuce.cnr.it)
6707
6708 * etags.c (etags_getcwd): Use /bin/pwd instead of pwd because the
6709 former gives the true path even in the presence of simlinks.
6710
6711 1995-05-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6712
6713 * movemail.c (main): Increase lock timeout to five minutes.
6714
6715 1995-05-06 Geoff Voelker <voelker@cs.washington.edu>
6716
6717 * makefile.nt (obj): Use .c files.
6718
6719 1995-05-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6720
6721 * make-docfile.c: Include config.h.
6722 (NO_SHORTNAMES): New definition.
6723 (xmalloc): Return long *.
6724
6725 * etags.c (C_entries): Cast result of xrealloc.
6726 (xmalloc, xrealloc): Declare them to return long *.
6727
6728 * b2m.c (xmalloc, xrealloc): Declare them long *.
6729
6730 * movemail.c (xmalloc): Declare it to return long *.
6731
6732 1995-04-30 Paul Eggert <eggert@twinsun.com>
6733
6734 * rcs2log (datearg): If rlog options are specified explicitly,
6735 omit the implicit '-d>DATE' option.
6736 (repository, rlog): Allow absolute paths to CVS repositories.
6737 Look only at the first line of CVS/Repository.
6738
6739 1995-04-26 Karl Heuer <kwzh@gnu.ai.mit.edu>
6740
6741 * Makefile.in.in (extraclean): Depend on maintainer-clean, not
6742 realclean.
6743
6744 1995-04-24 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6745
6746 * Makefile.in.in [REGEXP_IN_LIBC] (REGEXPOBJ, REGEXPDEPS):
6747 Alternative (empty) definitions.
6748
6749 1995-04-18 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6750
6751 * emacsclient.c (main): Add argv[0] to an error message.
6752
6753 1995-04-13 Karl Heuer <kwzh@gnu.ai.mit.edu>
6754
6755 * emacsclient.c (main): Improve error handling.
6756 * cvtmail.c (main, skip_to_lf): Improve error handling.
6757 (sysfail): New function.
6758
6759 * b2m.c (main): Check for trailing ", " before trying to delete it.
6760
6761 1995-04-12 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6762
6763 * Makefile.in.in (all): Build test-distrib and make-docfile.
6764
6765 * make-docfile.c (scan_c_file): At end, restore file name last char
6766 to its original value.
6767
6768 1995-04-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6769
6770 * emacsclient.c, emacsserver.c: Test NO_SOCKETS_IN_FILE_SYSTEM.
6771
6772 1995-04-08 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6773
6774 * Makefile.in.in (BASE_CFLAGS): Rename from ALLOCA_CFLAGS.
6775 (alloca.o, regex.o): Use BASE_CFLAGS.
6776
6777 1995-04-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6778
6779 * emacsclient.c [Berkeley sockets version] (main): Declare getcwd.
6780
6781 1995-04-04 Karl Heuer <kwzh@gnu.ai.mit.edu>
6782
6783 * Makefile.in.in (aixcc, aixcc.c): Targets deleted.
6784 (SOURCES, distclean): Remove obsolete references to aixcc.
6785
6786 1995-04-02 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6787
6788 * aixcc.lex: File deleted--surely obsolete now.
6789
6790 1995-03-23 Paul Eggert <eggert@twinsun.com>
6791
6792 * rcs2log (output_authors): Replace /[/]/ by /[\/]/, for
6793 portability to mawk and nawk.
6794
6795 1995-03-21 Paul Eggert <eggert@twinsun.com>
6796
6797 * rcs2log: Treat -u "login:fullname:mailaddr" as if it were
6798 -u "login<tab>fullname<tab>mailaddr".
6799
6800 1995-03-21 Paul Eggert <eggert@twinsun.com>
6801
6802 * rcs2log: Add -u "login<tab>fullname<tab>mailaddr" option, which
6803 replaces the (now obsolescent) -n login fullname mailaddr option.
6804 Add -R option for recursive rlog.
6805 (AWK): New environment variable (default `awk') for awk program name.
6806 (output_authors, tab, loginFullnameMailaddrs, recursive): New vars.
6807 Quote authors and fullnames correctly.
6808 Don't omit path from repository root when logging CVS files.
6809
6810 1995-03-15 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6811
6812 * emacsclient.c, emacsserver.c: Use BSD sockets whenever available,
6813 even if HAVE_SYSVIPC.
6814 * emacsclient.c (main): Use getcwd if not BSD.
6815
6816 1995-03-13 Francesco Potortì (pot@cnuce.cnr.it)
6817
6818 * etags.c (process_file): Free (filename) after using it.
6819 (readline_internal): Do not access the char before start of line.
6820
6821 1995-02-22 Francesco Potortì (pot@cnuce.cnr.it)
6822
6823 * etags.c (C_entries): token_saved removed. Initialize tok.valid and
6824 savetok.valid. Mark token as valid when it is initialized.
6825 (make_tag): Make token only if token is valid and reset validity.
6826 (CNL_SAVE_DEFINEDEF): Test for savetok.valid instead of token_saved.
6827 (TOKEN): Add a new member: valid.
6828
6829 1995-02-15 Francesco Potortì (pot@cnuce.cnr.it)
6830
6831 * etags.c (C_entries): Bug corrected in xrealloc of token_str.
6832 (main): Do not read twice the last filename in the stdin file list.
6833
6834 1995-02-14 Francesco Potortì (pot@cnuce.cnr.it)
6835
6836 * etags.c (C_entries): Initialize the new members of TOKEN.
6837 (C_entries): Do not allocate a new space for each token found by
6838 consider_token. Let make_tag do that instead.
6839 (make_tag): Since now TOKEN has memory of where it is taken from,
6840 this new macro substitutes both make_tag_from_new_lb and
6841 make_tag_from_oth_lb. All callers changed.
6842 (TOKEN): Add linepos and buffer members.
6843 (main): Initialize token_str.
6844 (lang_extensions): Recognize .c++ and .h++ as C++ file suffixes.
6845 (token_str): New global variable used by C_entries.
6846
6847 1995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu>
6848
6849 * Makefile.in.in (maintainer-clean): Rename from realclean.
6850
6851 1995-02-01 Francesco Potortì (pot@cnuce.cnr.it)
6852
6853 * etags.c (pfnote): Initialize been_warned in the node.
6854 (C_entries): Remove a speed hack for the sake of clarity.
6855
6856 1995-01-18 Francesco Potortì (pot@cnuce.cnr.it)
6857
6858 * etags.c (longopts, print_help, main): Use -I as abbreviation
6859 for the --ignore-indentation option.
6860 (main): Do not print an error message for unknown options.
6861
6862 1995-01-12 Francesco Potortì (pot@cnuce.cnr.it)
6863
6864 * etags.c (FILEPOS, GET_CHARNO, GET_FILEPOS, max, LINENO): Delete.
6865 (append_to_tagfile, typedefs, typedefs_and_cplusplus)
6866 (constantypedefs, update, vgrind_style, no_warnings)
6867 (cxref_style, cplusplus, noindentypedefs): Were int, now logical.
6868 (permit_duplicates): Was a var, now a #define.
6869 (filename_lb): Was global, now local to main.
6870 (main): Open the tag file when in cxref mode.
6871 Use a BUFSIZ size buffer for making the shell commands.
6872 Look at the return value from the system routine.
6873 Exit when cannot open the tag file.
6874 (process_file): Open the file and pass the FILE* to find_entries.
6875 (find_entries): Now void, because does not open the file itself.
6876 (pfnote): Recovering from lack of memory does not work. Removed.
6877 Use savenstr and simplify the code.
6878 (free_tree): Only free the name space if node is named.
6879 (structtag): Now a pointer, not a fixed length array of chars.
6880 (consider_token): Don't take a token as argument. Use savenstr
6881 when saving a tag in structtag. Callers changed.
6882 (TOKEN): Structure changed. Now used only in C_entries.
6883 (TOKEN_SAVED_P, SAVE_TOKEN, RESTORE_TOKEN): Delete.
6884 (C_entries): nameb and savenameb deleted. Use dinamic allocation.
6885 (pfcnt): Delete. Users updated.
6886 (getit, Asm_labels, Pascal_functions, L_getit, get_scheme)
6887 (TEX_getit, prolog_getit): Use dinamic allocation for storing
6888 the tag instead of a fixed size buffer.
6889
6890 1995-01-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6891
6892 * movemail.c (main): Skip past the colon in inname.
6893
6894 1995-01-10 Francesco Potortì (pot@cnuce.cnr.it)
6895
6896 * etags.c (pfatal): New function.
6897 (main, etags_getcwd): Use pfatal.
6898 (etags_getcwd): Corrected another bug in the HAVE_GETCWD version.
6899
6900 1995-01-10 Francesco Potortì (pot@cnuce.cnr.it)
6901
6902 * etags.c (Lang_function): Use void instead to declare the
6903 language functions, because many compilers are buggy.
6904 (etags_getcwd): Fix the previous fix on the #else branch.
6905 (readline_internal): Discard possible \r before \n here.
6906 (C_entries): Do not deal with \r here: undo previous fix.
6907
6908 1995-01-09 Francesco Potortì (pot@fly)
6909
6910 * b2m.c (concat, xmalloc, xrealloc, readline, xnew): Four new
6911 functions and a macro that allow the program to work on input
6912 lines of whatever length. Copied from etags.c.
6913 (fatal): Print a fatal error message and exit.
6914 (main): Use the new functions. Fixed a bug that made a \037 char
6915 appear at the end of the output.
6916
6917 1995-01-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6918
6919 * etags.c (C_entries): Ignore carriage return at end of line.
6920
6921 1994-12-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6922
6923 * fakemail.c (xmalloc, xrealloc): Add casts.
6924 (add_field): Handle <...> and "..." syntax.
6925 (setup_files, get_keyword): Clean up parens and line breaks.
6926 (args_size): Likewise.
6927
6928 1994-12-21 David J. MacKenzie <djm@geech.gnu.ai.mit.edu>
6929
6930 * yow.c: Include program name in error messages.
6931
6932 1994-12-21 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6933
6934 * make-docfile.c (scan_lisp_file): Handle dynamic doc strings.
6935 (xmalloc, fatal, error): New functions.
6936 (progname): New variable.
6937 (main): Set progname.
6938
6939 1994-12-05 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6940
6941 * emacsclient.c, emacsserver.c [HAVE_SYSVIPC]: Include sys/utsname.h.
6942 (main): If socket/mqueue name is in home dir, add in the host name.
6943 Rename .emacs_server to .emacs-server....
6944
6945 1994-12-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6946
6947 * emacsclient.c [!HAVE_SYSVIPC] (main): Fix error message diction.
6948
6949 1994-11-22 Francesco Potortì (pot@cnuce.cnr.it)
6950
6951 * etags.c (print_help): Print --regex usage for ctags also.
6952 (main): Use -h in addition to -H as abbreviation for --help.
6953
6954 1994-11-16 Francesco Potortì (pot@cnuce.cnr.it)
6955
6956 * etags.c [ETAGS_REGEXP]: All the new code that deals with regexps
6957 is compiled if this is defined. The new functions and variables
6958 added #ifdef ETAGS_REGEXP are not listed in this ChangeLog.
6959 [VMS]: All VMS specific code previously contained in
6960 etags-vmslib.c is now included here, modified for dealing with
6961 language and regex options intermixed with filenames.
6962 (header_file): Global variable deleted.
6963 (Lang_Function): New typedef. All language parser functions
6964 changed to this new type.
6965 (string_numeric_p, substr, prestr): Functions deleted.
6966 (readline_internal): Does the job that readline did previously.
6967 (longopts): --language and --regex options added.
6968 (lang_names, lang_extensions, lang_func, print_language_names):
6969 New structures, variables and functions for choosing languages.
6970 (print_help): Help strings updated. Calls print_language_names.
6971 (argument_type, ARGUMENT): Typedefs for dealing with language and
6972 regex options intermixed with filenames.
6973 (main): Change the way of dealing with arguments on the command
6974 line to deal with language and regex options intermixed with
6975 filenames.
6976 (get_language, default_C_entries, Cplusplus_entries,
6977 Cstar_entries, Yacc_entries, just_read_file): New functions.
6978 (find_entries): Use the new method for choosing the language.
6979 (Pascal_functions): Allow intermixing of comment styles.
6980 (prolog_getit, skip_comment): Rewritten for speed.
6981 (readline): Rewritten to deal with regexps.
6982
6983 1994-11-16 Francesco Potortì (pot@cnuce.cnr.it)
6984
6985 * etags.c (<errno.h>): #include added.
6986 (etags_getcwd): Check return value from getcwd.
6987
6988 1994-11-10 Richard Stallman <rms@mole.gnu.ai.mit.edu>
6989
6990 * profile.c (TV1, TV2): Use EMACS_TIME as type.
6991 (get_time): Use EMACS_SUB_TIME.
6992
6993 1994-10-30 Geoff Voelker <voelker@cs.washington.edu>
6994
6995 * ntlib.c: New file.
6996 * makefile.nt: New file.
6997
6998 * make-docfile.c (main) [WINDOWSNT]: Set _fmode and stdout to O_BINARY.
6999 [WINDOWSNT]: Include the NT headers.
7000 (READ_TEXT, READ_BINARY): Test DOS_NT, not MSDOS.
7001
7002 * etags.c (main, etags_getcwd): Test DOS_NT instead of MSDOS.
7003 [WINDOWSNT]: Include some NT headers.
7004
7005 1994-10-24 Jonathan I. Kamens (jik@cam.ov.com)
7006
7007 * pop.c (getline): When a search of already-read input for CRLF
7008 fails, store the fact that we've searched it and don't search it
7009 again after reading more data.
7010
7011 * pop.c (getline): When determining whether or not it's necessary
7012 to grow the input buffer, take into account the null that's stored
7013 at the end of already-read input in the buffer.
7014
7015 1994-10-21 Francesco Potortì (pot@cnuce.cnr.it)
7016
7017 * etags.c (prestr, substr): Return a logical type.
7018 (consider_token): Comment out "EXFUN". Use "DEFUN" instead of "DEF".
7019 (consider_token): Set funcdef to fignore when a DEFUN is met.
7020 (C_entries): Now we can use Tom Hageman patch for extern "C".
7021
7022 1994-10-20 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7023
7024 * movemail.c: PopServer renamed to popserver throughout.
7025
7026 1994-10-20 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
7027
7028 * etags.c: Don't declare malloc, since we include config.h.
7029 * fakemail.c: Likewise.
7030
7031 1994-10-19 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7032
7033 * movemail.c: Don't declare malloc.
7034
7035 1994-10-19 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
7036
7037 * rcs-checkin: Use test -r instead of < to check readability, to
7038 avoid syntax error.
7039
7040 1994-10-19 Jonathan I. Kamens (jik@cam.ov.com)
7041
7042 * pop.c: Only include ../src/config.h if HAVE_CONFIG_H is
7043 defined, and if HAVE_CONFIG_H isn't defined, define
7044 MAIL_USE_POP always (so that this file can be included in
7045 other programs besides emacs).
7046
7047 * pop.c: Only declare h_errno if HAVE_H_ERRNO isn't defined or
7048 HAVE_CONFIG_H isn't defined.
7049
7050 * pop.c (find_crlf, getline): Instead of using strstr, use a
7051 custom function for finding CRLF.
7052 (my_strstr): Function deleted.
7053
7054 1994-10-17 Jonathan I. Kamens (jik@cam.ov.com)
7055
7056 * pop.c (getline): Fix a segfault because of passing a
7057 non-null-terminated string into strstr(). Fix from
7058 djm@va.pubnix.com (David J. MacKenzie).
7059
7060 * pop.c: Don't include <string.h> and <strings.h>.
7061
7062 * pop.c: Include <des.h> before <krb.h>, rather than after.
7063 They should be interchangeable, and indeed the inclusion is done in
7064 both orders in various files in the Kerberos 4 library sources,
7065 but djm@va.pubnix.com (David J. MacKenzie) reports that BSDI
7066 requires that <des.h> be included first, and I don't see any harm
7067 in changing the order.
7068
7069 * pop.c: Include ../src/config.h, to get HAVE_STRING_H and
7070 STDC_HEADERS, if they're defined. Undef open, read, write and
7071 close after including it.
7072
7073 1994-10-18 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7074
7075 * pop.c: Fix mismatch in conditionals.
7076
7077 * make-docfile.c (main): Don't process one input file twice.
7078 Never use exit code > 1.
7079
7080 * pop.c (open, close, read, write): Add #undefs.
7081
7082 * pop.c: Don't declare malloc, realloc, free.
7083 Include ../src/config.h.
7084 Don't include string.h or strings.h.
7085 Include des.h before krb.h.
7086 Do declare my_strstr.
7087 (getline): Really use my_strstr.
7088 Leave one empty place in server->buffer,
7089 and put a null at the end of the data in it.
7090
7091 1994-10-17 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7092
7093 * emacsserver.c [SYSV_IPC] (main): Catch SIGHUP as well.
7094 Don't call kill with pid 0. Handle EINTR when receiving messages.
7095
7096 1994-10-17 Karl Heuer <kwzh@gnu.ai.mit.edu>
7097
7098 * Makefile.in.in (regex.o): Use full path to find regex.c.
7099
7100 1994-10-17 Francesco Potortì (pot@fly.cnuce.cnr.it)
7101
7102 * Makefile.in.in (etags): Add dependency on regex.o, link with it.
7103 (REGEXPOBJ, REGEXPDEPS, regex.o): Target and macros added.
7104
7105 1994-10-12 David J. MacKenzie (djm@duality.gnu.ai.mit.edu)
7106
7107 * Makefile.in.in (DONT_INSTALL): Remove make-path.
7108 (${archlibdir}): Use mkinstalldirs instead.
7109
7110 * movemail.c: Make functions that return nothing void, not
7111 implicitly int.
7112 (main): Improve usage message.
7113 (error): Write to stderr, not stdout.
7114
7115 * b2m.c, cvtmail.c, digest-doc.c, emacsclient.c, emacsserver.c:
7116 * etags.c, fakemail.c, hexl.c, make-docfile.c, profile.c, sorted-doc.c:
7117 * test-distrib.c, timer.c, wakeup.c, yow.c: Eliminate some -Wall
7118 warnings from unused variables and implicitly declared functions.
7119
7120 1994-10-11 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7121
7122 * Makefile.in.in (clean): rm DOC* and *.tab.[ch].
7123 (distclean): Not here.
7124
7125 * Makefile.in.in (libexecdir): Rename from libdir.
7126
7127 1994-10-11 Francesco Potortì (pot@cnuce.cnr.it)
7128
7129 * etags.c (C_entries): Name the #define's that are macros.
7130
7131 1994-10-10 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7132
7133 * emacsserver.c [! SYSVIPC] (main): Fix uses of FD_* macros:
7134 fd_set arg is a pointer, descriptor arg comes first.
7135
7136 1994-09-29 Francesco Potortì (pot@cnuce.cnr.it)
7137
7138 * etags.c (C_entries): Recognize typedef of ANSI style functions.
7139 (C_entries): Recognize #define inside a struct.
7140 (C_entries): ANSI tells that preprocessor commands do not have to
7141 start on the first column.
7142 (print_help): Documentation corrected for -d and -D.
7143 (white, endtk): ANSI tells the vertical tab is a separator.
7144
7145 1994-09-24 Jonathan I. Kamens (jik@gza-client1.aktis.com)
7146
7147 * Makefile.in.in (MOVE_FLAGS, MOVE_LIBS): New variables.
7148 (pop.o, movemail.o): New targets.
7149 (movemail): Link in pop.o and movemail.o. Use MOVE_LIBS, MOVE_FLAGS.
7150
7151 * pop.c, pop.h: New files.
7152
7153 * movemail.c: Improve POP code, move most of it into a separate file.
7154 (mbx_delimit_end, mbx_delimit_begin): Check for errors.
7155 (mbx_write): Check for errors and for From line.
7156 (pop_retr, popmail): Use subroutines in pop.c to do the real work.
7157 (get_errmsg, multiline, getline, putline, pop_stat, pop_command)
7158 (pop_init): Functions deleted.
7159
7160 1994-09-23 Richard Stallman <rms@churchy.gnu.ai.mit.edu>
7161
7162 * make-path.c (touchy_mkdir): Make dir ugo+rx even if it isn't new.
7163 Rename path to dirname.
7164
7165 1994-09-23 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7166
7167 * Makefile.in.in (UTILITIES):
7168 Remove test-distrib, make-docfile, make-path.
7169 (DONT_INSTALL): New variable--list those files here.
7170 (clean): Delete the files in DONT_INSTALL.
7171
7172 1994-09-20 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7173
7174 * b2m.c (from, labels, data): Use MAX_DATA_LEN as length.
7175 (main): Use fgets, not gets.
7176
7177 1994-09-17 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7178
7179 * timer.c: Don't declare malloc.
7180
7181 1994-09-16 Karl Heuer <kwzh@gnu.ai.mit.edu>
7182
7183 * emacsserver.c (FD_*) [HAVE_SOCKETS & !HAVE_SYSVIPC]: If not already
7184 defined, use simple 32-bit versions of these macros.
7185 (main) [HAVE_SOCKETS & !HAVE_SYSVIPC]: Use these macros.
7186
7187 1994-09-16 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7188
7189 * etags.c (etags_getcwd): Use getcwd if available.
7190
7191 1994-09-11 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7192
7193 * Version 19.27 released.
7194
7195 1994-09-07 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7196
7197 * Version 19.26 released.
7198
7199 1994-08-15 Paul Eggert <eggert@twinsun.com>
7200
7201 * rcs2log: Add support for CVS.
7202 Work with `rlog's that output ISO 8601 dates.
7203
7204 1994-08-09 Lawrence R. Dodd <dodd@roebling.poly.edu>
7205
7206 * rcs2log: Use <> to delimit email address.
7207
7208 1994-08-06 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7209
7210 * emacsserver.c [SYSV_IPC] (main): Make a separate process
7211 so we can listen for multiple requests.
7212
7213 1994-08-04 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7214
7215 * movemail.c: Include config.h first thing.
7216
7217 1994-08-01 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7218
7219 * emacsserver.c (main): Add casts to avoid warnings.
7220
7221 1994-07-29 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7222
7223 * Makefile.in.in (${archlibdir}): Compare the proper dir
7224 before installing the scripts.
7225
7226 1994-07-27 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7227
7228 * emacsclient.c (main): New local var progname saves argv[0].
7229
7230 1994-07-26 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7231
7232 * emacsclient.c (main): Don't actually modify argv[0].
7233 Modify a copy instead.
7234
7235 1994-07-25 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7236
7237 * profile.c (reset_watch, get_time): Use EMACS_GET_TIME.
7238 (tzp): Var deleted.
7239
7240 * Makefile.in.in: Add #undef alloca.
7241
7242 1994-07-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7243
7244 * timer.c (xmalloc): New function.
7245
7246 1994-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7247
7248 * Makefile.in.in (ALLOCA_CFLAGS): New variable.
7249 (alloca.o): New target.
7250
7251 1994-07-08 Dave Love (d.love@dl.ac.uk)
7252
7253 * etags.c (takeprec): Recognize `character*(*) function'.
7254
7255 1994-07-08 Francesco Potortì (pot@cnuce.cnr.it)
7256
7257 * etags.c (main): Don't barf on obsolete -t and -T switches.
7258 (main): Print an explicative message when a switch is not known.
7259
7260 1994-06-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7261
7262 * hexl.c: Don't declare exit or perror.
7263
7264 * emacsserver.c (main): Don't declare geteuid.
7265 Don't declare getenv if convex.
7266
7267 1994-06-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7268
7269 * Makefile.in.in (test-distrib): Use ALL_CFLAGS.
7270
7271 1994-06-03 Francesco Potortì (pot@fly.cnuce.cnr.it)
7272
7273 * etags.c (absolute_filename): Remove infinite loop bug when
7274 accessing files in directories whose name begins with a dot.
7275
7276 1994-06-03 Francesco Potortì (pot@fly.cnuce.cnr.it)
7277
7278 * etags.c (etags_getcwd): Delete the trailing newline from cwd.
7279
7280 1994-06-01 Morten Welinder (terra@diku.dk)
7281
7282 * yow.c (rootrelativepath) [MSDOS]: Define, expanding to dynamic
7283 location of data directory.
7284
7285 1994-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7286
7287 * Version 19.25 released.
7288
7289 1994-05-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7290
7291 * Makefile.in.in (distclean): Delete Makefile, Makefile.in, blessmail.
7292
7293 1994-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7294
7295 * Makefile.in.in (blessmail): Don't depend on ../src/emacs.
7296
7297 1994-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7298
7299 * Version 19.24 released.
7300
7301 1994-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7302
7303 * make-docfile.c (write_c_args): Put `default' in upper case.
7304
7305 1994-05-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7306
7307 * etags.c (etags_getcwd): Cast result of popen.
7308 (popen): Declaration deleted.
7309
7310 1994-05-17 Karl Heuer (kwzh@gnu.ai.mit.edu)
7311
7312 * etags.c [!MSDOS]: Declare popen.
7313
7314 1994-05-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7315
7316 * b2m.c (main): Avoid crash if argc is 1.
7317
7318 1994-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7319
7320 * Version 19.23 released.
7321
7322 * Makefile.in.in (blessmail): Specify directory for blessmail.el.
7323
7324 1994-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7325
7326 * Makefile.in.in (maybe-blessmail): Mention bless-mail is in lib-src.
7327
7328 1994-05-05 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu)
7329
7330 * Makefile.in.in: Fix out of date comment.
7331
7332 1994-05-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7333
7334 * Makefile.in.in: Put in a separator for where to start cpp procssing.
7335 Move all autoconf substitutions above that point.
7336 Above that point, use Make-style comments.
7337 This goes with changes in ../configure.in.
7338
7339 1994-05-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7340
7341 * Makefile.in.in (maybe-blessmail): New target to print the blessmail
7342 warning message.
7343 (${archlibdir}): Don't do it here. Don't depend on blessmail.
7344
7345 1994-05-02 Karl Heuer (kwzh@gnu.ai.mit.edu)
7346
7347 * Makefile.in.in (${archlibdir}): Be lenient about wc output format.
7348
7349 1994-05-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7350
7351 * Makefile.in.in (${archlibdir}): Don't run blessmail; instead
7352 print advice to run it, if it has anything significant to do.
7353 And only if MOVEMAIL_NEEDS_BLESSING.
7354 (blessmail): Use emacs, not temacs.
7355 (configuration): Rename from configname.
7356
7357 1994-04-30 Morten Welinder (terra@diku.dk)
7358
7359 * etags.c (find_entries): Treat `*.cpp' as C++ files.
7360
7361 1994-04-30 Morten Welinder (terra@diku.dk)
7362
7363 * etags.c [MSDOS]: #include <sys/param.h> for the following.
7364 [MSDOS] (etags_getcwd): Define simple MSDOS version without spawning
7365 a shell.
7366
7367 1994-04-29 Morten Welinder (terra@diku.dk)
7368
7369 * hexl.c [MSDOS]: Don't define proto type for exit.
7370
7371 1994-04-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7372
7373 * b2m.c: Don't include string.h or strings.h.
7374
7375 1994-04-27 Karl Heuer (kwzh@gnu.ai.mit.edu)
7376
7377 * Makefile.in.in: C_SWITCH_SYSTEM and C_SWITCH_MACHINE are now cpp
7378 symbols, not make variables.
7379
7380 1994-04-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7381
7382 * Makefile.in.in (etags, ctags): Make VERSION a string constant.
7383 * etags.c (print_version): Print VERSION as a string.
7384
7385 1994-04-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7386
7387 * fakemail.c (readline): Fix updating of p when buffer grows.
7388
7389 1994-04-20 Karl Heuer (kwzh@gnu.ai.mit.edu)
7390
7391 * Makefile.in.in (blessmail): New target.
7392 ${archlibdir}: Use blessmail when installing movemail.
7393
7394 1994-04-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7395
7396 * fakemail.c (readline): When extending the buffer,
7397 calculate end afresh using the new size.
7398
7399 1994-04-18 Francesco Potortì (pot@fly.cnuce.cnr.it)
7400
7401 * etags.c (main, print_help): Eliminate the -F option.
7402
7403 1994-04-18 Francesco Potortì (pot@fly.cnuce.cnr.it)
7404
7405 * etags.c (absolute_filename): Compare against '\0' instead of NULL.
7406
7407 1994-04-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7408
7409 * Makefile.in.in: Renamed from Makefile.in.
7410 Makefile.in is now generated from it, and then preprocessed.
7411 Change comments to C syntax.
7412 Include config.h.
7413 (LIBS_SYSTEM, LIBS_MACHINE): Define as empty if not defined.
7414 (LOADLIBES): Define from LIBS_SYSTEM and LIBS_MACHINE.
7415
7416 1994-04-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7417
7418 * movemail.c [HAVE_UNISTD_H]: Include unistd.h.
7419
7420 1994-04-12 Francesco Potortì (pot@fly.cnuce.cnr.it)
7421
7422 * etags.c (etags_getcwd): Initialize bufsize.
7423
7424 1994-04-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7425
7426 * profile.c (gettimeofday): If system doesn't have this, define it
7427 to give a fatal error.
7428
7429 1994-04-11 Karl Heuer (kwzh@gnu.ai.mit.edu)
7430
7431 * movemail.c (main): Use setuid, not seteuid.
7432
7433 1994-04-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7434
7435 * etags.c: #undef static.
7436
7437 1994-04-08 Francesco Potortì (pot@fly.cnuce.cnr.it)
7438
7439 * etags.c (outf, outfiledir): Rename to tagf, tagfiledir.
7440 (PF_funcs, Asm_funcs, L_funcs, PAS_funcs, TEX_funcs)
7441 (Scheme_funcs, prolog_funcs): Rename to Fortran_functions,
7442 Asm_labels, Lisp_functions, Pascal_functions, Scheme_functions,
7443 TeX_functions, Prolog_functions.
7444 (inf): No more a global variable.
7445 (C_entries): Take 2nd parameter `inf' instead of using the global one.
7446 (find_entries): Add the cp1 var for optimization.
7447 (find_entries): Add more suffixes for assembler files.
7448 (Asm_funcs): Now finds labels even without an ending colon.
7449
7450 1994-03-30 Francesco Potortì (pot@fly.cnuce.cnr.it)
7451
7452 * etags.c (main): Use etags_getcwd for compatibility.
7453 (etags_getcwd): New function.
7454
7455 1994-03-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7456
7457 * Makefile.in (etags, ctags): Pass -D for VERSION.
7458
7459 1994-03-25 Francesco Potortì (pot@cnuce.cnr.it)
7460
7461 * etags.c (emacs_tags_format, ETAGS): Remove. Use CTAGS instead.
7462 (main): Don't allow the use of -t and -T in etags mode.
7463 (print_help): Don't show options enabled by default.
7464 (print_version): Show the emacs version number if VERSION is #defined.
7465 (find_entries): Add "ss" as suffix for Chez Scheme.
7466
7467 1994-03-23 Francesco Potortì (pot@cnuce.cnr.it)
7468
7469 * etags.c (cwd, outfiledir): Vars added.
7470 (relative_filename, absolute_filename, absolute_dirname):
7471 functions added to compute filenames in tags files.
7472 (process_file): Filenames in tags file are relative to the
7473 directory where the tags file is (useful with the -o option).
7474 (main): Initialize the outfiledir var.
7475 (TYPEDST): Add the `tignore' value.
7476 (C_entries): Corrected various small bugs.
7477
7478 1994-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7479
7480 * Makefile.in (UTILITIES): `env' deleted.
7481 (env): Target deleted.
7482 * env.c: File deleted.
7483
7484 1994-03-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7485
7486 * Makefile.in (install, ${archlibdir}): Switch back to ..
7487 before running INSTALL_PROGRAM.
7488
7489 1994-03-14 Francesco Potortì (pot@cnuce.cnr.it)
7490
7491 * etags.c (TYPEDST): Add the `tignore' value.
7492 (C_entries): Corrected various bugs, now correctly parses the
7493 `extern "C" {' construction (patch by Tom R.Hageman).
7494
7495 1994-03-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7496
7497 * b2m.c: Use <...> to include config.h.
7498 Don't include stdlib.h.
7499
7500 1994-03-03 Heiko Muenkel (muenkel@tnt.uni-hannover.de)
7501
7502 * b2m.c (main): Change delimiter from "^L" to "^_^L".
7503 Allow for text following "BABYL OPTIONS:".
7504 Add --help option. Use argv[0] in error messages.
7505
7506 1994-03-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7507
7508 * emacsclient.c (main) [HAVE_SYSVIPC]:
7509 Make msgp->mtext longer if necessary.
7510 On HPUX, error if it's more than 512 chars.
7511
7512 1994-02-26 David J. MacKenzie (djm@geech.gnu.ai.mit.edu)
7513
7514 * etags-vmslib.c: Use GPL.
7515 * emacstool.c: Use GPL.
7516 * fakemail.c: Update GPL.
7517
7518 * make-path.c (main): Return 1 on error, not -1.
7519 Update GPL.
7520
7521 * cvtmail.c: Declare malloc, realloc, xmalloc, xrealloc, getenv.
7522 (xmalloc, xrealloc): Return char *, not int.
7523 (error): Write to stderr, not stdout.
7524 Update GPL.
7525
7526 1994-02-23 Karl Heuer (kwzh@gnu.ai.mit.edu)
7527
7528 * profile.c (main, get_time): Don't crash on invalid input.
7529
7530 1994-02-22 Karl Heuer (kwzh@gnu.ai.mit.edu)
7531
7532 * profile.c (get_time): Simplify; avoid calling index.
7533 (main): Exit on EOF.
7534
7535 1994-02-17 Francesco Potortì (pot@cnuce.cnr.it)
7536
7537 * etags.c (--absolute-pathnames): Option removed.
7538
7539 1994-02-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7540
7541 * fakemail.c (put_line): Don't break the line if it all fits.
7542
7543 1994-02-14 Francesco Potortì (pot@fly)
7544
7545 * etags.c (absolute_pathnames, cwd): Add global vars.
7546 (longopts, print_help, main, process_file): Put absolute filenames
7547 in the tag file if the -A --absolute-pathnames option is used.
7548 (print_help): Alphabetically order the options.
7549 (malloc, realloc, strcpy, strncpy, strcmp): Remove extern declar.
7550
7551 1994-02-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7552
7553 * Makefile.in (C_SWITCH_MACHINE): Get this from autoconf.
7554 (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Use C_SWITCH_MACHINE.
7555
7556 1994-02-07 Christian Lynbech (lynbech@avignon)
7557
7558 * emacsserver.c (main) [HAVE_SYSVIPC]: Reverse test of fork value.
7559
7560 1994-02-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7561
7562 * Makefile.in (UTILITIES): Mention profile.
7563 (profile): New target.
7564
7565 * profile.c: New file.
7566
7567 1994-01-16 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7568
7569 * make-docfile.c: Make the argument list output look more like the
7570 Lisp docstrings do.
7571 (write_c_args): Take new arg FUNC. Make output
7572 look like lisp call prototypes: (function ARG1 ARG2), upcasing args.
7573 (scan_c_file): Pass BUF to write_c_args for FUNC arg.
7574
7575 1994-01-14 Francesco Potortì (pot@cnuce.cnr.it)
7576
7577 * etags.c (stab_entry, stab_create, stab_find, stab_search,
7578 stab_type, add_keyword, C_reate_stab, C_create_stabs): Delete.
7579 Use gperf generated hash table instead of linked list.
7580 (C_stab_entry, hash, in_word_set, get_C_stab, C_symtype): Add.
7581 Mostly code generated by gperf.
7582 (consider_token): Remove unused parameter `lp'.
7583 (PF_funcs, getit): Allow subroutine and similar declarations
7584 to span multiple lines.
7585 (C_entries): Check for newline if inchar to avoid bus errors.
7586 (process_file, find_entries): Distinguish among nonexistent
7587 and not regular file.
7588
7589 1994-01-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7590
7591 * timer.c: Include errno.h; don't include fasync.h.
7592 (schedule): Don't return a value.
7593 (sigcatch): Reestablish the handler first.
7594 (getevent): Always call notify at the end.
7595 (notify): Defer alarms around the whole body of function.
7596
7597 1994-01-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7598
7599 * timer.c (main): Don't request SIGIO, and don't handle it.
7600 Loop calling getevent.
7601 (sigcatch): Delete code to handle SIGIO.
7602 if defer_alarms is set, don't call notify, just set alarm_deferred.
7603 (getevent): Use read, not getchar. Handle EINTR and EAGAIN.
7604 Set defer_alarms around realloc and schedule.
7605 If alarm_deferred gets set, call notify.
7606 Likewise if this event is the only pending event.
7607 Make buf and buf_size global variables.
7608 Don't malloc buf if it is already non-zero.
7609 (schedule): Just exit if run out of memory.
7610 Return the number of events.
7611 (signal) [_CX_UX]: Add #undef.
7612
7613 1994-01-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7614
7615 * timer.c [USG] (SIGIO): Define as SIGPOLL.
7616 (main) [USG]: Do ioctl to enable SIGPOLL.
7617
7618 1994-01-08 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7619
7620 * timer.c: Don't declare sys_errlist; declare strerror instead.
7621 (schedule, main): Call strerror instead of using sys_errlist.
7622 * movemail.c (get_errmsg, pfatal_with_name, pfatal_and_delete):
7623 Call strerror instead of using sys_errlist.
7624 * env.c (main): Call strerror instead of using sys_errlist.
7625 * emacsclient.c: Don't declare sys_errlist; declare strerror instead.
7626 (main): Call strerror instead of using sys_errlist.
7627 * emacsclient.c [! HAVE_STRERROR] (strerror): Define the function.
7628 * env.c [! HAVE_STRERROR] (strerror): Likewise.
7629 * timer.c [! HAVE_STRERROR] (strerror): Likewise.
7630 * movemail.c [! HAVE_STRERROR] (strerror): Likewise.
7631
7632 1994-01-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7633
7634 * hexl.c: Fix up whitespace. Get rid of spurious casts to void.
7635
7636 * movemail.c (malloc): Don't declare it.
7637 (xmalloc): Cast result of malloc.
7638 (strcpy): Don't declare it.
7639
7640 1993-11-14 Morten Welinder (terra@diku.dk)
7641
7642 * hexl.c [MSDOS]: Use binary file modes for non-text side of pipe.
7643 (main): Use fclose to close file opened by fopen.
7644
7645 * fakemail.c (main) [MSDOS]: Dummy stub just to make the file compile.
7646
7647 * movemail.c [MSDOS]: #undef `access'.
7648
7649 * b2m.c (main) [MSDOS]: Open all files as binary.
7650 * etags.c (main) [MSDOS]: Open all files as binary.
7651
7652 * make-docfile.c [MSDOS]: Use text/binary mode as appropriate.
7653 (scan_c_file, scan_lisp_file): Extra parameter for the mode to open
7654 with.
7655
7656 1994-01-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7657
7658 * Makefile.in (ALL_CFLAGS): Include LDFLAGS.
7659 Use ALL_CFLAGS in all the rules that compile and link with one cmd.
7660 (LINK_CFLAGS): New variable.
7661 (timer): Use LINK_CFLAGS.
7662
7663 1993-12-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7664
7665 * movemail.c: Include syswait.h.
7666 Fork a subprocess and use it to copy the mail file.
7667
7668 1993-12-07 Richard Stallman (rms@srarc2)
7669
7670 * make-docfile.c (scan_lisp_file): Don't add newline at end of string.
7671
7672 1993-12-04 Richard Stallman (rms@srarc2)
7673
7674 * movemail.c (main): When making tempname, cast result of xmalloc.
7675 Include room for EXXXXXX in the size.
7676 Don't use result of strcpy.
7677
7678 1993-12-03 Paul Eggert (eggert@twinsun.com)
7679
7680 * vcdiff: Add --brief option.
7681
7682 1993-12-02 Richard Stallman (rms@srarc2)
7683
7684 * Makefile.in (${archlibdir}, install): Use $(INSTALL_PROGRAM)
7685 for all executables and scripts.
7686
7687 1993-11-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7688
7689 * Version 19.22 released.
7690
7691 1993-11-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7692
7693 * Makefile.in (mostlyclean): Make it distinct from clean.
7694
7695 1993-11-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7696
7697 * Makefile.in (${archlibdir}): Don't do chown or chgrp.
7698
7699 1993-11-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7700
7701 * Version 19.21 released.
7702
7703 * Makefile.in (install): Don't change mode or group when installing.
7704
7705 * etags.c (FUNCST, TYPEDST, STRUCTST, DEFINEST): Delete excess commas.
7706
7707 1993-11-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7708
7709 * make-docfile.c (read_c_string): For "", concatenate the two strings.
7710
7711 * movemail.c (main): Fix error message text.
7712
7713 1993-11-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7714
7715 * Version 19.20 released.
7716
7717 1993-11-08 Tom Hageman (tom@basil.icce.rug.nl)
7718
7719 * etags.c (C_entries): Keep track of ()-parenthesis level so that
7720 functions returning a pointer to a function, a la `signal', can be
7721 parsed. This also required new state `fstartlist' to `FUNCST'.
7722 (SAVE_TOKEN, RESTORE_TOKEN, TOKEN_SAVED_P): 1-deep token save stack.
7723 (C_entries, CNL): Use it to isolate preprocessor directive processing
7724 from the other state engines.
7725 (begtk): Add '~', for C++ class destructors.
7726
7727 1993-11-02 Francesco Potortì (pot@cnuce.cnr.it)
7728
7729 * etags.c (consider_token): Remove unused variable firsttok.
7730 (prolog_getit): Call pfnote with the right number of arguments.
7731
7732 1993-10-19 Paul Eggert (eggert@twinsun.com)
7733
7734 * rcs2log (printlogline): Don't generate lines containing only
7735 white space.
7736
7737 1993-10-04 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7738
7739 * Makefile.in (${archlibdir}):
7740 Install ${SCRIPTS} from ${srcdir}, not cwd.
7741
7742 1993-10-03 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7743
7744 * Makefile.in: Fixed typos or brainos of whoever thought `@' was
7745 the comment character.
7746
7747 1993-10-01 Francesco Potortì (pot@cnuce.cnr.it)
7748
7749 * etags.c (process_file): Dead code removed.
7750 (S_ISREG): #define it using S_IFREG if not defined.
7751 (process_file): Regular files have nothing to do with symlinks.
7752
7753 1993-09-28 Brian J. Fox (bfox@ai.mit.edu)
7754
7755 * Makefile.in (${archlibdir}): Install ${SCRIPTS} from ${srcdir}, not
7756 from current directory. Only chmod and chgrp files that we
7757 installed, which excludes ${INSTALLABLE_SCRIPTS}. They go in
7758 ${bindir}.
7759 (INSTALLFLAGS): Delete definition, since it is an unused variable
7760 now.
7761
7762 1993-09-27 Brian J. Fox (bfox@ai.mit.edu)
7763
7764 * Makefile.in (INSTALL, INSTALL_PROGRAM, INSTALL_DATA):
7765 Let configure figure out the correct values for these variables.
7766
7767 1993-09-14 Brian J. Fox (bfox@ai.mit.edu)
7768
7769 * Makefile.in (archlibdir): Only install executables internally
7770 used by emacs; don't install bindir binaries here.
7771
7772 1993-09-24 Paul Eggert (eggert@twinsun.com)
7773
7774 * rcs2log: Add -h, -n, -r options.
7775 By default, look for *,v files as well as RCS/*,v files.
7776 Use $TMPDIR (default /tmp) instead of /tmp.
7777
7778 1993-09-20 Francesco Potortì (pot@fly)
7779
7780 * etags.c (C_entries): is_func is initialized here instead of in
7781 consider_token for the sake of the yacc rules section.
7782 (C_entries): Now class, struct, enum, union and typedef produce
7783 named tags.
7784
7785 1993-09-11 Roland McGrath (roland@baalperazim.gnu.ai.mit.edu)
7786
7787 * yow.c: Include <src/paths.h>, instead of "src/paths.h".
7788
7789 1993-09-10 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7790
7791 * Makefile.in: Support configuring in a different directory when
7792 ${srcdir} has already been configured.
7793 (ALL_CFLAGS, CPP_CFLAGS): Put -I. -I../src before -I${srcdir}
7794 -I${srcdir}/../src.
7795 (b2m, movemail, fakemail, env, emacsserver, emacsclient,
7796 getdate.o, timer.o, timer): Remove `-I${srcdir}/../src', since it
7797 is already in CPP_FLAGS.
7798 * etags.c, emacsclient.c, wakeup.c, timer.c, b2m.c, fakemail.c,
7799 movemail.c, emacsserver.c: Include <config.h> instead of "config.h".
7800
7801 1993-08-25 Paul Eggert (eggert@twinsun.com)
7802
7803 * rcs2log: Change /{/ to /\{/ for POSIX ERE compatibility;
7804 otherwise, HP awk complains.
7805
7806 * vcdiff: Append /usr/ccs/bin and /usr/sccs to PATH, since these
7807 are common hangouts for SCCS commands.
7808
7809 1993-08-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7810
7811 * Version 19.19 released.
7812
7813 1993-08-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7814
7815 * Makefile.in (make-path): Dep on config.h.
7816
7817 1993-08-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7818
7819 * b2m.c (TRUE, FALSE): Don't define if already defined.
7820
7821 1993-08-09 Paul Eggert (eggert@twinsun.com)
7822
7823 * rcs2log (awkscript):
7824 Some sites put comma-separated junk after the fullname.
7825 Remove it, but leave "Bill Gates, Jr" alone.
7826 Remove the junk from fullnames like "0000-Admin(0000)".
7827
7828 1993-08-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7829
7830 * Version 19.18 released.
7831
7832 1993-08-04 Francesco Potortì (pot@spiff.gnu.ai.mit.edu)
7833
7834 * etags.c (L_isdef, L_isquote, L_getit): Small optimizations.
7835 (L_funcs): The (foo::defmumble stuff now should work.
7836 (consider_token): Function returned random value--corrected.
7837 (C_entries): Corrected == versus = typo.
7838
7839 1993-08-01 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7840
7841 * etags.c (put_entries): For NODE->rewritten, put pattern before
7842 \177 and name after, not vice versa.
7843
7844 1993-08-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7845
7846 * timer.c (main): Generate a SIGIO as soon as we've initialized.
7847
7848 1993-07-30 Francesco Potortì (pot@cnuce.cnr.it)
7849
7850 * etags.c (FINCST): Add the fignore status. Means we are
7851 after the parameter list and before the open curly brace.
7852 Allows correct parsing of C++ constructors.
7853 (C_entries, consider_token): Make use of fignore.
7854 (consider_token): Reset funcdef when next_token_is_func: when in
7855 ctags mode makes DEFVAR and others work better.
7856 (L_isquote): Function that recognizes the "(quote" string.
7857 (L_getit): Ignore quoting via "'" or "(quote". Useful for defalias.
7858
7859 1993-07-29 Paul Eggert (eggert@twinsun.com)
7860
7861 * rcs-checkin: Don't check whether a file is readable until we have
7862 decided not to ignore it.
7863
7864 1993-07-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7865
7866 * Makefile.in (etags): Depend on ../src/config.h.
7867
7868 * emacsserver.c: Include types.h before file.h.
7869
7870 1993-07-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7871
7872 * Makefile.in (install): Use .n, not .new, for temporary filenames.
7873
7874 1993-07-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7875
7876 * Version 19.17 released.
7877
7878 1993-07-15 Jim Blandy (jimb@totoro.cs.oberlin.edu)
7879
7880 * etags.c (print_help): Break up the very long strings containing
7881 the help message into shorter strings, to placate chintzy C
7882 compilers which can't handle strings that long.
7883
7884 * wakeup.c: Use CPP tangle from autoconf manual to #include the
7885 correct combination of <time.h> and <sys/time.h>.
7886
7887 1993-07-08 Francesco Potortì (pot@cnuce.cnr.it)
7888
7889 * etags.c (alloca): Remove all references to it.
7890 (main): Now calls xnew instead of alloca for portability.
7891 (../src/config.h): Included only if HAVE_CONFIG_H.
7892 (const): Void definition removed--config.h takes care of it.
7893
7894 1993-07-08 Francesco Potortì (pot@cnuce.cnr.it)
7895
7896 * etags.c (consider_token): Was `==', now is `='.
7897 (consider_token): DEFUNs now treated like funcs in ctags mode.
7898
7899 * etags.c (LEVEL_OK_FOR_FUNCDEF): Remove.
7900 (C_entries): Optimize the test that used LEVEL_OK_FOR_FUNCDEF.
7901 (C_entries): Remove a piece of useless code.
7902 (C_entries): Making typedef tags is delayed until a semicolon
7903 is met. This handles "typedef int X, Y, Z;" correctly.
7904
7905 1993-07-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7906
7907 * Version 19.16 released.
7908
7909 * b2m.c: #include <sys/types.h>.
7910 (ltoday): Declare this to be time_t.
7911
7912 1993-06-30 Paul Eggert (eggert@twinsun.com)
7913
7914 * vcdiff: Add -q option.
7915
7916 1993-06-29 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7917
7918 * etags.c: #include "config.h" and the alloca CPP tangle before
7919 #including the system headers and getopt.h. AIX requires the
7920 #pragma to come before any actual C code.
7921
7922 1993-06-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7923
7924 * Makefile.in (ctags): Depend on etags, so that parallel makes
7925 don't write etags.o files on top of each other.
7926
7927 1993-06-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7928
7929 * version 19.15 released.
7930
7931 1993-06-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7932
7933 * etags.c (add_node): Move var last_node to file scope.
7934
7935 1993-06-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7936
7937 * Version 19.14 released.
7938
7939 1993-06-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7940
7941 Bring mumbleclean targets into conformance with GNU coding standards.
7942 * Makefile.in (distclean): Call clean to do most of the work.
7943 Delete aixcc.c and TAGS.
7944 (realclean): Just call distclean.
7945
7946 * Makefile.in: Remember, spaces are not tabs.
7947
7948 1993-06-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7949
7950 * Makefile.in (CPP_CFLAGS): New variable.
7951 Use it instead of ALL_CFLAGS when compiling a .c file.
7952 (getopt.o, getopt1.o): Add explicit compilation commands.
7953
7954 1993-06-10 Mark D. Baushke (mdb@cisco.com)
7955
7956 * etags.c: Reinstate old -f option as an alias for -o for
7957 installed base uses.
7958
7959 1993-06-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7960
7961 * emacsserver.c (main): When we're passing a `struct sockaddr_un'
7962 to bind or accept, cast the pointer, to avoid warnings on systems
7963 which declare prototypes for this.
7964 * emacsclient.c (main): Same.
7965
7966 * Makefile.in (YACC): New variable, to be set by top-level Makefile.
7967
7968 1993-06-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7969
7970 * Version 19.13 released.
7971
7972 * wakeup.c: Include sys/types.h, too; I think that's where time_t
7973 comes from, not sys/time.h.
7974
7975 1993-06-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7976
7977 * wakeup.c: Include sys/time.h.
7978
7979 * etags.c: #undef static.
7980
7981 * Version 19.12 released.
7982
7983 * Makefile.in (all): Exclude INSTALLABLE_SCRIPTS and SCRIPTS from deps.
7984
7985 1993-06-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7986
7987 * Version 19.11 released.
7988
7989 * timer.c [LINUX]: #undef signal.
7990 * emacsserver.c: #undef signal.
7991
7992 1993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7993
7994 * wakeup.c (main): Make when a time_t.
7995
7996 1993-05-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
7997
7998 * Makefile.in (${archlibdir}): Use `(cd foo && pwd)' instead of
7999 `(cd foo ; pwd)' to get the canonical name of a directory; cd
8000 might fail, and have pwd print out the current directory.
8001
8002 * movemail.c [MAIL_USE_POP] (main): Don't use non-portable
8003 string-handling functions.
8004
8005 1993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8006
8007 * Version 19.10 released.
8008
8009 1993-05-29 Paul Eggert (eggert@twinsun.com)
8010
8011 * rcs2log: When given no file arguments, inspect RCS/.* as well
8012 as RCS/*. Don't report an error if RCS is empty or nonexistent.
8013
8014 1993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8015
8016 * Makefile.in (timer): Link with $(LOADLIBES).
8017
8018 1993-05-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8019
8020 * fakemail.c (put_line): Don't output \n\t unless more text follows.
8021
8022 1993-05-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
8023
8024 * etags.c: Replace the CPP tangle for alloca with the one from the
8025 autoconf documentation, since that's working elsewhere.
8026
8027 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
8028
8029 * Makefile.in (ALL_CFLAGS): Add "-I.", so the system and machine
8030 description files can find their ancestors.
8031
8032 1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8033
8034 * Makefile.in (install): Get the scripts from ${srcdir},
8035 unlike the executables.
8036 (ALL_CFLAGS): Add -I../src.
8037
8038 1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
8039
8040 * Version 19.9 released.
8041
8042 1993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8043
8044 * Makefile.in (install): Do install the programs listed in
8045 INSTALLABLE_SCRIPTS. Make the renaming loop use INSTALLABLES and
8046 INSTALLABLE_SCRIPTS, instead of writing the programs out.
8047
8048 * Makefile.in (ALL_CFLAGS): Include -I${srcdir}.
8049 (getopt.o, getopt1.c): Use ${srcdir} as appropriate.
8050
8051 1993-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8052
8053 * etags.c: Include ../src/config.h.
8054
8055 * Makefile.in (install): Don't handle INSTALLABLE_SCRIPTS
8056 in first loop. Delete files from bindir before installing new ones.
8057 (ALL_CFLAGS): Use ${srcdir} to find .../src dir.
8058
8059 1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8060
8061 * Version 19.8 released.
8062
8063 * make-docfile.c: Doc fix.
8064
8065 1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8066
8067 * tcp.c: Fix comment syntax at top of file.
8068 (main): Don't call htons with the port number.
8069
8070 1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8071
8072 * Makefile.in (timer.o, sorted-doc.c): Link with alloca.o, if it's
8073 appropriate.
8074
8075 * Makefile.in (install): Refer to the variables INSTALLABLES and
8076 INSTALLABLE_SCRIPTS, instead of writing them out.
8077
8078 1993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8079
8080 * make-path.c (main): Return 0.
8081
8082 1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
8083
8084 * Version 19.7 released.
8085
8086 1993-05-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8087
8088 * make-docfile.c (scan_lisp_file): Recognize defalias like fset.
8089
8090 1993-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8091
8092 * tcp.c: New file.
8093
8094 1993-05-18 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8095
8096 * Makefile.in (.c.o): Make the rule start with a tab, not spaces.
8097
8098 1993-05-15 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
8099
8100 * timer.c (notify): Don't call sighold or sigrelse; they're USG
8101 only. We should really fix this later, but let's just make it
8102 compile for now.
8103
8104 Install patches from David J. Mackenzie to make the srcdir option
8105 work.
8106 * Makefile.in (srcdir, VPATH): Get this value from the top-level
8107 Makefile.
8108 (INSTALLABLES): Split this into two lists - INSTALLABLES and
8109 INSTALLABLE_SCRIPTS.
8110 (INSTALLABLE_SCRIPTS): New list.
8111 (EXECUTABLES): Include INSTALLABLE_SCRIPTS.
8112 (${archlibdir}): The scripts to be installed live in the source
8113 tree, not in the object tree.
8114 (test-distrib): Note that the data file lives in the source tree,
8115 not the object tree.
8116 (GETOPTDEPS): Note that getopt.h lives in the source tree.
8117 (all other targets): Change references to source files to use
8118 ${srcdir}, except for config.h, which lives in the object dir.
8119 (timer.o): Note that this depends on ../src/config.h.
8120 * make-docfile.c (main): Add a -d option, to tell it where to find
8121 the source files.
8122 * test-distrib.c (main): Take the name of the distribution file to
8123 test from the command line.
8124
8125 * timer.c: Fix misspellings of get_date function's name.
8126
8127 1993-05-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8128
8129 * etags.c (main):
8130 Don't require that there be input files if -i switches were given.
8131
8132 1993-05-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8133
8134 The GNU coding standards specify that CFLAGS should be left for
8135 users to set.
8136 * Makefile.in (CFLAGS): Put this in the "things configure might
8137 edit" section, and have it default to -g.
8138 (ALL_CFLAGS): New variable, set to all the flags which should be
8139 passed to compilations. Replace all other uses of CFLAGS with
8140 ALL_CFLAGS.
8141 (.c.o): New rule, to pass ALL_CFLAGS to compilations.
8142
8143 * Makefile.in (DEFS): Remove this; it's always just going to be
8144 "-DHAVE_CONFIG_H -Demacs".
8145
8146 1993-05-03 Paul Eggert (eggert@twinsun.com)
8147
8148 * rcs2log: mawk, SunOS 4.1.3 nawk, and Ultrix/MKS nawk all barf on
8149 /[/]/, so change it to /[\/]/. This should work on all
8150 POSIX-compliant awks. It's slightly wrong with traditional awk,
8151 since it matches \ too, but that's a minor problem compared to awk
8152 syntax errors.
8153
8154 1993-05-01 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
8155
8156 * Makefile.in (ALLOCA): New variable, whose value we should
8157 inherit from the top-level makefile.
8158 (etags, ctags): Include ALLOCA in the list of object files that
8159 these executables depend on and link.
8160
8161 1993-04-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8162
8163 * Makefile.in (DEFS): Rename from CONFIG_CFLAGS.
8164
8165 1993-04-07 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
8166
8167 * make-docfile.c (write_c_args): Print an argument named "defalt"
8168 as "default".
8169
8170 1993-03-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
8171
8172 * Makefile.in (C_SWITCH_SYSTEM): New variable.
8173 (CFLAGS): Include C_SWITCH_SYSTEM in the flags to pass to the
8174 compiler.
8175
8176 1993-03-22 Francesco Potortì (pot@cnuce.cnr.it)
8177
8178 * etags.c (YACC): Flag added to c_ext.
8179 (c_ext): No more a synonim for c_ext&C_PLPL because of YACC.
8180 (find_entries): Consistently use streq when reasonable.
8181 (find_entries): A .y file is a yacc file.
8182 (get_C_stab): c_ext becomes c_ext&C_PLPL.
8183 (C_entries): Logical cplpl means c_ext&C_PLPL.
8184 (C_entries): Logical yacc_rules means we are after the first %%.
8185 (C_entries): Add logic for yacc files.
8186
8187 1993-03-16 Francesco Potortì (pot@cnuce.cnr.it)
8188
8189 * etags.c (C_entries): ':' case moved to the second switch.
8190 (C_entries): Do not examine token if structdef==scolonseen.
8191 (consider_token): structtag set to null string for enum.
8192
8193 1993-03-12 Francesco Potortì (pot@cnuce.cnr.it)
8194
8195 * etags.c (GET_COOKIE): And related macros removed.
8196 (logical): Is now int, no more a char.
8197 (reg): Define deleted.
8198 (isgood, _gd, notgd): Delete.
8199 (gotone): Delete.
8200 (TOKEN): Member linestart removed.
8201 (linepos, prev_linepos, lb1): Delete.
8202 (main): Call initbuffer on lbs array instead of lb1.
8203 (init): Remove the initialization of the logical _gd array.
8204 (find_entries): A .sa suffix means assembler file.
8205 (C_create_stab): "auto", "void", "extern", "static" are st_C_typespec.
8206 All C state machines rewritten.
8207 (C_entries): Complete rewrite.
8208 (condider_token): Complete rewrite.
8209 (getline): Delete.
8210
8211 1993-03-01 Francesco Potortì (pot@fly.CNUCE.CNR.IT)
8212
8213 * etags.c (C_entries): Add the quotednl logical variable.
8214 Used for parsing of #define's spanning multiple lines.
8215
8216 1993-02-23 Francesco Potortì (pot@fly.CNUCE.CNR.IT)
8217
8218 * etags.c (C_entries): Save the definedef status even when a
8219 newline is met inside a string.
8220
8221 1993-03-19 Eric S. Raymond (eric@geech.gnu.ai.mit.edu)
8222
8223 * Makefile.in (EXECUTABLES): Add rcs-checkin.
8224
8225 * Makefile.in (unlock, relock): New productions.
8226
8227 1993-03-16 Paul Eggert (eggert@twinsun.com)
8228
8229 * rcs2log: Some awks don't understand "\r". Code around this.
8230 Unfortunately this requires putting a carriage return in the
8231 source code. Don't assume that rlog will tolerate times like
8232 `10:10:60'; RCS 5.7 won't allow this.
8233
8234 1993-03-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8235
8236 * timer.c (main): Set the ownership of the stdin file descriptor
8237 to the current process. Print error messages if either of the
8238 fcntl's fails.
8239
8240 * timer.c (sigcatch): Declare this to return SIGTYPE (defined in
8241 ../src/config.h), not void.
8242
8243 1993-03-06 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8244
8245 * b2m.c (main): Don't exit upon reading a blank line.
8246
8247 1993-03-01 Francesco Potortì (pot@fly.CNUCE.CNR.IT)
8248
8249 * etags.c (C_entries): New local variable quotednl. Used for
8250 parsing of #define's spanning multiple lines.
8251
8252 * etags.c (C_entries): Save the definedef status
8253 even when a newline is met inside a string.
8254
8255 1993-02-26 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8256
8257 * timer.c (notify): Initialize waitfor properly.
8258
8259 1993-02-22 Francesco Potortì (pot@CNUCE.CNR.IT)
8260
8261 * etags.c (C_entries): Don't reset definedef when a newline inside a
8262 comment is met.
8263
8264 1993-01-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8265
8266 * etags.c (find_entries): If filename ends in .f or .for,
8267 don't try anything but Fortran.
8268
8269 1993-01-08 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
8270
8271 * timer.c (notify): Flush stdout after writing message to avoid lossage
8272 on terminals.
8273
8274 (notify): Also, write a newline after the token.
8275
8276 1992-12-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8277
8278 * Makefile.in (exec_prefix): New variable.
8279 (bindir, libdir): Use it instead of `prefix'.
8280
8281 * Makefile.in (CFLAGS): #define HAVE_CONFIG_H, too.
8282
8283 * Makefile.in (libdir): Default to ${prefix}/lib.
8284 (archlibdir): Adjust to match.
8285
8286 * Makefile.in (distclean): Don't delete backup or autosave files.
8287 (extraclean): Like realclean, but does delete backup and autosave
8288 files.
8289
8290 * Makefile.in (realclean): Ignore errors from rm.
8291
8292 * Makefile.in (distclean): Don't bother to delete ../arch-lib;
8293 that doesn't exist anymore.
8294
8295 1992-12-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8296
8297 * Makefile.in (prefix, bindir, libdir, srcdir): New variables, as
8298 described in the top-level Makefile.
8299 (UTILITIES): Add make-path to the list of utility programs.
8300 (../arch-lib): Replace by the ${archlibdir} target, which places
8301 the executables in their permanent home.
8302 (install, install.sysv, install.xenix): Consolidated into one
8303 target which should work under all circumstances, modulo a few
8304 ignored error messages.
8305
8306 * make-docfile.c (scan_c_file): Since DEFVAR_PER_BUFFER now takes
8307 a different number of arguments than other DEFVARs, recognize it
8308 specially, and expect the right number of commas.
8309
8310 1992-12-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8311
8312 * make-path.c: New program, to help with the installation process.
8313 * Makefile.in (make-path): New target.
8314
8315 * make-path.c (touchy_mkdir): Remove debugging output.
8316
8317 1992-11-05 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8318
8319 * Makefile.in (getdate.o): Add explicit target for this, so we
8320 can indicate that it depends on ../src/config.h.
8321
8322 1992-11-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
8323
8324 * Makefile.in (CONFIG_CFLAGS): Let the configure script edit this
8325 instead of CFLAGS.
8326 (CFLAGS): Add -Demacs and -I../src to CONFIG_CFLAGS to produce this.
8327
8328 1992-09-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8329
8330 * getdate.y: Correctly recognize Mt. Xinu BSD running on an HP
8331 9000/300 as BSD; don't include both <sys/time.h> and <time.h> on
8332 that system.
8333
8334 * Makefile.in (arch-lib): Give rm the `-f' option.
8335
8336 1992-09-28 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8337
8338 * make-docfile.c (write_c_args): Rewritten to correctly print
8339 &optionals before the first identifier, but after the first paren.
8340 This code used to just wait for commas or spaces; now it notices
8341 identifier boundaries.
8342
8343 1992-09-26 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8344
8345 * rcs2log: When getting date, use %02d instead of %.2d in awk printf.
8346
8347 1992-09-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8348
8349 * make-docfile.c (write_c_args): Print the argument lists properly
8350 when the first argument is optional.
8351
8352 1992-09-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8353
8354 * sorted-doc.c (main): Redefine special chars to use fonts tensy, teni.
8355 Redefine @item. Set catcode of +.
8356
8357 1992-08-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8358
8359 * emacsclient.c (main): Set IPC_CREAT in msgget call.
8360
8361 1992-08-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8362
8363 * etags.c (TEX_funcs): Keep just 1 of two redundant nested loops.
8364 (TEX_decode_env): Make `tab' one element longer.
8365
8366 1992-08-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8367
8368 * etags.c (PF_funcs): Recognize the "entry" keyword.
8369
8370 1992-08-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8371
8372 * Makefile.in: Add rcs2log and vcdiff to the list of utilities.
8373
8374 1992-08-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8375
8376 * timer.c (events): Rather than having slots marked as in use or
8377 out of use by the `token' field, keep all pending events at the
8378 beginning of the array. When we delete an event in the middle of
8379 the array, we move the last event into its place.
8380 (num_events): New variable.
8381 (schedule): It is now cheaper to find a free event slot;
8382 events[num_events] is the first free slot.
8383 (notify): Scan events[0 .. num_events-1], instead of the whole
8384 array. When an event fires, move the last event in the array into
8385 its spot. Use num_events to determine whether or not there are
8386 any pending events, not wait_for.
8387 (getevent): Delete unused variable `ep'.
8388 (sigcatch): It's now easier to find all the active events.
8389 (main): Initialize num_events.
8390
8391 * etags.c: Rather than fret about which systems have index and
8392 which systems have strchr, and how to tell the difference between
8393 them, we just write out our own versions. Big deal.
8394 (index, rindex): Extern declarations removed.
8395 (NEED_INDEX, NEED_RINDEX): Special hacks for hpux removed.
8396 (etags_index, etags_rindex): New declarations.
8397 (process_file, find_entries, pfnote, TEX_funcs, TEX_decode_env,
8398 TEX_getit, substr): Use the etags_*index functions, rather than
8399 the native *index functions.
8400 (rindex, index): Rename to etags_rindex and tags_rindex, and
8401 made them unconditionally defined, rather than having them depend
8402 on NEED_*INDEX.
8403
8404 * etags.c (savenstr): Add declaration for this at top of file.
8405 (TEX_decode_env): Don't declare it local to this function.
8406
8407 * b2m.c: #include "../src/config.h", so we can test for the USG
8408 macro, and decide whether to include <string.h> or <strings.h>.
8409 * Makefile.in: Note that b2m.c depends on ../src/config.h.
8410
8411 1992-08-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8412
8413 * timer.c: Reformatted according to the GNU coding standards.
8414 Removed arbitrary limits on the number of events queued and the
8415 length of the tokens used to identify them.
8416 Removed casts to (void).
8417 Removed debugging printfs; they clutter the code, and the need
8418 can be better filled using a real debugger.
8419
8420 1992-08-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8421
8422 * timer.c: Installed new version from Eric Raymond; this is more
8423 portable, since it doesn't try to use SIGIO.
8424
8425 1992-07-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8426
8427 * emacsclient.c (main): If we can't find the socket in this
8428 person's home directory, print a message which asks if they've
8429 started the server, instead of just printing the message from
8430 sys_errmsg; Cygnus finds that people are much less confused by
8431 this.
8432
8433 1992-07-14 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8434
8435 * etags.c: Rather than defining "notdef" when "hpux" is #defined,
8436 so that index and rindex get defined, why don't we actually
8437 control index and rindex using symbols called "NEED_INDEX" and
8438 "NEED_RINDEX", and define them if hpux is defined? Isn't that a
8439 little more readable than defining something whose name implies
8440 that it's not?
8441
8442 1992-07-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8443
8444 * movemail.c: Merged changes from Jamie Zawinski's byte compiler
8445 distribution:
8446 Miscellaneous doc fixes.
8447 (skip_white, read_lisp_symbol): New functions.
8448 (scan_lisp_file): Instead of using long hairy strings of ifs, call
8449 read_lisp_symbol and then see what we got. Call skip_white
8450 instead of writing out a loop to do its job. Correctly extract
8451 docstrings from "defmacro" declarations.
8452
8453 1992-06-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8454
8455 * movemail.c (strcpy): Declare this to return char *.
8456
8457 1992-06-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8458
8459 * etags.c (C_entries): When we find a C++ comment, do actually
8460 skip to the end of the line; do a 'break' instead of a 'continue'.
8461
8462 1992-06-11 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8463
8464 * etags.c (getit): Add missing parenthesis to expression which
8465 decides if this token is an identifier.
8466
8467 1992-06-04 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8468
8469 * etags.c (consider_token): Recognize `ENTRY' macro used in libc.
8470
8471 1992-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8472
8473 * etags.c (put_entries): Always put space between name and line num.
8474
8475 1992-05-28 Ken Raeburn (Raeburn@Cygnus.COM)
8476
8477 * etags.c (getit): Parenthesize &&/|| expression to avoid gcc
8478 warning.
8479 (LEVEL_OK_FOR_FUNCDEF): Ditto.
8480
8481 1992-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8482
8483 * make-docfile.c (write_c_args): Pass both arguments to putc.
8484
8485 1992-05-10 Roland McGrath (roland@albert.gnu.ai.mit.edu)
8486
8487 * etags.c (C_entries): Fix reading of "..." strings.
8488 (consider_token): Recognize `SYSCALL' and `PSEUDO' macros, used in
8489 the C library source.
8490
8491 * etags.c (C_entries): When we see a backslash inside a quoted
8492 string, skip to the next character. This allows us to correctly
8493 deal with strings containing quotes.
8494
8495 1992-05-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8496
8497 * make-docfile.c (write_c_args): Print the C argument names as
8498 they would be written in Elisp; print '_' as '-'.
8499
8500 1992-05-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8501
8502 * movemail.c [POP]: Get user name via getpwuid.
8503
8504 1992-05-04 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8505
8506 * Makefile.in: Flags in CC invocations rearranged for no reason.
8507
8508 1992-04-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8509
8510 * etags.c (print_help): Remember not to embed raw newlines in
8511 strings - end the lines with `\n\'.
8512
8513 1992-04-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8514
8515 * timer.c (getevent): Remove declaration of memcpy; since
8516 different systems have different return types, and we're not even
8517 using the return type anyway, it wasn't doing us any good.
8518
8519 1992-04-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8520
8521 * emacsserver.c (msgcatch): Use the SIGTYPE macro to declare the
8522 type of this function.
8523
8524 1992-04-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8525
8526 * etags.c: "--no-warning" option renamed to "--no-warn",
8527 to be consistent with other GNU programs, like makeinfo.
8528
8529 * Makefile: Renamed to Makefile.in; the configure script
8530 will edit this to produce Makefile.
8531
8532 1992-04-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
8533
8534 New directory, with files previously in ../etc. [approximate date]
8535 * README: New file.
8536 * Makefile: Copy here from ../etc/Makefile.
8537 * aixcc.lex, b2m.c, cvtmail.c, digest-doc.c:
8538 * emacsclient.c, emacsserver.c, emacstool.c, env.c:
8539 * etags-vmslib.c, etags.c, fakemail.c, getdate.c, getdate.y:
8540 * getopt.c, getopt.h, getopt1.c, hexl.c, leditcfns.c:
8541 * make-docfile.c, movemail.c, qsort.c, sorted-doc.c:
8542 * test-distrib.c, testfile, timer.c, wakeup.c, yow.c:
8543 Move here from ../etc.
8544
8545 ;; Local Variables:
8546 ;; coding: utf-8
8547 ;; End:
8548
8549 Copyright (C) 1988-1999, 2001-2015 Free Software Foundation, Inc.
8550
8551 This file is part of GNU Emacs.
8552
8553 GNU Emacs is free software: you can redistribute it and/or modify
8554 it under the terms of the GNU General Public License as published by
8555 the Free Software Foundation, either version 3 of the License, or
8556 (at your option) any later version.
8557
8558 GNU Emacs is distributed in the hope that it will be useful,
8559 but WITHOUT ANY WARRANTY; without even the implied warranty of
8560 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8561 GNU General Public License for more details.
8562
8563 You should have received a copy of the GNU General Public License
8564 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.