ChangeLog 280 KB
Newer Older
Paul Eggert's avatar
Paul Eggert committed
1 2 3 4 5
2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>

	Less 'make' chatter for lib-src
	* Makefile.in (blessmail): Less 'make' chatter here.

6 7 8 9 10 11 12 13
2014-12-27  Eli Zaretskii  <eliz@gnu.org>

	* Makefile.in (etags_libs, ebrowse${EXEEXT}, profile${EXEEXT})
	(make-docfile${EXEEXT}, movemail${EXEEXT})
	(update-game-score${EXEEXT}): Put $(NTLIB) before $(LOADLIBES),
	since GCC sometimes calls stpcpy when it sees strcpy, under
	optimization switches.

Glenn Morris's avatar
Glenn Morris committed
14 15 16 17
2014-12-14  Paul Eggert  <eggert@cs.ucla.edu>

	* etags.c (analyze_regex): Rename from analyse_regex.

Glenn Morris's avatar
Glenn Morris committed
18 19 20 21 22 23
2014-12-14  Glenn Morris  <rgm@gnu.org>

	* grep-changelog: Remove file.
	* Makefile.in (INSTALLABLE_SCRIPTS): Remove.
	(all, install, uninstall): Remove INSTALLABLE_SCRIPTS.

24 25 26 27
2014-11-23  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (emacsclient.res): Fix yesterday's thinko.

28 29
2014-11-22  Glenn Morris  <rgm@gnu.org>

30 31 32
	* Makefile.in (emacsclient.res): Update deps for nt/emacsclient.rc
	now being in the build directory, not the source directory.

33 34
	* Makefile.in (emacsclient.res): Add dependency on icons/emacs.ico.

35 36
2014-10-20  Glenn Morris  <rgm@gnu.org>

37 38
	* Merge in all changes up to 24.4 release.

39 40 41 42 43 44 45 46
2014-09-23  Paul Eggert  <eggert@cs.ucla.edu>

	movemail: don't dump core if the current time is outlandish
	* movemail.c (popmail): Check for mbx_delimit_begin failure.
	(mbx_delimit_begin): Fail if the current time is so outlandish
	that localtime would fail or asctime would have undefined
	behavior.  Use strftime to avoid asctime undefined behavior.

47 48
2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>

49
	--enable-silent-rules now suppresses more chatter.
50 51 52 53 54 55 56 57 58
	* Makefile.in (AM_DEFAULT_VERBOSITY, AM_V_CC, am__v_CC_)
	(am__v_CC_0, am__v_CC_1, AM_V_CCLD, am__v_CCLD_, am__v_CCLD_0)
	(am__v_CCLD_1): New macros, taken from Automake.
	(regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
	(profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
	(pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT})
	(emacsclientw${EXEEXT}, ntlib.o, hexl${EXEEXT})
	(update-game-score${EXEEXT}): Use them.

59 60 61 62
	* etags.c (emacs_strchr, emacs_strrchr): Remove.
	All uses replaced by strchr and strrchr, which are on all
	target platforms now.

63 64 65 66 67 68
2014-07-15  Paul Eggert  <eggert@cs.ucla.edu>

	Use "b" flag more consistently; avoid "t" (Bug#18006).
	* make-docfile.c (READ_TEXT): Remove; all uses replaced by "r".
	(READ_BINARY): Remove; all uses replaced by "rb".

69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
2014-07-14  Paul Eggert  <eggert@cs.ucla.edu>

	Use binary-io module, O_BINARY, and "b" flag (Bug#18006).
	* etags.c, hexl.c, make-docfile.c:
	Include binary-io.h instead of fcntl.h and/or io.h.
	(main): Use set_binary_mode or SET_BINARY
	in place of handcrafted code.
	* etags.c (main) [DOS_NT]:
	* movemail.c (main) [WINDOWSNT]:
	Don't mess with _fmode.
	* etags.c (main, process_file_name, analyse_regex):
	Use fopen/popen's "b" flag instead.
	* movemail.c (main, popmail): Use open/lk_open/mkostemp's O_BINARY
	instead.

84 85 86 87 88 89 90 91 92 93 94 95
2014-07-13  Paul Eggert  <eggert@cs.ucla.edu>

	* make-docfile.c: Simplify a bit, to simplify further refactoring.
	(outfile): Remove static var.  All uses changed to use stdout,
	since it's always stdout anyway.  While we're at it, prefer
	putchar/puts/fputs to printf when there are no format strings.
	(main): Use freopen rather than fopen, so that stdout is reused.
	Move O_BINARY stuff after the freopen, so it affects the
	reopened file.
	(write_c_args): Omit first arg, since it's always stdout now.
	All uses changed.

96 97 98 99
2014-07-12  Paul Eggert  <eggert@cs.ucla.edu>

	* etags.c (Lisp_functions): Also record cl-defun etc. (Bug#17965)

100 101 102 103 104 105 106 107 108 109
2014-06-26  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (blessmail): Depend on lisp/mail/blessmail.el.
	Use $<, $@.
	(regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT})
	(profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
	(pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT}, ntlib.o)
	(hexl${EXEEXT}, update-game-score${EXEEXT}, emacsclient.res): Use $<.
	(ctags${EXEEXT}): Add $srcdir to dependency rather than using VPATH.

Paul Eggert's avatar
Paul Eggert committed
110 111 112 113 114 115 116
2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>

	Omit redundant extern decls.
	* emacsclient.c (getenv): Remove decl.
	* make-docfile.c (write_globals): Add ATTRIBUTE_CONST for
	Fbyteorder, Ftool_bar_height, Fmax_char, Fidentity.

117 118 119 120
2014-06-15  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (LDFLAGS): Explicitly set via configure.

121 122 123 124
2014-06-15  Eli Zaretskii  <eliz@gnu.org>

	* Makefile.in (CPPFLAGS): Define.

125 126
2014-06-15  Glenn Morris  <rgm@gnu.org>

127 128 129
	* Makefile.in (../lib/libgnu.a):
	Use `make -C' rather than `cd && make'.

130 131
	* Makefile.in (bootstrap-clean): New.

132 133 134 135 136
2014-06-13  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (../lib/libgnu.a):
	GNU make automatically passes command-line arguments to sub-makes.

137 138 139 140
2014-05-26  Eli Zaretskii  <eliz@gnu.org>

	* ntlib.h (lseek): Don't redirect to _lseek.

141
2014-05-26  Paul Eggert  <eggert@cs.ucla.edu>
Paul Eggert's avatar
Paul Eggert committed
142 143 144 145 146 147 148 149 150

	Fix rcs2log problems with CVS.
	Problem reported by Glenn Morris in
	<http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00277.html>.
	Plus, fix some security and filename quoting problems.
	* rcs2log (logdir): Prefer mktemp if available.
	(logdir, llogdir): Work even if TMPDIR begins with '-' or has spaces.
	(output_authors, main awk script): Parse more-recent CVS output format.

151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
2014-05-19  Paul Eggert  <eggert@cs.ucla.edu>

	Remove dependencies on getline and getdelim.
	Also, remove update-game-scores's limits on game scores and
	simplify its file-locking code.
	* update-game-score.c (struct score_entry): Unify the username and
	data members to a single user_data member, since they don't need to be
	changed independently and getdelim and getline aren't helpful.
	Make the score member char *, not intmax_t, so that scores are not
	limited to intmax_t.  All uses changed.
	(lose_syserr): A zero errno stands for invalid data in score file.
	(normalize_integer): New function.
	(main): Use it.  Check for invalid scores.  Omit redundant stat check.
	(read_score): First arg is now a string, not a FILE *.  All uses
	changed.  Do not use getdelim or getline; that's way simpler.
	(read_scores): Read the whole file, and let read_score handle each
	line.
	(score_compare): Compare strings representing integers, not integers.
	(write_scores) [DOS_NT]: Eliminate unnecessary chmod.
	(lock_file): Simplify locking code, eliminating goto.
	Check for unlink failure.

173 174 175 176 177 178 179 180 181 182 183
2014-05-18  Paul Eggert  <eggert@cs.ucla.edu>

	Port ctags+etags build to Sun C 5.12.
	* Makefile.in (etags_args): Remove, replacing with ...
	(etags_cflags, etags_libs): New macros.  All uses changed.
	(ctags${EXEEXT}): Don't compile etags.c, as compiling etags.c in
	parallel (once for ctags, once for etags) breaks parallel makes
	with compilers that use the source file name to name temporaries,
	such as Sun C 5.12.  Instead, compile ctags.c.
	* ctags.c: New file.

184
2014-05-04  Paul Eggert  <eggert@cs.ucla.edu>
185 186 187 188

	Handle systems without WCONTINUED consistently.  (Bug#15110, 17339)
	* emacsclient.c (WCONTINUED): Move to ../src/syswait.h.

189
2014-04-30  Glenn Morris  <rgm@gnu.org>
190 191 192 193

	* Makefile.in ($(DESTDIR)${archlibdir}):
	Avoid non-portable "`\" nesting.  (Bug#17339)

Eli Zaretskii's avatar
Eli Zaretskii committed
194 195 196 197 198
2014-04-16  Eli Zaretskii  <eliz@gnu.org>

	* update-game-score.c (write_scores): Condition fchmod call on
	DOS_NT, not WINDOWSNT.

199 200
2014-03-22  Glenn Morris  <rgm@gnu.org>

201 202 203
	* Makefile.in (etags_deps, etags_args): New, to reduce duplication.
	(etags${EXEEXT}, ctags${EXEEXT}): Use etags_deps, etags_args.

204 205 206 207 208
	* Makefile.in (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
	(profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
	(emacsclient${EXEEXT}, emacsclientw${EXEEXT}, hexl${EXEEXT})
	(update-game-score${EXEEXT}, emacsclient.res): Use $@.

209 210
	* Makefile.in (../lib/libgnu.a): Explicitly pass MFLAGS.

211 212 213 214 215
	* Makefile.in (DONT_INSTALL): Remove test-distrib.
	(test-distrib${EXEEXT}): Remove rule.

	* test-distrib.c, testfile: Remove.

216 217 218 219
2014-03-10  Juanma Barranquero  <lekktu@gmail.com>

	* emacsclient.c (main): #ifdef out previous change on Windows.

220 221 222 223 224 225 226 227 228 229
2014-03-09  Paul Eggert  <eggert@cs.ucla.edu>

	Fix emacsclient terminal corruption when in background (Bug#16892).
	* emacsclient.c (handle_sigcont): Check for tcgetpgrp failure.
	Cancel the continue only if tty.  Send SIGTTIN to the process
	group, not SIGSTOP to self, as this is what the glibc manual
	recommends.
	(main): If tty, and if started in the background, send SIGTTIN
	to the process group.

230
2014-02-25  Andreas Amann  <a.amann@ucc.ie>  (tiny change)
231

232 233 234
	Fix emacsclient's handling of SIGCONT (Bug#16883).
	* emacsclient.c (handle_sigcont): Cancel the continue only if tty.

235 236 237 238 239
2014-01-22  Eli Zaretskii  <eliz@gnu.org>

	* update-game-score.c (write_scores) [WINDOWSNT]: Use chmod
	instead of fchmod.

240 241 242 243
2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>

	Fix miscellaneous update-game-score bugs.
	* update-game-score.c (difftime) [!HAVE_DIFFTIME]: Remove.
244 245 246 247 248 249 250
	(read_score) [HAVE_GETDELIM]: Don't access uninitialized storage,
	as that leads to undefined behavior, which is a bad thing
	particularly in a setuid program.
	(read_scores, write_scores): Check for fclose failure; on some
	systems, I/O errors are not reported by primitives like getc and
	putc, but instead are delayed until fclose, so fclose failures
	should be diagnosed like other read and write errors.
251
	(write_scores): Use fchmod, not chmod, to avoid a race.
252 253 254 255
	Otherwise, if the lock is broken by some other process,
	update-game-score might try to change the permission on someone
	else's file or on a nonexistent file, and incorrectly report an
	error when this fails.
256
	(lock_file): Fix test for out-of-date lock file; it was reversed.
257 258 259 260 261 262 263 264
	That is, it incorrectly broke locks when they were more than an
	hour into the future, instead of when they were more than an hour
	in the past.  Use ordinary subtraction rather than difftime; since
	we're already assuming POSIX we don't need to worry about the
	possibility of time_t being a magic cookie, and since timestamps
	are positive we don't need to worry about integer overflow when
	subtracting them.  Put two spaces, not just one, after a sentence
	end in a comment.
265

266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
2014-01-19  Paul Eggert  <eggert@cs.ucla.edu>

	update-game-score fixes for -m and integer overflow (Bug#16428)
	* update-game-score.c: Include inttypes.h, stdbool.h.
	(min): New macro, if not already defined.
	(MAX_SCORES, main): Limit the maximum number of scores only from
	limits imposed by the underyling platform, instead of the
	arbitrary value 200.
	(struct score_entry, main, read_score, write_score):
	Scores are now intmax_t, not long.
	(get_user_id): Reject user names containing spaces or newlines,
	as they would mess up the score file.
	Allow uids that don't fit in 'long'.
	Increase the size of the buffer, to avoid overrun in weird cases.
	(get_prefix, main): Use bool for boolean.
	(main): Rewrite expr to avoid possibility of signed integer
	overflow.  Don't allow newlines in data, as this would mess up
	the score file.  Check for memory allocation failure when adding
	the new score, or when unlockint the file.  Implement -m.
	(read_score): Check for integer overflow when reading a score.
	(read_score) [!HAVE_GETDELIM]: Check for integer overflow when
	data gets very long.  Check only for space to delimit names,
	since that's what's done in the HAVE_GETDELIM case.
	(read_scores): New parameter ALLOC.  Change counts to ptrdiff_t.
	All uses changed.  Use push_score to add individual scores;
	that's simpler than repeating its contents.
	(score_compare_reverse): Simplify.
	(push_score): New parameter SIZE.  Change counts to ptrdiff_t.
	All uses changed.  Check for integer overflow of size calculation.
	(sort_scores, write_scores): Change counts to ptrdiff_t.
	(unlock_file): Preserve errno on success, so that storage
	exhaustion is diagnosed correctly.

Paul Eggert's avatar
Paul Eggert committed
299 300 301 302 303 304 305
2014-01-05  Paul Eggert  <eggert@cs.ucla.edu>

	Spelling fixes.
	* Makefile.in (regex.o): Remove reference to no-longer-used macros
	CONFIG_BROKETS and INHIBIT_STRING_HEADER.  "BROKETS" was a
	misspelling anyway....

306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
2013-12-14  Paul Eggert  <eggert@cs.ucla.edu>

	Use bool for boolean, focusing on headers.
	* emacsclient.c, etags.c, hexl.c (FALSE, TRUE):
	Remove.  All uses replaced with uncapitalized version.
	* emacsclient.c (message):
	* etags.c (make_tag, pfnote, consider_token, make_C_tag, lang_names):
	* hexl.c (un_flag, iso_flag, endian):
	* pop.c (pop_debug, pop_open, pop_multi_first, pop_multi_next)
	(pop_trash):
	Use bool for boolean.
	* etags.c (bool): Remove.
	* etags.c (globals, members, declarations, no_line_directive)
	(no_duplicates): Use 'int' for boolean values that getopt requires
	to be 'int'.  Formerly, these were 'bool' and 'bool' was 'int',
	but we can no longer rely on this implementation.
	* pop.h (struct _popserver): Use bool_bf for boolean bit-fields.

Paul Eggert's avatar
Paul Eggert committed
324 325 326 327 328 329
2013-11-14  Paul Eggert  <eggert@cs.ucla.edu>

	* ebrowse.c (xstrdup):
	* etags.c (savenstr): Prefer tail calls.
	* etags.c (concat): Omit unnecessary assignment.

330 331
2013-10-24  Glenn Morris  <rgm@gnu.org>

332 333 334
	* Makefile.in ($(DESTDIR)${archlibdir}):
	Avoid non-portable "`\" nesting.

335 336
	* Makefile.in (abs_top_srcdir): New, set by configure.

337 338
2013-10-23  Glenn Morris  <rgm@gnu.org>

339 340
	* Makefile.in ($(DESTDIR)${archlibdir}, need-blessmail, install)
	(uninstall): Quote entities that might contain whitespace.
341

342 343 344 345 346
2013-10-10  Glenn Morris  <rgm@gnu.org>

	* make-docfile.c (search_lisp_doc_at_eol):
	Use int rather than char with getc.  (Bug#15481)

Paul Eggert's avatar
Paul Eggert committed
347 348 349 350 351 352
2013-09-20  Paul Eggert  <eggert@cs.ucla.edu>

	A simpler, centralized INLINE.
	* profile.c (INLINE): New macro.
	(SYSTIME_INLINE): Remove.

353 354 355 356 357
2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>

	* Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
	for portability to hosts where /bin/sh has problems.

358 359 360 361 362 363 364
2013-08-10  Eli Zaretskii  <eliz@gnu.org>

	* update-game-score.exe.manifest: New file.

	* Makefile.in (UPDATE_MANIFEST): New variable.
	(SCRIPTS): Add $(UPDATE_MANIFEST).

365 366 367 368
2013-08-05  Stefan Monnier  <monnier@iro.umontreal.ca>

	* makefile.w32-in (lisp2): Add nadvice.elc.

369 370 371 372 373 374 375 376 377 378 379 380 381 382 383
2013-08-05  Eli Zaretskii  <eliz@gnu.org>

	* update-game-score.c (read_score): Try reading a character before
	probing the stream for EOF.  Initialize score->score to zero,
	before reading and accumulating the score.
	(read_scores): Fix logic that determines which value to return.
	Close the input stream when finished reading the scores (avoids
	failures in overwriting the file with a new one on MS-Windows,
	since a file that is open cannot be deleted).

	* ntlib.h (rename): Don't undefine.

	* ntlib.c (sys_rename): New function, needed for
	update-game-score.

384 385 386 387 388 389 390 391
2013-08-04  Eli Zaretskii  <eliz@gnu.org>

	* ntlib.h: Include fcntl.h.
	(mkostemp): Declare prototype.
	(mktemp): Don't redefine.

	* ntlib.c (mkostemp): New function.  (Bug#15015)

392 393 394 395 396 397 398 399 400
2013-08-04  Paul Eggert  <eggert@cs.ucla.edu>

	Fix some minor races in hosts lacking mkostemp (Bug#15015).
	* movemail.c (main):
	* update-game-score.c (write_scores):
	Use mkostemp (which now works on all platforms, due to changes
	in the portability layer) rather than mktemp (which has a race)
	or mkstemp (which we no longer bother with).

Paul Eggert's avatar
Paul Eggert committed
401 402 403 404 405 406 407 408 409 410 411 412
2013-07-10  Paul Eggert  <eggert@cs.ucla.edu>

	Port to C89.
	* ebrowse.c (USAGE): Remove macro with too-long string literal ...
	(usage_message): ... and replace it with this new static constant
	containing multiple literals.  All uses changed.
	* emacsclient.c (print_help_and_exit):
	Rewrite to avoid string literals longer than the C89 limits.
	(start_daemon_and_retry_set_socket):
	Rewrite to avoid non-constant array initializer.
	* make-docfile.c (enum global_type): Omit trailing comma.

Paul Eggert's avatar
Paul Eggert committed
413
2013-07-02  Paul Eggert  <eggert@cs.ucla.edu>
414

415 416 417 418 419 420 421
	Prefer plain 'static' to 'static inline' (Bug#12541).
	I missed these instances of 'static inline' in an earlier sweep.
	* ebrowse.c (putstr):
	* etags.c (hash):
	* make-docfile.c (put_char): No longer inline.
	* etags.c (hash): Prefer int to unsigned when either will do.

Paul Eggert's avatar
Paul Eggert committed
422 423
2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>

424
	Use C99-style flexible array members if available.
425 426
	* ebrowse.c: Include <stddef.h>, for offsetof.
	(struct member, struct alias, struct sym):
427 428 429 430 431
	Use FLEXIBLE_ARRAY_MEMBER.
	(add_sym, add_member, make_namespace, register_namespace_alias):
	Use offsetof (struct, flex_array_member), not sizeof (struct), as
	that ports better to pre-C99 non-GCC.

432 433 434 435
2013-05-29  Eli Zaretskii  <eliz@gnu.org>

	* Makefile.in (mostlyclean): Remove *.res files.

436 437 438 439 440 441 442
2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>

	Port --enable-gcc-warnings to clang.
	* etags.c: Omit unnecessary forward decls.
	(print_version, print_help): Declare _Noreturn.
	* pop.c (socket_connection) [HAVE_GETADDRINFO]: Simplify.

443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466
2013-05-16  Eli Zaretskii  <eliz@gnu.org>

	* update-game-score.c [WINDOWSNT]: Include "ntlib.h".

	* ntlib.h (sleep): Update prototype.
	(geteuid): Add prototype.

	* ntlib.c (sleep): Now returns an unsigned value.
	(getgid): New function.

	* Makefile.in (CLIENTW, LIB_WSOCK32, LIBS_ECLIENT, NTLIB)
	(CLIENTRES, WINDRES, NTINC, NTDEPS): New variables.
	(INSTALLABLES): Add $(CLIENTW).
	(LIBS_MOVE): Use $(LIB_WSOCK32).
	($(DESTDIR)${archlibdir}): Use $(EXEEXT) on update-game-score.
	(test-distrib${EXEEXT}): Use $(EXEEXT) on test-distrib.
	(etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
	(profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
	(emacsclient${EXEEXT}, hexl${EXEEXT}, update-game-score${EXEEXT}):
	Add $(NTLIB) to prerequisites.  Use $(EXEEXT).
	(pop.o): Add pop.h to prerequisites.
	(emacsclientw${EXEEXT}, ntlib.o): New targets.
	(emacsclient.res): New target.

467 468 469 470
2013-05-15  Stefan Monnier  <monnier@iro.umontreal.ca>

	* makefile.w32-in ($(DOC)): Use DOC rather than DOC-X.

471 472 473 474 475
2013-05-06  Paul Eggert  <eggert@cs.ucla.edu>

	* make-docfile.c (search_lisp_doc_at_eol) [DEBUG]: Fix typo,
	by removing references to no-longer-existing locals.

476 477 478 479 480 481
2013-03-26  Eli Zaretskii  <eliz@gnu.org>

	Fix incompatibilities between MinGW.org and MinGW64 headers.
	* ntlib.c (struct timespec) [!_TIMEZONE_DEFINED]: Define the
	struct only if _TIMEZONE_DEFINED is not defined.

cg's avatar
cg committed
482 483 484 485
2013-03-23  cg  <chengang31@gmail.com>  (tiny change)

	* makefile.w32-in (LIB_SRC): Move before first use.

Stefan Monnier's avatar
Stefan Monnier committed
486
2013-03-16  Paul Eggert  <eggert@cs.ucla.edu>
487 488 489 490 491

	* pop.c: Fix ERRMAX typo (Bug#13925).
	(socket_connection) [!HAVE_KRB5_ERROR_TEXT && HAVE_KRB5_ERROR_E_TEXT]:
	Use ERROR_MAX, not ERRMAX.

492 493
2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>

Paul Eggert's avatar
Paul Eggert committed
494 495 496 497 498 499
	File synchronization fixes (Bug#13944).
	* Makefile.in (LIB_FDATASYNC): New macro.
	(emacsclient${EXEEXT}): Use it.
	* emacsclient.c (main): Use fdatasync, not fsync, since we don't
	care about metadata.  Keep trying if interrupted.
	* movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since
Stefan Monnier's avatar
Stefan Monnier committed
500 501
	fsync is available everywhere (or there is a substitute).
	Don't report an error if fsync returns EINVAL.
Paul Eggert's avatar
Paul Eggert committed
502

Paul Eggert's avatar
Paul Eggert committed
503 504 505
	Static checking by Sun C 5.12.
	* etags.c (analyse_regex): Omit unreachable code.

506 507
	* movemail.c (main): Call umask on all systems.
	This is OK since Emacs already assumes umask elsewhere.
508 509 510 511
	Don't grant more read permissions than necessary.
	The old 0333 dates back to before we called setuid,
	so it was needed back then to ensure user-readability,
	but 0377 should suffice now.
512

513 514 515 516
2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>

	* movemail.c (getenv): Remove decl (unused since 1994).

517 518 519 520 521 522
2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>

	* make-docfile.c (write_globals): Make it a bit clearer (Bug#13448).
	This pacifies GCC 4.7.2 when Emacs is configured with
	--enable-link-time-optimization and --enable-gcc-warnings.

523 524 525 526
2013-01-01  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (lisp1): Add macroexp.elc (bug#13320).

527 528 529 530
2012-12-11  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (SYSWAIT_H): Update dependencies.

531 532 533 534 535
2012-12-10  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (obj): Add w32notify.o.  Add missing X and Unix
	sources.

536 537 538 539 540 541 542
2012-12-02  Kevin Ryde  <user42@zip.com.au>

	* etags.c (Lisp_functions): Skip (defvar foo) declarations unless
	the --declarations flag is enabled (Bug#5600).
	(Lisp_help): Update.
	(skip_name): New function.

543 544 545 546
2012-12-01  Kevin Ryde  <user42@zip.com.au>

	* etags.c (Perl_functions): Support "use constant" (Bug#5055).

547 548 549 550 551
2012-11-27  Paul Eggert  <eggert@cs.ucla.edu>

	Assume POSIX 1003.1-1988 or later for errno.h (Bug#12968).
	* movemail.c (main): Assume EAGAIN and EBUSY.

552 553 554 555 556 557
2012-11-23  Paul Eggert  <eggert@cs.ucla.edu>

	movemail: treat EACCES etc. failures as permanent
	* movemail.c (main): Treat any link failure other than EEXIST as a
	permanent failure, not just EPERM.  EACCES, for example.

558 559 560 561 562 563 564 565 566 567 568 569
2012-11-21  Paul Eggert  <eggert@cs.ucla.edu>

	Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945).
	* emacsclient.c (getcwd): Remove decl.
	(get_current_dir_name): Assume getcwd exists.
	* etags.c (HAVE_GETCWD): Remove.
	(getcwd): Remove decl.
	(NO_LONG_OPTIONS): Remove this.  All uses removed.
	Emacs always has GNU getopt.
	(etags_getcwd): Assume getcwd exists.
	* movemail.c (F_OK, X_OK, W_OK, R_OK): Remove.

570 571 572 573 574
2012-11-20  Paul Eggert  <eggert@cs.ucla.edu>

	* emacsclient.c (handle_sigcont, handle_sigtstp): Use raise (sig)
	rather than kill (getpid (), sig), as it's simpler and safer.

575 576 577 578 579
2012-11-17  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (SYSWAIT_H): New macro.
	($(BLD)/movemail.$(O)): Update dependencies.

580 581 582 583 584
2012-11-17  Paul Eggert  <eggert@cs.ucla.edu>

	Assume POSIX 1003.1-1988 or later for fcntl.h (Bug#12881).
	* movemail.c, update-game-score.c: Assume <fcntl.h> exists.

585 586
2012-10-26  Glenn Morris  <rgm@gnu.org>

587 588
	* Makefile.in (uninstall): No INSTALLABLES live in archlibdir.

589 590 591
	* Makefile.in (install, uninstall): Transformations should not be
	applied to $EXEEXT.

592 593 594 595 596
2012-10-23  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (lisp2): Add cp51932.el and eucjp-ms.el, to
	follow src/lisp.mk.

597 598 599 600
2012-10-21  Glenn Morris  <rgm@gnu.org>

	* make-docfile.c (scan_lisp_file): Add cp51932.el and eucjp-ms.el.

601 602
2012-10-20  Eli Zaretskii  <eliz@gnu.org>

603 604 605 606
	* make-docfile.c (IS_SLASH, DEF_ELISP_FILE): New macros.
	(scan_lisp_file): Only pass a .el file if its basename matches a
	known file in its entirety.  Use IS_SLASH and DEF_ELISP_FILE.

607 608 609 610
2012-10-20  Andreas Schwab  <schwab@linux-m68k.org>

	* make-docfile.c (scan_lisp_file): Add bounds checking.

611 612
2012-10-20  Eli Zaretskii  <eliz@gnu.org>

613
	Prevent silent omission of doc strings from uncompiled Lisp files.
614 615 616 617 618 619
	* make-docfile.c (scan_lisp_file): Barf if called with a .el file
	other than one of a small list of supported un-compiled files.

	* makefile.w32-in (lisp1, lisp2): Name .elc files wherever they
	exist.  (Bug#12395)

620 621 622 623 624
2012-10-17  Eli Zaretskii  <eliz@gnu.org>

	* ntlib.c: Include <mbstring.h>, to avoid compiler warning about
	_mbspbrk.

625 626 627 628
2012-10-08  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (obj): Add cygw32.o.

629 630 631 632 633 634 635 636 637 638 639 640 641
2012-10-08  Daniel Colascione  <dancol@dancol.org>

	* emacsclient.c: Include windows.h when HAVE_NTGUI.
	(alt_display): New variable.  We send the display held by this
	variable when the primary display is either unsupported or not
	present.
	(longopts): Allow display everywhere.
	(w32_set_user_model_id): Move lower in file, inside HAVE_NTGUI
	section.
	(decode_options): Use alt_display.  Explain why.
	(main): Retry connection with alt_display if connection with main
	display fails.

642 643 644 645 646 647 648
2012-10-01  Fabrice Popineau  <fabrice.popineau@gmail.com>

	* make-docfile.c (write_globals): Special-case
	Fexit_recursive_edit and Fabort_recursive_edit as well, as
	functions that are _Noreturn, to be consistent with
	src/keyboard.c.

649 650 651 652 653
2012-09-30  Eli Zaretskii  <eliz@gnu.org>

	* ntlib.c (gettimeofday): Copy from src/w32.c.  lib/gettime.c
	needs this function.

654 655 656 657
2012-09-26  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (obj): Add profiler.o.

658 659 660 661 662
2012-09-17  Glenn Morris  <rgm@gnu.org>

	* ebrowse.c (version):
	* etags.c (print_version): Use COPYRIGHT.

663 664 665 666 667
2012-09-11  Paul Eggert  <eggert@cs.ucla.edu>

	* pop.c (socket_connection) [HAVE_GETADDRINFO]:
	Prefer assignment to memcpy when either will do.

Andreas Schwab's avatar
Andreas Schwab committed
668 669 670 671 672
2012-08-31  Andreas Schwab  <schwab@linux-m68k.org>

	* etags.c (consider_token): Always zero-terminate token buffer.
	(Bug#12306)

673 674
2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>

Paul Eggert's avatar
Paul Eggert committed
675
	Rely on <config.h> + <unistd.h> to declare 'environ'.
676 677
	* emacsclient.c (environ): Remove decl.

678 679 680 681
2012-08-17  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in ($(BLD)/regex.$(O)): Update dependencies.

682 683 684 685
2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>

	* etags.c (Pascal_functions): Fix parenthesization typo.

686 687 688 689 690 691 692
2012-08-14  Paul Eggert  <eggert@cs.ucla.edu>

	* make-docfile.c (enum global_type): Sort values roughly in
	decreasing alignment, except put functions last.
	(compare_globals): Use this new property of enum global_type.
	(write_globals): Use bool, not int, for booleans.

693 694
2012-08-10  Glenn Morris  <rgm@gnu.org>

695 696 697
	* make-docfile.c (IF_LINT):
	* emacsclient.c (IF_LINT): Remove (in config.h now).

698
	* make-docfile.c (main)
699 700 701
	(fopen) [!WINDOWSNT]:
	(chdir) [!DOS_NT]: No more need to undef.

702 703 704 705
	* movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
	* make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
	* emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP):
	Remove (they are in config.h now).
706 707 708 709

	* ebrowse.c (PATH_LIST_SEPARATOR):
	Remove, and replace with SEPCHAR from config.h.

710 711 712 713 714
2012-08-03  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (LOCAL_FLAGS): Remove WINDOWSNT and DOS_NT,
	they are always defined in config.h.

715 716 717 718
2012-08-03  Eli Zaretskii  <eliz@gnu.org>

	* ntlib.c (lstat): New function, calls 'stat'.

719 720 721 722 723
2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>

	Use C99-style 'extern inline' if available.
	* profile.c (SYSTIME_INLINE): Define.

724 725 726 727
2012-08-02  Glenn Morris  <rgm@gnu.org>

	* makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.

728 729 730 731 732
2012-08-01  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (config_h): New variable.
	Use throughout in place of ../src/config.h.

733 734 735 736 737
2012-08-01  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (CONFIG_H): Update dependencies.
	(CONF_POST_H): New macro.

738 739 740 741 742 743 744
2012-07-30  Paul Eggert  <eggert@cs.ucla.edu>

	Update .PHONY listings in makefiles.
	* Makefile.in (.PHONY): Add all, need-blessmail, maybe-blessmail,
	install, uninstall, mostlyclean, clean, distclean,
	maintainer-clean, extraclean, check, tags.

745 746 747 748
2012-07-29  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in ($(BLD)/profile.$(O)): Depend on stamp_BLD.

749 750 751 752 753 754
2012-07-12  Paul Eggert  <eggert@cs.ucla.edu>

	* movemail.c: Add missing 'defined'.
	Suggested by Sven Joachim in
	<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00218.html>.

Paul Eggert's avatar
Paul Eggert committed
755 756
2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>

757 758 759 760 761 762 763 764 765
	Port 'movemail' again to Solaris and similar hosts.
	See Susan Cragin's report in
	<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00199.html>.
	* movemail.c (xmalloc): Also define if !DISABLE_DIRECT_ACCESS &&
	!MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK.  Move up, so it doesn't
	need a forward declaration.
	(main): Rewrite to avoid no-longer-present function 'concat', if
	!DISABLE_DIRECT_ACCESS && !MAIL_USE_MMDF && !MAIL_USE_SYSTEM_LOCK.

Paul Eggert's avatar
Paul Eggert committed
766 767 768 769
	Assume strerror.
	* emacsclient.c, movemail.c, update-game-score.c (strerror)
	[!HAVE_STRERROR]: Remove.

770 771
2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>

772 773 774
	EMACS_TIME simplification (Bug#11875).
	* profile.c (TV2): Remove no-longer-needed static var.

775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791
	Simplify by avoiding confusing use of strncpy etc.
	* etags.c (write_classname, C_entries):
	Use sprintf rather than strncpy or strncat.
	* etags.c (consider_token, C_entries, HTML_labels, Prolog_functions)
	(Erlang_functions, substitute, readline_internal, savenstr):
	* movemail.c (mail_spool_name):
	Use memcpy rather than strncpy or strncat when either will do.
	* make-docfile.c (write_c_args):
	Use memcmp rather than strncmp when either will do.
	* movemail.c (pop_retr):
	* pop.c (pop_stat, pop_list, pop_multi_first, pop_last)
	(socket_connection, pop_getline, sendline, getok):
	Use snprintf rather than strncpy or strncat.
	* movemail.c (concat): Remove; no longer needed.
	(xmalloc): Define only if needed, now that concat has gone away.
	Return void *.  All uses changed.

792 793 794 795 796
2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>

	Add GCC-style 'const' attribute to functions that can use it.
	* etags.c (number_len): Add ATTRIBUTE_CONST.

797 798 799 800
2012-07-09  Juanma Barranquero  <lekktu@gmail.com>

	* emacsclient.c (w32_execvp): Declare execvp to silence the compiler.

801 802 803 804 805 806 807 808 809 810 811 812
2012-07-09  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in ($(BLD)/test-distrib.exe): Use LIB_SRC, not SRC.
	(LIB_SRC, NT_INC, GNU_LIB, MS_W32_H, CONFIG_H, INTTYPES_H, NTLIB_H)
	(SYSTIME_H): New macros.
	(SRC): Redefine to point to src/, not current directory.
	($(BLD)/ctags.$(O), $(BLD)/ebrowse.$(O), $(BLD)/emacsclient.$(O))
	($(BLD)/etags.$(O), $(BLD)/hexl.$(O), $(BLD)/make-docfile.$(O))
	($(BLD)/movemail.$(O), $(BLD)/ntlib.$(O), $(BLD)/pop.$(O))
	($(BLD)/profile.$(O), $(BLD)/test-distrib.$(O)): Update dependencies.
	($(BLD)/regex.$(O)): New dependency.

813 814 815 816 817 818 819 820
2012-07-09  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (ALL): Add profile.exe.
	(PROFILEOBJS): New macro.
	($(BLD)/profile.exe): New target.
	(install): Copy profile.exe.
	($(BLD)/alloca.$(O), $(BLD)/tcp.$(O)): Remove, obsolete.

821 822 823 824 825
2012-07-07  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)):
	Update dependencies.

826 827 828 829 830 831 832
2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>

	Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786).
	* etags.c: Include c-strcase.h.
	(etags_strcasecmp, etags_strncasecmp): Remove.
	All uses replaced with c_strcasecmp and c_strncasecmp.

833 834 835 836 837
2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>

	* make-docfile.c (write_globals): Warn about duplicate function
	definitions with differing signatures.

838 839 840 841
2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>

	* make-docfile.c (scan_c_file): Suppress GCC warning.

842 843 844 845 846 847 848 849 850 851
2012-06-29  Tom Tromey  <tromey@redhat.com>

	* make-docfile.c (enum global_type) <FUNCTION>: New constant.
	(struct global) <value>: New field.
	(add_global): Add 'value' argument.
	(compare_globals): Sort functions at the end.
	(close_emacs_globals): New function.
	(write_globals): Handle functions.
	(scan_c_file): Call add_global for DEFUN.

852 853 854 855 856
2012-06-30  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (CTAGS_CFLAGS): Remove EMACS_NAME;
	already defined in ETAGS_CFLAGS.

Glenn Morris's avatar
Glenn Morris committed
857 858 859 860
2012-06-27  Glenn Morris  <rgm@gnu.org>

	* makefile.w32-in (lisp2): Remove paths.el.

861 862 863 864 865 866 867 868 869 870
2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>

	Clean out last vestiges of the old HAVE_CONFIG_H stuff.
	* Makefile.in (BASE_CFLAGS):
	* makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H.
	* etags.c, hexl.c, pop.c: Include <config.h> unconditionally.
	* etags.c (DOS_NT):
	* pop.c (MAIL_USE_POP, h_errno):
	Remove code that was conditioned on !HAVE_CONFIG_H.

871 872 873 874 875
2012-06-25  Dmitry Antipov  <dmantipov@yandex.ru>

	* etags.c (etags_strcasecmp, etags_strncasecmp): Define to
	library functions strcasecmp and strncasecmp if available.

876 877 878 879 880 881 882 883 884 885 886 887 888 889 890
2012-06-24  Paul Eggert  <eggert@cs.ucla.edu>

	Switch from NO_RETURN to C11's _Noreturn (Bug#11750).
	* ebrowse.c (usage, version):
	* emacsclient.c (print_help_and_exit, fail):
	* etags.c (suggest_asking_for_help, fatal, pfatal):
	* hexl.c (usage):
	* make-docfile.c (fatal):
	* movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
	* update-game-score.c (usage):
	* ebrowse.c (usage, version):
	* emacsclient.c (print_help_and_exit, fail):
	Use _Noreturn rather than NO_RETURN.
	No need for separate decl merely because of _Noreturn.

891
2012-06-24  Samuel Bronson  <naesten@gmail.com>
892 893 894

	* emacsclient.c (set_local_socket): Fix compiler warning (Bug#7838).

895 896 897 898 899
2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>

	Support higher-resolution time stamps (Bug#9000).
	* Makefile.in (LIB_CLOCK_GETTIME): New macro.
	(profile${EXEEXT}): Use it.
900
	* profile.c: Include inttypes.h, intprops.h.
901 902 903 904
	(time_string): Size conservatively; do not guess size.
	(get_time): Now prints nanoseconds.
	(gettimeofday): Remove replacement function; gnulib now does this.

905 906 907 908 909
2012-06-08  Andreas Schwab  <schwab@linux-m68k.org>

	* make-docfile.c (search_lisp_doc_at_eol): Unget last read
	character.

Glenn Morris's avatar
Glenn Morris committed
910 911
2012-06-06  Glenn Morris  <rgm@gnu.org>

912 913 914 915
	* Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPTS, insrcdir)
	(stamp-rcs2log, stamp-grep-changelog): Remove.
	(all, clean): Remove references to stamps.

Glenn Morris's avatar
Glenn Morris committed
916 917 918 919
	* vcdiff: Remove file.
	* Makefile.in (SCRIPTS, STAMP_SCRIPTS): Remove vcdiff.
	(stamp-vcdiff): Remove.

920 921
2012-06-05  Glenn Morris  <rgm@gnu.org>

922 923
	* makefile.w32-in ($(BLD)/getdate.$(O), $(BLD)/leditcfns.$(O))
	($(BLD)/make-path.$(O), $(BLD)/qsort.$(O))
924 925
	($(BLD)/timer.$(O)): Remove cruft.

Glenn Morris's avatar
Glenn Morris committed
926 927 928 929 930 931 932
2012-06-03  Glenn Morris  <rgm@gnu.org>

	* rcs-checkin: Remove file.
	* Makefile.in (INSTALLABLE_SCRIPTS, STAMP_INST_SCRIPTS):
	Remove rcs-checkin.
	(stamp-rcs-checkin): Remove.

933
2012-05-31  Eli Zaretskii  <eliz@gnu.org>
934 935 936 937 938

	* makefile.w32-in ($(BLD)/emacsclientw.exe): Use $(MWINDOWS)
	instead of a literal -mwindows, which is not supported by MSVC.
	(Bug#11405)

939 940 941 942 943 944
2012-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>

	* make-docfile.c: Improve comment style.
	(search_lisp_doc_at_eol): New function.
	(scan_lisp_file): Use it.

945 946 947 948
2012-05-26  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (INSTALL_DATA): Remove; unused.

Paul Eggert's avatar
Paul Eggert committed
949 950 951 952 953 954
2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>

	Remove src/m/*.
	* makefile.w32-in: Remove dependencies on
	$(EMACS_ROOT)/src/m/intel386.h.

955 956 957 958
2012-05-22  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (install): Remove unneeded chmods.

Paul Eggert's avatar
Paul Eggert committed
959 960 961 962 963 964
2012-05-21  Paul Eggert  <eggert@cs.ucla.edu>

	Assume C89 or later.
	* etags.c (static, const): Remove macros.
	(PTR): Remove; all uses replaced with void *.  Omit needless casts.

965 966 967 968 969
2012-05-21  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (insrcdir, $(DESTDIR)${archlibdir}):
	Scrap superfluous subshells.

970 971 972 973
2012-05-18  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (install): Ensure $bindir exists.

974 975 976 977
2012-05-17  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (ns_appbindir): New, set by configure.

978 979 980 981 982
2012-05-12  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (MKDIR_P): New, set by configure.
	($(DESTDIR)${archlibdir}): Use $MKDIR_P.

983 984 985 986 987 988 989 990
2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>

	etags: pacify gcc -Wstack-protector on Ubuntu 12.04 x86
	* etags.c: Include <stdarg.h>.
	(error): Declare as printf-style, as that's what it really is.
	All uses changed.
	(add_regex): Use single char rather than array-of-one char.

991 992
2012-05-05  Jim Meyering  <meyering@redhat.com>

Glenn Morris's avatar
Glenn Morris committed
993
	* pop.c (pop_stat, pop_list, pop_multi_first, pop_last):
994 995
	NUL-terminate the error buffer (Bug#11372).

996 997 998 999
2012-05-02  Juanma Barranquero  <lekktu@gmail.com>

	* emacsclient.c (min): Undef before redefining it.

1000 1001 1002 1003 1004
2012-05-02  Jim Meyering  <jim@meyering.net>

	* emacsclient.c (send_to_emacs): Avoid invalid strcpy upon partial
	send (Bug#11374).

Andreas Schwab's avatar
Andreas Schwab committed
1005 1006 1007 1008 1009
2012-04-29  Andreas Schwab  <schwab@linux-m68k.org>

	* make-docfile.c (scan_lisp_file) [DEBUG]: Also skip if and
	byte-code forms.  (Bug#11380)

Chong Yidong's avatar
Chong Yidong committed
1010
2012-04-20  Chong Yidong  <cyd@gnu.org>
1011 1012 1013

	* emacsclient.c (decode_options): Move -t -n corner case handling
	into server.el (Bug#11102).
Juanma Barranquero's avatar
Juanma Barranquero committed
1014
	(main): Send -tty to Emacs under more circumstances (Bug#8314).
1015

Paul Eggert's avatar
Paul Eggert committed
1016
2012-04-18  Paul Eggert  <eggert@cs.ucla.edu>
1017

Paul Eggert's avatar
Paul Eggert committed
1018
	configure: new option --enable-gcc-warnings (Bug#11207)
1019 1020 1021 1022
	* Makefile.in (C_WARNINGS_SWITCH): Remove.
	(WARN_CFLAGS, WERROR_CFLAGS): New macros.
	(BASE_CFLAGS): Use new macros rather than old.

1023 1024 1025 1026 1027 1028 1029
2012-04-16  Paul Eggert  <eggert@cs.ucla.edu>

	Assume less-ancient POSIX support.
	* update-game-score.c: Include <getopt.h> rather than rolling our
	own decls for optarg, optind, opterr.  See
	<http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html>.

Paul Eggert's avatar
Paul Eggert committed
1030
2012-04-14  Juanma Barranquero  <lekktu@gmail.com>
Paul Eggert's avatar
Paul Eggert committed
1031

1032 1033 1034
	* emacsclient.c (decode_options) [WINDOWSNT]:
	Call ttyname instead of passing its address (typo in 2011-12-04T17:13:01Z!lekktu@gmail.com).

1035 1036 1037 1038
2012-04-07  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (obj): Add xml.o.

1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049
2012-04-07  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (ALL): Now the list of executables, not of phony
	targets.
	(.PHONY): Only make-docfile is its prerequisite now.
	(make-docfile): Don't depend on stamp_BLD.  Add a comment about
	the need in this target.
	(ctags, etags, ebrowse, hexl, movemail, emacsclient)
	(test-distrib): Phony targets removed.
	($(BLD)/test-distrib.exe): Run test-distrib as part of the recipe.
	(all): Don't depend on stamp_BLD.
1050
	(ALL): Include $(BLD)/test-distrib.exe.
1051

1052 1053
2012-03-11  Andreas Schwab  <schwab@linux-m68k.org>

1054 1055
	* emacsclient.c (main): Handle -print-nonl command.

1056 1057 1058
	* emacsclient.c (main): Handle multiple messages in a single
	datagram.

1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069
	* emacsclient.c (socket_name): Add const.
	(get_server_config): Add parameter config_file, use it instead of
	global server_file.
	(set_tcp_socket): Add parameter local_server_file, pass it down to
	get_server_config.
	(set_local_socket): Add parameter local_socket_name, use it
	instead of global socket_name.
	(set_socket): Adjust calls to set_local_socket and set_tcp_socket.
	Don't clobber global server_file or socket_name.
	(main): No longer reset server_file or socket_name.

1070 1071 1072 1073 1074 1075
2012-01-05  Glenn Morris  <rgm@gnu.org>

	* ebrowse.c (version) <emacs_copyright>:
	* etags.c (print_version) <emacs_copyright>:
	* rcs2log (Copyright): Update short copyright year to 2012.

1076 1077 1078 1079 1080
2011-12-25  Andreas Schwab  <schwab@linux-m68k.org>

	* etags.c (C_entries): Properly skip over string and character
	constants and comments inside brackets.  (Bug#10357)

1081 1082 1083 1084 1085 1086 1087 1088
2011-12-04  Juanma Barranquero  <lekktu@gmail.com>

	* emacsclient.c (decode_options) [WINDOWSNT]: Don't force tty = 0;
	instead, treat both -c and -t as always requesting a new "tty" frame,
	and let server.el decide which kind is actually required.
	Reported by Uwe Siart <usenet@siart.de> in this thread:
	http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00303.html

1089 1090 1091 1092 1093
2011-11-30  Chong Yidong  <cyd@gnu.org>

	* emacsclient.c (main): Condition last change on WINDOWSNT
	(Bug#10155).

1094 1095 1096 1097 1098
2011-11-27  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS).

	* emacsclient.c (main) <environ>: Remove declaration, already
Juanma Barranquero's avatar
Juanma Barranquero committed
1099
	pulled in by unistd.h on POSIX hosts and stdlib.h on MS-Windows.
1100

1101 1102 1103 1104
2011-11-24  Glenn Morris  <rgm@gnu.org>

	* make-docfile.c (scan_lisp_file): Treat defcustom like defvar.

1105 1106 1107 1108
2011-11-14  Dan Nicolaescu  <dann@ics.uci.edu>

	* Makefile.in (all): Make sure "all" is the first target.

1109 1110 1111 1112
2011-10-27  Juanma Barranquero  <lekktu@gmail.com>

	* emacsclient.c (w32_getenv): Silence compiler warnings.

1113 1114 1115 1116
2011-09-07  Glenn Morris  <rgm@gnu.org>

	* etags.c (Fortran_functions): Handle "elemental" functions.

1117 1118 1119 1120
2011-09-07  Dieter Schuster  <didischuster@arcor.de>  (tiny change)

	* etags.c (Fortran_functions): Handle "pure" functions.  (Bug#9359)

Paul Eggert's avatar
Paul Eggert committed
1121
2011-09-06  Paul Eggert  <eggert@cs.ucla.edu>
1122 1123

	* Makefile.in ($(DESTDIR)${archlibdir}): install-sh moved
Paul Eggert's avatar
Paul Eggert committed
1124
	to build-aux (Bug#9169).
1125

1126
2011-09-04  Paul Eggert  <eggert@cs.ucla.edu>
1127

Paul Eggert's avatar
Paul Eggert committed
1128
	Integer and memory overflow issues (Bug#9397).
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146

	* emacsclient.c (xmalloc): Accept size_t, not unsigned int, to
	avoid potential buffer overflow issues on typical 64-bit hosts.
	Return void *, not long *.
	(get_current_dir_name): Report a failure, instead of looping
	forever, if buffer size calculation overflows.  Treat malloc
	failures like realloc failures, as that has better behavior and is
	more consistent.  Do not check whether xmalloc returns NULL, as
	that's not possible.
	(message): Do not arbitrarily truncate message to 2048 bytes when
	sending it to stderr; use vfprintf instead.
	(get_server_config, set_local_socket)
	(start_daemon_and_retry_set_socket): Do not alloca
	arbitrarily-large buffers; that's not safe.
	(get_server_config, set_local_socket): Do not use sprintf when its
	result might not fit in 'int'.
	(set_local_socket): Do not assume uid fits in 'int'.

1147 1148 1149 1150
	* etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,
	to avoid potential buffer overflow issues on typical 64-bit hosts.
	(whatlen_max): New static var.
	(main): Avoid buffer overflow if subsidiary command length is
Juanma Barranquero's avatar
Juanma Barranquero committed
1151
	greater than BUFSIZ or 2*BUFSIZ + 20.  Do not use sprintf when its
1152 1153
	result might not fit in 'int'.

1154 1155 1156 1157
	* movemail.c (main): Do not use sprintf when its result might not fit
	in 'int'.  Instead, put the possibly-long file name into the
	output of pfatal_with_name.

1158 1159 1160
	* update-game-score.c: Include <limits.h>
	(get_user_id): Do not assume uid fits in 'int'.  Simplify.

1161
2011-07-28  Paul Eggert  <eggert@cs.ucla.edu>
Paul Eggert's avatar
Paul Eggert committed
1162

1163 1164 1165 1166 1167 1168 1169 1170
	Assume freestanding C89 headers, string.h, stdlib.h.
	* ebrowse.c: Include stdlib.h unconditionally.
	* etags.c, update-game-score.c:
	Include string.h and stdlib.h unconditionally.
	* makefile.w32-in (LOCAL_CFLAGS): Don't define STDC_HEADERS.
	* movemail.c, pop.c: Include string.h unconditionally.
	* update-game-score.c: No need to include stdarg.h; not used.

Paul Eggert's avatar
Paul Eggert committed
1171 1172 1173
	Assume support for memcmp, memcpy, memmove, memset.
	* etags.c (absolute_filename): Assume memmove exists.

1174 1175 1176 1177
2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>

	* update-game-score.c (usage): Update usage line.

1178 1179 1180 1181 1182
2011-07-02  Jason Rumney  <jasonr@gnu.org>

	* emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on
	Windows (Bug#5486).

1183 1184 1185 1186 1187
2011-06-25  Glenn Morris  <rgm@gnu.org>

	* emacsclient.c (decode_options) <opt>: Add `F:'.
	(print_help_and_exit): Mention --frame-parameters.

1188 1189 1190 1191
2011-06-25  Andreas Rottmann  <a.rottmann@gmx.at>

	* emacsclient.c (longopts, decode_options, main): Add frame-parameters.

1192 1193 1194 1195 1196 1197 1198 1199 1200 1201
2011-06-10  Paul Eggert  <eggert@cs.ucla.edu>

	* movemail.c: Fix race condition and related bugs (Bug#8836).
	(main) [!MAIL_USE_SYSTEM_LOCK]: Prefer mkstemp to mktemp, as this
	fixes some race conditions.  Report mkstemp/mktemp errno rather
	than a possibly-garbage errno.  Reinitialize the template each
	time through the loop, as earlier mkstemp/mktemp calls could have
	trashed it.  Pass 0600 (not 0666) to mktemp, for consistency
	with mkstemp; the permissions don't matter anyway.

1202 1203 1204 1205
2011-06-01  Dan Nicolaescu  <dann@ics.uci.edu>

	* emacsclient.c (socket_status): Use constant pointer.

Paul Eggert's avatar
Paul Eggert committed
1206 1207 1208 1209 1210 1211
2011-05-28  Paul Eggert  <eggert@cs.ucla.edu>

	Use 'inline', not 'INLINE'.
	* etags.c (hash): Now inline unconditionally.
	* make-docfile.c (put_char): inline, not INLINE.

1212 1213
2011-05-25  Glenn Morris  <rgm@gnu.org>

1214 1215 1216 1217 1218
	* Makefile.in (.c.o): Remove (every .o file has an explicit rule).
	(insrcdir): New.
	(stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
	Use $insrcdir to suppress unaesthetic ignored errors.
	(clean): Simplify list of things to delete.
1219
	(all, clean): Use $EXE_FILES.
1220

1221 1222
	* Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.

1223 1224 1225
	* Makefile.in (REGEXPOBJ, REGEXPDEPS): Remove.  Replace by expansion.
	(etags${EXEEXT}): Just depend on regex.o, not regex.h as well.

1226 1227 1228 1229
2011-05-24  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (update-game-score${EXEEXT}): Use a single rule.

1230 1231 1232 1233 1234
2011-05-19  Glenn Morris  <rgm@gnu.org>

	* makefile.w32-in (echolisp): Remove rule that is no longer needed.
	(clean): No more echolisp.tmp.

Glenn Morris's avatar
Glenn Morris committed
1235 1236 1237 1238 1239 1240 1241 1242
2011-05-18  Glenn Morris  <rgm@gnu.org>

	* fakemail.c: Remove file.
	* makefile.w32-in ($(BLD)/fakemail.exe, fakemail)
	($(BLD)/fakemail.$(O)): Remove.
	* Makefile.in (UTILITIES): Remove fakemail${EXEEXT}.
	(fakemail${EXEEXT}): Remove rule.

Ted Zlatanov's avatar
Ted Zlatanov committed
1243 1244
2011-04-24  Teodor Zlatanov  <tzz@lifelogs.com>

1245
	* makefile.w32-in (obj): Add gnutls.o.
Ted Zlatanov's avatar
Ted Zlatanov committed
1246

1247 1248
2011-04-16  Paul Eggert  <eggert@cs.ucla.edu>

1249 1250
	Static checks with GCC 4.6.0 and non-default toolkits.

1251 1252 1253 1254
	* movemail.c (mail_spool_name): Protoize.
	(main): Remove unused var.  Mark var as initialized.
	Move locals to avoid shadowing, and use time_t for times.

1255 1256 1257
	* fakemail.c (xmalloc, xreallc): Use standard C prototypes
	with void *.  This avoids warnings about pointer casts.

1258 1259 1260 1261
	* emacsclient.c (main): Don't use uninitialized var.
	(IS_ANY_SEP): Remove; unused.
	(get_current_dir_name): Add an extern decl.

1262
2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1263

1264
	Fix more problems found by GCC 4.6.0's static checks.
1265

1266
	* emacsclient.c (message): Mark it as a printf-like function.
1267 1268 1269 1270

	* make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.
	(write_c_args): Use it to suppress GCC warning.

1271
2011-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1272

1273
	Fix a problem found by GCC 4.6.0's static checks.
1274 1275
	* etags.c (just_read_file): Remove dummy variable and simplify.

1276 1277 1278 1279
2011-03-27  Glenn Morris  <rgm@gnu.org>

	* emacsclient.c: Replace SIGTYPE with void.

1280 1281 1282 1283
2011-03-23  Juanma Barranquero  <lekktu@gmail.com>

	* ntlib.c: Include <ctype.h>.

1284 1285 1286 1287 1288
2011-03-23  Glenn Morris  <rgm@gnu.org>

	* Makefile.in ($(DESTDIR)${archlibdir}):
	Use `install-sh -d' rather than mkinstalldirs.

1289
2011-03-23  Paul Eggert  <eggert@cs.ucla.edu>
Paul Eggert's avatar
Paul Eggert committed
1290

1291 1292 1293 1294 1295 1296 1297
	* ebrowse.c: Use size_t, not int, for sizes.
	This avoids a warning with gcc -Wstrict-overflow, and works
	better for very large objects.
	(inbuffer_size): Now size_t.  All uses changed.
	(xmalloc, xrealloc, operator_name, process_file): Use size_t for
	sizes.  Don't bother testing whether a size_t value can be negative.

1298 1299
	* etags.c (Ada_funcs): Redo slightly to avoid overflow warning.

1300 1301 1302 1303 1304 1305
	etags: In Prolog functions, don't assume int fits in size_t.
	This avoids a warning with gcc -Wstrict-overflow.
	* etags.c (Prolog_functions, prolog_pr, prolog_atom): Use size_t,
	not int, to store sizes.
	(prolog_atom): Return 0, not -1, on error.  All callers changed.

1306 1307
	update-game-score: fix bug with -r
	* update-game-score.c (main): Don't set 'scores' to garbage when
Paul Eggert's avatar
Paul Eggert committed
1308 1309
	-r is specified and scorecount != MAX_SCORES (Bug#8310).  This bug
	was introduced in the 2002-04-10 change, and was found with gcc
1310 1311
	-Wstrict-overflow (GCC 4.5.2, x86-64).

Paul Eggert's avatar
Paul Eggert committed
1312 1313 1314 1315 1316 1317 1318
	fakemail: Remove dependency on ignore-value.
	This undoes some of the recent fakemail-related changes.
	It is made possible due to recent changes to gnulib's stdio module.
	* Makefile.in (fakemail${EXEEXT}): Do not depend on ignore-value.h.
	* fakemail.c: Do not include ignore-value.h.
	(put_line): Do not use ignore_value.

1319 1320 1321 1322
2011-03-07  Chong Yidong  <cyd@stupidchicken.com>

	* Version 23.3 released.

1323 1324 1325 1326 1327 1328 1329
2011-03-03  Drake Wilson  <drake@begriffli.ch>  (tiny change)

	* emacsclient.c (longopts): Add quiet.
	(decode_options): Handle q/quiet.
	(print_help_and_exit): Add q/quiet.
	(main): Suppress some messages if quiet option is used.

1330 1331
2011-02-26  Eli Zaretskii  <eliz@gnu.org>

1332 1333
	* Makefile.in (fakemail${EXEEXT}): Depend on lib/ignore-value.h.

1334 1335 1336 1337
	* emacsclient.c (xstrdup) [WINDOWSNT]: Function added back.
	(w32_getenv): Use xstrdup to return all values in malloc'ed
	storage.

1338 1339
2011-02-26  Paul Eggert  <eggert@cs.ucla.edu>

1340 1341 1342
	* ebrowse.c (parse_qualified_param_ident_or_type): Make it clear
	to reader (and to the compiler) that the loop always executes at
	least once.  This prevents a warning with recent GCC.
1343
	(BROWSE_STRUCT): Remove unused macro.
1344

1345 1346 1347 1348 1349 1350 1351 1352
	* fakemail.c: Include <ignore-value.h>.
	(put_line): Explicitly ignore fwrite return value, for benefit of
	recent glibc + gcc.
	(close_the_streams): Diagnose output errors instead of merely
	exiting with nonzero status.
	(my_fclose, main): Diagnose input errors, and exit with nonzero status.
	Formerly, input errors were silently ignored.

1353 1354 1355
	* ebrowse.c (putstr): Rename from PUTSTR and turn into a function.
	All callers changed.  This is cleaner, and avoids GCC warnings about
	passing NULL to fputs.
1356
	(insert_keyword): Rename parameter to avoid shadowing diagnostic.
1357

1358 1359
2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>

1360
	* emacsclient.c (main): Avoid dangling 'if'.
1361
	(xstrdup): Remove; no longer needed.
1362
	(get_current_dir_name, w32_getenv, get_server_config, find_tty)
1363 1364 1365
	(set_local_socket, main):
	Use const char *, not char *, for pointers that are not assigned
	through.