ChangeLog 276 KB
Newer Older
1 2 3 4 5
2012-10-17  Eli Zaretskii  <eliz@gnu.org>

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

6 7 8 9
2012-10-08  Eli Zaretskii  <eliz@gnu.org>

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

10 11 12 13 14 15 16 17 18 19 20 21 22
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.

23 24 25 26 27 28 29
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.

30 31 32 33 34
2012-09-30  Eli Zaretskii  <eliz@gnu.org>

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

35 36 37 38
2012-09-26  Juanma Barranquero  <lekktu@gmail.com>

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

39 40 41 42 43
2012-09-17  Glenn Morris  <rgm@gnu.org>

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

44 45 46 47 48
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
49 50 51 52 53
2012-08-31  Andreas Schwab  <schwab@linux-m68k.org>

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

54 55
2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>

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

59 60 61 62
2012-08-17  Juanma Barranquero  <lekktu@gmail.com>

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

63 64 65 66
2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>

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

67 68 69 70 71 72 73
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.

74 75
2012-08-10  Glenn Morris  <rgm@gnu.org>

76 77 78
	* make-docfile.c (IF_LINT):
	* emacsclient.c (IF_LINT): Remove (in config.h now).

79 80 81 82
	* make-docfile.c (main):
	(fopen) [!WINDOWSNT]:
	(chdir) [!DOS_NT]: No more need to undef.

83 84 85 86
	* 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).
87 88 89 90

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

91 92 93 94 95
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.

96 97 98 99
2012-08-03  Eli Zaretskii  <eliz@gnu.org>

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

100 101 102 103 104
2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>

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

105 106 107 108
2012-08-02  Glenn Morris  <rgm@gnu.org>

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

109 110 111 112 113
2012-08-01  Glenn Morris  <rgm@gnu.org>

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

114 115 116 117 118
2012-08-01  Juanma Barranquero  <lekktu@gmail.com>

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

119 120 121 122 123 124 125
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.

126 127 128 129
2012-07-29  Eli Zaretskii  <eliz@gnu.org>

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

130 131 132 133 134 135
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
136 137
2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>

138 139 140 141 142 143 144 145 146
	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
147 148 149 150
	Assume strerror.
	* emacsclient.c, movemail.c, update-game-score.c (strerror)
	[!HAVE_STRERROR]: Remove.

151 152
2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>

153 154 155
	EMACS_TIME simplification (Bug#11875).
	* profile.c (TV2): Remove no-longer-needed static var.

156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
	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.

173 174 175 176 177
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.

178 179 180 181
2012-07-09  Juanma Barranquero  <lekktu@gmail.com>

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

182 183 184 185 186 187 188 189 190 191 192 193
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.

194 195 196 197 198 199 200 201
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.

202 203 204 205 206
2012-07-07  Juanma Barranquero  <lekktu@gmail.com>

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

207 208 209 210 211 212 213
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.

214 215 216 217 218
2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>

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

219 220 221 222
2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>

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

223 224 225 226 227 228 229 230 231 232
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.

233 234 235 236 237
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
238 239 240 241
2012-06-27  Glenn Morris  <rgm@gnu.org>

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

242 243 244 245 246 247 248 249 250 251
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.

252 253 254 255 256
2012-06-25  Dmitry Antipov  <dmantipov@yandex.ru>

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

257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
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.

272 273 274 275
2012-06-24  Samuel Bronson  <naesten@gmail.com>  (tiny change)

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

276 277 278 279 280
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.
281
	* profile.c: Include inttypes.h, intprops.h.
282 283 284 285
	(time_string): Size conservatively; do not guess size.
	(get_time): Now prints nanoseconds.
	(gettimeofday): Remove replacement function; gnulib now does this.

286 287 288 289 290
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
291 292
2012-06-06  Glenn Morris  <rgm@gnu.org>

293 294 295 296
	* 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
297 298 299 300
	* vcdiff: Remove file.
	* Makefile.in (SCRIPTS, STAMP_SCRIPTS): Remove vcdiff.
	(stamp-vcdiff): Remove.

301 302 303 304 305 306
2012-06-05  Glenn Morris  <rgm@gnu.org>

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

Glenn Morris's avatar
Glenn Morris committed
307 308 309 310 311 312 313
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.

314
2012-05-31  Eli Zaretskii  <eliz@gnu.org>
315 316 317 318 319

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

320 321 322 323 324 325
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.

326 327 328 329
2012-05-26  Glenn Morris  <rgm@gnu.org>

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

Paul Eggert's avatar
Paul Eggert committed
330 331 332 333 334 335
2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>

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

336 337 338 339
2012-05-22  Glenn Morris  <rgm@gnu.org>

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

Paul Eggert's avatar
Paul Eggert committed
340 341 342 343 344 345
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.

346 347 348 349 350
2012-05-21  Glenn Morris  <rgm@gnu.org>

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

351 352 353 354
2012-05-18  Glenn Morris  <rgm@gnu.org>

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

355 356 357 358
2012-05-17  Glenn Morris  <rgm@gnu.org>

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

359 360 361 362 363
2012-05-12  Glenn Morris  <rgm@gnu.org>

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

364 365 366 367 368 369 370 371
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.

372 373 374 375 376
2012-05-05  Jim Meyering  <meyering@redhat.com>

	* lib-src/pop.c (pop_stat, pop_list, pop_multi_first, pop_last):
	NUL-terminate the error buffer (Bug#11372).

377 378 379 380
2012-05-02  Juanma Barranquero  <lekktu@gmail.com>

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

381 382 383 384 385
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
386 387 388 389 390
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
391
2012-04-20  Chong Yidong  <cyd@gnu.org>
392 393 394

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

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

Paul Eggert's avatar
Paul Eggert committed
399
	configure: new option --enable-gcc-warnings (Bug#11207)
400 401 402 403
	* Makefile.in (C_WARNINGS_SWITCH): Remove.
	(WARN_CFLAGS, WERROR_CFLAGS): New macros.
	(BASE_CFLAGS): Use new macros rather than old.

404 405 406 407 408 409 410
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
411
2012-04-14  Juanma Barranquero  <lekktu@gmail.com>
Paul Eggert's avatar
Paul Eggert committed
412

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

416 417 418 419
2012-04-07  Eli Zaretskii  <eliz@gnu.org>

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

420 421 422 423 424 425 426 427 428 429 430
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.
431
	(ALL): Include $(BLD)/test-distrib.exe.
432

433 434
2012-03-11  Andreas Schwab  <schwab@linux-m68k.org>

435 436
	* emacsclient.c (main): Handle -print-nonl command.

437 438 439
	* emacsclient.c (main): Handle multiple messages in a single
	datagram.

440 441 442 443 444 445 446 447 448 449 450
	* 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.

451 452 453 454 455 456
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.

457 458 459 460 461
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)

462 463 464 465 466 467 468 469
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

470 471 472 473 474
2011-11-30  Chong Yidong  <cyd@gnu.org>

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

475 476 477 478 479
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
480
	pulled in by unistd.h on POSIX hosts and stdlib.h on MS-Windows.
481

482 483 484 485
2011-11-24  Glenn Morris  <rgm@gnu.org>

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

486 487 488 489
2011-11-14  Dan Nicolaescu  <dann@ics.uci.edu>

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

490 491 492 493
2011-10-27  Juanma Barranquero  <lekktu@gmail.com>

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

494 495 496 497
2011-09-07  Glenn Morris  <rgm@gnu.org>

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

498 499 500 501
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
502
2011-09-06  Paul Eggert  <eggert@cs.ucla.edu>
503 504

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

507
2011-09-04  Paul Eggert  <eggert@cs.ucla.edu>
508

Paul Eggert's avatar
Paul Eggert committed
509
	Integer and memory overflow issues (Bug#9397).
510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527

	* 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'.

528 529 530 531 532 533 534
	* 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
	greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its
	result might not fit in 'int'.

535 536 537 538
	* 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.

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

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

544 545 546 547 548 549 550 551
	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
552 553 554
	Assume support for memcmp, memcpy, memmove, memset.
	* etags.c (absolute_filename): Assume memmove exists.

555 556 557 558
2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>

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

559 560 561 562 563
2011-07-02  Jason Rumney  <jasonr@gnu.org>

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

564 565 566 567 568
2011-06-25  Glenn Morris  <rgm@gnu.org>

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

569 570 571 572
2011-06-25  Andreas Rottmann  <a.rottmann@gmx.at>

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

573 574 575 576 577 578 579 580 581 582
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.

583 584 585 586
2011-06-01  Dan Nicolaescu  <dann@ics.uci.edu>

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

Paul Eggert's avatar
Paul Eggert committed
587 588 589 590 591 592
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.

593 594
2011-05-25  Glenn Morris  <rgm@gnu.org>

595 596 597 598 599
	* 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.
600
	(all, clean): Use $EXE_FILES.
601

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

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

607 608 609 610
2011-05-24  Glenn Morris  <rgm@gnu.org>

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

611 612 613 614 615
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
616 617 618 619 620 621 622 623
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
624 625
2011-04-24  Teodor Zlatanov  <tzz@lifelogs.com>

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

628 629
2011-04-16  Paul Eggert  <eggert@cs.ucla.edu>

630 631
	Static checks with GCC 4.6.0 and non-default toolkits.

632 633 634 635
	* 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.

636 637 638
	* fakemail.c (xmalloc, xreallc): Use standard C prototypes
	with void *.  This avoids warnings about pointer casts.

639 640 641 642
	* emacsclient.c (main): Don't use uninitialized var.
	(IS_ANY_SEP): Remove; unused.
	(get_current_dir_name): Add an extern decl.

643
2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
644

645
	Fix more problems found by GCC 4.6.0's static checks.
646

647
	* emacsclient.c (message): Mark it as a printf-like function.
648 649 650 651

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

652
2011-03-30  Paul Eggert  <eggert@cs.ucla.edu>
653

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

657 658 659 660
2011-03-27  Glenn Morris  <rgm@gnu.org>

	* emacsclient.c: Replace SIGTYPE with void.

661 662 663 664
2011-03-23  Juanma Barranquero  <lekktu@gmail.com>

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

665 666 667 668 669
2011-03-23  Glenn Morris  <rgm@gnu.org>

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

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

672 673 674 675 676 677 678
	* 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.

679 680
	* etags.c (Ada_funcs): Redo slightly to avoid overflow warning.

681 682 683 684 685 686
	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.

687 688
	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
689 690
	-r is specified and scorecount != MAX_SCORES (Bug#8310).  This bug
	was introduced in the 2002-04-10 change, and was found with gcc
691 692
	-Wstrict-overflow (GCC 4.5.2, x86-64).

Paul Eggert's avatar
Paul Eggert committed
693 694 695 696 697 698 699
	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.

700 701 702 703
2011-03-07  Chong Yidong  <cyd@stupidchicken.com>

	* Version 23.3 released.

704 705 706 707 708 709 710
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.

711 712
2011-02-26  Eli Zaretskii  <eliz@gnu.org>

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

715 716 717 718
	* emacsclient.c (xstrdup) [WINDOWSNT]: Function added back.
	(w32_getenv): Use xstrdup to return all values in malloc'ed
	storage.

719 720
2011-02-26  Paul Eggert  <eggert@cs.ucla.edu>

721 722 723
	* 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.
724
	(BROWSE_STRUCT): Remove unused macro.
725

726 727 728 729 730 731 732 733
	* 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.

734 735 736
	* 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.
737
	(insert_keyword): Rename parameter to avoid shadowing diagnostic.
738

739 740
2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>

741
	* emacsclient.c (main): Avoid dangling 'if'.
742 743 744 745 746
	(xstrdup): Remove; no longer needed.
	(get_current_dir_name, w32_getenv, get_server_config, find_tty):
	(set_local_socket, main):
	Use const char *, not char *, for pointers that are not assigned
	through.
747 748 749
	(IF_LINT): New macro.
	(set_local_socket, main): Use it to suppress warnings with
	GCC -Wuninitialized.
750

751 752 753 754 755
	* emacsclient.c: Redo local variables to avoid shadowing problems.
	(message, socket_status, start_daemon_and_retry_set_socket):
	Rename locals.
	(main): Move decl of "i".

756 757 758
	* etags.c (ISUPPER): Move to inside the only #ifdef where it's used.
	This avoids an unused-macro warning with some GCC settings.

759 760 761
	* make-docfile.c (write_globals): Change char * to char const *
	to avoid a GCC "assignment discards qualifiers" diagnostic
	in some configurations.
762 763
	(scan_c_file): Refactor local variable decls to make their scope
	more accurate and to avoid a GCC -Wuninitialized diagnostic.
764

765 766
2011-02-22  Eli Zaretskii  <eliz@gnu.org>

767 768
	* etags.c (canonicalize_filename, ISUPPER): Fix last change.

769 770
	* makefile.w32-in ($(BLD)/ebrowse.$(O), $(BLD)/pop.$(O)):
	Depend on ../lib/min-max.h.
771

Paul Eggert's avatar
Paul Eggert committed
772 773
2011-02-22  Paul Eggert  <eggert@cs.ucla.edu>

774 775 776 777
	etags: Downcase drive letters, for consistency with Emacs proper.
	* etags.c (upcase): Remove; no longer used.
	(canonicalize_filename): Downcase drive letters.

Paul Eggert's avatar
Paul Eggert committed
778 779 780
	Assume S_ISLNK etc. work, since gnulib supports this.
	* etags.c (S_ISREG): Remove.

781 782 783 784 785
2011-02-22  Paul Eggert  <eggert@cs.ucla.edu>

	Assume S_ISLNK etc. work, since gnulib supports this.
	* etags.c (S_ISREG): Remove.

786 787 788 789
2011-02-22  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (obj): Remove filemode.o.

790 791
2011-02-21  Paul Eggert  <eggert@cs.ucla.edu>

Paul Eggert's avatar
Paul Eggert committed
792 793 794 795
	New file "lib/min-max.h".
	* ebrowse.c (min, max): Define them by including <min-max.h>
	instead of defining it ourselves.
	* pop.c (min): Likewise.
796
	* Makefile.in (ebrowse${EXEEXT}, pop.o): Depend on min-max.h.
Paul Eggert's avatar
Paul Eggert committed
797

798 799 800
	* movemail.c (popmail): Report fchown failure instead of ignoring it.
	But if the file already has the right ownership, don't worry about it.

801
	* make-docfile.c (input_buffer): Rename variables to avoid shadowing.
802
	* test-distrib.c (buf): Make this local, to avoid shadowing.
803

804
	* movemail.c (main, pop_retr): Rename locals to avoid shadowing.
Paul Eggert's avatar
Paul Eggert committed
805
	(progname, sfi, sfo, ibuffer, obuffer): Remove unused vars.
806 807 808
	(DONE): Remove unused macro.
	(DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_FROM_LINE):
	Define these macros only in the contexts that need them.
809 810
	* pop.c (index): Remove unused macro.
	(KPOP_PORT): Define only if KERBEROS is defined.
811

812 813 814 815 816 817 818
	Declare file-scope functions and variables static if not exported.
	This is more consistent, and is nicer with gcc -Wstrict-prototypes.
	* ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c:
	* profile.c, test-distrib.c, update-game-score.c:
	Declare non-'main' functions and variables to be static.
	* ebrowse.c: Omit redundant function prototypes.

819 820 821 822 823 824
2011-02-21  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/emacsclient.$(O))
	($(BLD)/etags.$(O), $(BLD)/movemail.$(O), $(BLD)/ntlib.$(O)):
	Depend on $(EMACS_ROOT)/nt/inc/sys/stat.h.

825
2011-02-21  Ben Key  <bkey76@gmail.com>
826 827 828 829

	* make-docfile.c (scan_c_file): Adapt DEFVAR_PER_BUFFER case to
	the new BVAR macro.

830 831 832 833
2011-02-20  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (obj): Remove md5.o.

834 835 836 837
2011-02-18  Karl Chen  <Karl.Chen@quarl.org>

	* emacsclient.c (main): Loop while `recv' return EINTR.

838 839 840 841 842 843
2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>

	* make-docfile.c (EMACS_INTEGER): Rename from EMACS_INT.
	This avoids collision with config.h's EMACS_INT on some
	configurations.  All uses changed.

Tom Tromey's avatar
Tom Tromey committed
844 845 846 847 848 849 850 851 852 853 854 855 856 857
2011-02-08  Tom Tromey  <tromey@redhat.com>

	* make-docfile.c: Unconditionally include stdlib.h.
	(generate_globals): New global.
	(xrealloc): New function.
	(main): Handle '-g'.  Call start_globals, write_globals.
	(scan_file): Conditionally call put_filename.
	(start_globals): New function.
	(struct global): New.
	(num_globals, globals): New globals.
	(add_global, compare_globals, write_globals): New functions.
	(scan_c_file): Update for "-g".
	(scan_lisp_file): Fail if "-g".

858 859
2011-02-05  Paul Eggert  <eggert@cs.ucla.edu>

860
	* emacsclient.c: Conform to C89 pointer rules.
861 862 863
	(file_name_absolute_p): Accept const char *, not const unsigned
	char *, to satisfy C89 rules.

864 865
2011-02-02  Eli Zaretskii  <eliz@gnu.org>

866 867
	* makefile.w32-in (ETAGS_CFLAGS, CTAGS_CFLAGS):
	Add ``-DEMACS_NAME="\"GNU Emacs\""''.
868
	(obj): Remove strftime.o.
869

870 871 872 873 874 875
2011-01-31  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (VERSION): Don't define, defined on nt/config.nt.
	(ECLIENT_CFLAGS): Remove -DVERSION.
	($(BLD)/emacsclient.$(O)): Don't depend on makefile.w32-in.

876 877 878 879 880
2011-01-31  Paul Eggert  <eggert@cs.ucla.edu>

	src/emacs.c now gets version number from configure.in
	* ebrowse.c: Adjust comment to say that.

881 882 883 884 885 886 887 888
2011-01-30  Jim Meyering  <meyering@redhat.com>

	make-docfile: don't corrupt heap for an invalid .elc file
	"printf '#@1a' > in.elc; ./make-docfile in.elc" would store 0
	one byte before just-malloc'd saved_string buffer.
	* make-docfile.c (scan_lisp_file): Diagnose an invalid dynamic
	doc string length.  Also fix an always-false while-loop test.

889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907
2011-01-29  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
	(GETOPTOBJS, GETOPTDEPS): Remove targets.
	(MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
	($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
	(ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
	and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
	(clean): Don't remove getopt.h.
	(getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
	($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
	$(EMACS_ROOT)/lib/getopt.h.

2011-01-28  Chong Yidong  <cyd@stupidchicken.com>

	* ntlib.c (setregid): New stub, renamed from setegid.

	* ntlib.h: Update prototype.

Glenn Morris's avatar
Glenn Morris committed
908
2011-01-25  Chong Yidong  <cyd@stupidchicken.com>
909 910 911 912

	* movemail.c (main): Use setregid instead of setegid, which is
	missing on older systems.  Suggested by Peter O'Gorman (Bug#6811).

913 914 915 916 917 918 919 920
2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>

	Check return values of some library calls.
	* hexl.c (main): Check fread result.
	* make-docfile.c (main): Check chdir result.
	(scan_c_file): Check fscanf result.
	* movemail.c (main): Check ftruncate result.

Paul Eggert's avatar
Paul Eggert committed
921
2011-01-17  Paul Eggert  <eggert@cs.ucla.edu>
Paul Eggert's avatar
Paul Eggert committed
922

Paul Eggert's avatar
Paul Eggert committed
923 924 925 926 927 928
	Include <unistd.h> unilaterally.
	* emacsclient.c, etags.c, fakemail.c, make-docfile.c, movemail.c:
	* pop.c, test-distrib.c, update-game-score.c:
	Include <unistd.h> without worrying about HAVE_UNISTD_H, since
	unistd.h is always present now, possibly supplied by gnulib.

929 930 931 932 933
	Include <getopt.h> not "getopt.h".
	* ebrowse.c, emacsclient.c: Include <getopt.h>, not "getopt.h".
	Since getopt.h is no longer in this directory, there's no point
	using the form with double-quotes.

Paul Eggert's avatar
Paul Eggert committed
934 935 936 937 938 939 940 941 942 943
	Remove unused files.
	* getopt.c, getopt1.c, getopt_.h, getopt_int.h: Remove.
	These files are now in ../lib, copied from gnulib.

	Use gnulib's getopt-gnu module.
	* Makefile.in (mostlyclean): Do not clean getopt.h or getopt.h-t,
	as these are now done by gnulib.
	(GETOPT_H, getopt.h, GETOPTOBJS, GETOPTDEPS, getopt.o, getopt1.o):
	Remove; now done by gnulib.  All uses removed.

Paul Eggert's avatar
Paul Eggert committed
944 945 946 947 948 949 950 951
	Automate syncing from gnulib.
	* Makefile.in (EXE_FILES): New macro.
	(BASE_CFLAGS): Add -I../lib and -I${srcdir}/../lib,
	for gnulib's .h files.
	(LOADLIBES): Add ../lib/libgnu.a.
	($(EXE_FILES)): Depend on ../lib/libgnu.a.
	(../lib/libgnu.a): New rule.

952 953 954 955
2011-01-08  Paul Eggert  <eggert@cs.ucla.edu>

	* Makefile.in (EXECUTABLES): Remove; macro unused since 1993.

956 957
2011-01-08  Glenn Morris  <rgm@gnu.org>

958 959
	* Makefile.in (EMACSOPT): Add --no-site-lisp.

960 961
	* Makefile.in (EMACSOPT): Remove --multibyte, it does nothing any more.

962 963 964 965 966 967
2011-01-02  Glenn Morris  <rgm@gnu.org>

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

968 969 970 971 972
2010-11-27  Joe Matarazzo  <joe.matarazzo@gmail.com>  (tiny change)

	* ebrowse.c (yylex): If end of input buffer encountered while
	searching for a newline after "//", return YYEOF.  (Bug#7446)

Stefan Monnier's avatar
Stefan Monnier committed
973
2010-11-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
974 975 976 977

	* emacsclient.c (set_local_socket) [DARWIN_OS]: Add fall-back
	definition of _CS_DARWIN_USER_TEMP_DIR for Mac OS X 10.4 and older.

978 979 980 981 982 983
2010-11-15  Dan Nicolaescu  <dann@ics.uci.edu>

	* test-distrib.c: Remove include guards for config.h and fcntl.h.
	(O_RDONLY): Do not define.
	(cool_read): Fix type for variable "sofar".

984 985 986 987
2010-10-25  Glenn Morris  <rgm@gnu.org>

	* makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove easymenu.elc.

988 989 990 991 992 993 994 995 996 997
2010-10-23  Glenn Morris  <rgm@gnu.org>

	* digest-doc.c, sorted-doc.c: Remove files.
	* Makefile.in (UTILITIES): Remove digest-doc and sorted-doc.
	(digest-doc${EXEEXT}, sorted-doc${EXEEXT}): Remove rules.
	* makefile.w32-in (ALL): Remove digest-doc and sorted-doc.
	($(BLD)/sorted-doc.exe, $(BLD)/digest-doc.exe, sorted-doc, digest-doc)
	($(BLD)/digest-doc.$(O), $(BLD)/sorted-doc.$(O)): Remove rules.
	(install): Don't install digest-doc.exe or sorted-doc.exe.

Dan Nicolaescu's avatar
Dan Nicolaescu committed
998 999 1000 1001
2010-10-10  Dan Nicolaescu  <dann@ics.uci.edu>

	* Makefile.in (PROFILING_LDFLAGS): Remove, not needed.

1002 1003 1004 1005 1006 1007
2010-10-09  Glenn Morris  <rgm@gnu.org>

	* b2m.c, b2m.pl: Remove files.
	* Makefile.in (INSTALLABLES): Remove b2m.
	* makefile.w32-in ($(BLD)/b2m.$(O)): Remove.

1008
2010-10-08  Glenn Morris  <rgm@gnu.org>
Glenn Morris's avatar
Glenn Morris committed
1009 1010 1011 1012

	* emacsclient.c (set_local_socket) [DARWIN_OS]: Try as a fall-back
	DARWIN_USER_TEMP_DIR.  (Bug#3992)

1013 1014
2010-10-03  Dan Nicolaescu  <dann@ics.uci.edu>

Dan Nicolaescu's avatar
Dan Nicolaescu committed
1015 1016 1017
	* test-distrib.c (cool_read):
	* movemail.c (main, concat):
	* make-docfile.c (scan_file, write_c_args):
1018
	* emacsclient.c (get_server_config): Fix -Wconversion warning.
Dan Nicolaescu's avatar
Dan Nicolaescu committed
1019 1020 1021 1022
	(egetenv): Move conditional definition earlier.
	(progname): Use const.
	* sorted-doc.c (xstrdup): Use const.

1023 1024
	* Makefile.in: Remove ^L, old makes choke on it.

1025 1026 1027 1028 1029
2010-10-02  Wolfgang Schnerring  <wosc@wosc.de>  (tiny change)

	* emacsclient.c (main): Return EXIT_FAILURE if Emacs sends us an
	error string (Bug#6963).

1030 1031 1032 1033
2010-10-02  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (tags): Remove target.

1034 1035 1036 1037
2010-10-01  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (tags, TAGS): New targets.

1038 1039 1040 1041 1042
2010-09-30  Juanma Barranquero  <lekktu@gmail.com>

	* emacsclient.c (get_server_config): Don't read Emacs pid from
	the authentication file.

1043 1044
2010-09-29  Juanma Barranquero  <lekktu@gmail.com>

1045 1046
	* makefile.w32-in (../src/config.h): Remove target, it is stale.

1047 1048 1049
	* emacsclient.c (main): Remove unused variables.
	(start_daemon_and_retry_set_socket): Use EXIT_FAILURE.

1050 1051 1052 1053
2010-09-25  Ulrich Mueller  <ulm@gentoo.org>

	* etags.c (compressors, print_language_names): Support xz compression.

1054 1055
2010-08-11  Jan Djärv  <jan.h.d@swipnet.se>

Juanma Barranquero's avatar
Juanma Barranquero committed
1056
	* fakemail.c: Include stdlib.h for getenv.  Remove declaration of
1057
	popen, fclose and pclose.
Juanma Barranquero's avatar
Juanma Barranquero committed
1058
	(my_name, fatal, error, put_line): Use const char*.
1059 1060
	(main): Remove extern getenv, mail_program_name is const char*.

1061 1062 1063 1064 1065 1066 1067
	* update-game-score.c (get_prefix, write_scores, main): Use const char*.

	* sorted-doc.c (error, fatal, states): Use const char *.

	* pop.h (pop_multi_first): Use const char *.
	(_ARGS): Remove.

Juanma Barranquero's avatar
Juanma Barranquero committed
1068
	* pop.c (pop_multi_first, socket_connection, sendline): Use const char*.
1069 1070 1071

	* movemail.c (fatal, error, concat): Use const char *.

1072 1073
	* make-docfile.c (error, fatal, scan_c_file, scan_lisp_file):
	Use const char *.
1074 1075 1076 1077 1078

	* etags.c (compressor, language, Ada_suffix, Ada_help, Asm_suffixes)
	(Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes)
	(Cplusplus_help, Cjava_suffixes, Cobol_suffixes, Cstar_suffixes)
	(Erlang_suffixes, Erlang_help, Forth_suffixes, Forth_help)
Juanma Barranquero's avatar
Juanma Barranquero committed
1079
	(Fortran_suffixes, Fortran_help, HTML_suffixes, HTML_help)
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104
	(Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help)
	(Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help)
	(Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters)
	(Perl_help, PHP_suffixes, PHP_help, plain_C_suffixses, PS_suffixes)
	(PS_help, Prolog_suffixes, Prolog_help, Python_suffixes, Python_help)
	(Scheme_suffixes, Scheme_help, TeX_suffixes, TeX_help, Texinfo_suffixes)
	(Texinfo_help, Yacc_suffixes, Yacc_help, auto_help, none_help)
	(no_lang_help, print_language_names)
	(get_language_from_interpreter, get_language_from_filename)
	(init, make_tag, struct C_stab_entry, write_classname, TEX_defenv)
	(TEX_decode_env, nocase_tail, savestr, savenstr, fatal, pfatal)
	(concat): Use const char*.

	* emacsclient.c (message, sock_err_message, send_to_emacs)
	(quote_argument, set_local_socket)
	(start_daemon_and_retry_set_socket): Use const char*.

	* ebrowse.c (struct member): filename, def_filename is const.
	(struct sym): filename, sfilename is const.
	(struct kw): name is const.
	(add_sym, yyerror, token_string, insert_keyword, main): Use const char*.

	* b2m.c (concat, fatal): Use const char*.
	(main): Don't assign labels a string literal.

1105 1106 1107 1108 1109
2010-08-07  Juanma Barranquero  <lekktu@gmail.com>

	* ebrowse.c (usage, version, mark_virtual):
	Remove duplicate declarations.

Dan Nicolaescu's avatar
Dan Nicolaescu committed
1110 1111 1112
2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>

	* emacsclient.c: Move socket related #includes together with the
Juanma Barranquero's avatar
Juanma Barranquero committed
1113
	rest of the #includes.  Move WINDOWSNT includes closer together.
Dan Nicolaescu's avatar
Dan Nicolaescu committed
1114 1115 1116 1117
	(HAVE_CONFIG_H): Remove.
	(NO_RETURN): Remove, defined in config.h.
	(main): Convert definition to standard C.

1118 1119 1120 1121
2010-07-29  Juanma Barranquero  <lekktu@gmail.com>

	* make-docfile.c (write_c_args): Warn for old-style empty arglist ().

1122 1123 1124 1125 1126 1127 1128
2010-07-25  Juanma Barranquero  <lekktu@gmail.com>

	* emacsclient.c (getcwd): Fix previous change: make getcwd
	conditional on HAVE_GETCWD and declare with the correct POSIX
	profile (for some reason MinGW headers define its 2nd arg as int,
	not size_t; but getcwd is not used on Windows nonetheless).

1129 1130 1131 1132 1133
2010-07-25  Juanma Barranquero  <lekktu@gmail.com>

	* emacsclient.c (getcwd, w32_getenv):
	* ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.

1134 1135
2010-07-24  Dan Nicolaescu  <dann@ics.uci.edu>

Juanma Barranquero's avatar
Juanma Barranquero committed
1136
	* update-game-score.c (usage): Add NO_RETURN specifier.
1137 1138 1139 1140 1141 1142 1143 1144
	* movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
	* make-docfile.c (fatal):
	* hexl.c (usage):
	* fakemail.c (fatal):
	* etags.c (fatal, suggest_asking_for_help, pfatal):
	* emacsclient.c (fatal):
	* b2m.c (fatal): Likewise.

1145 1146 1147 1148
2010-07-23  Juanma Barranquero  <lekktu@gmail.com>

	* make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".

1149 1150 1151 1152 1153 1154 1155 1156 1157
2010-07-20  Juanma Barranquero  <lekktu@gmail.com>

	* emacsclient.c (get_current_dir_name, w32_get_resource)
	(w32_getenv, w32_set_user_model_id, w32_window_app, w32_execvp)
	(close_winsock, initialize_sockets, w32_find_emacs_process)
	(w32_give_focus):
	* ntlib.c (getlogin, getuid, getgid, getegid):
	Convert definitions to standard C.

1158 1159 1160 1161 1162 1163 1164 1165
2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>

	* Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
	(PROFILING_LDFLAGS): Set from substitution.
	(BASE_CFLAGS): Add  ${C_WARNINGS_SWITCH}.
	(ALL_CFLAGS, CPP_CFLAGS): Add ${PROFILING_CFLAGS}.
	(LINK_CFLAGS): Add ${PROFILING_LDFLAGS}.

1166 1167 1168 1169 1170
2010-07-12  Eli Zaretskii  <eliz@gnu.org>

	* makefile.w32-in (lisp2): Change hebrew.el to hebrew.elc (see
	2010-07-12T05:25:46Z!handa@etlken).

1171 1172 1173 1174 1175 1176 1177
2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>

	* emacsclient.c (set_local_socket): Use strchr, strrchr instead of
	index, rindex.
	* movemail.c (mail_spool_name, popmail): Likewise.
	* pop.c (pop_list): Likewise.

Eli Zaretskii's avatar
Eli Zaretskii committed
1178 1179
2010-07-11  Eli Zaretskii  <eliz@gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
1180
	* makefile.w32-in (obj): Add menu.o, bidi.o, w32uniscribe.o,
Eli Zaretskii's avatar
Eli Zaretskii committed
1181 1182
	and unexw32.o.  (Bug#6603)

1183 1184 1185 1186
2010-07-10  Eli Zaretskii  <eliz@gnu.org>

	* Makefile.in ($(DESTDIR)${archlibdir}): Convert spaces to TABs.

1187 1188 1189 1190
2010-07-09  Andreas Schwab  <schwab@linux-m68k.org>

	* make-docfile.c (write_c_args): Restructure scanning loop.

1191 1192 1193 1194 1195
2010-07-09  Dan Nicolaescu  <dann@ics.uci.edu>

	* make-docfile.c (write_c_args): Deal with type names in DEFUN
	arguments.

Dan Nicolaescu's avatar
Dan Nicolaescu committed
1196 1197 1198 1199 1200 1201
2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>

	* update-game-score.c (P_): Remove macro.
	* ebrowse.c: Remove include guards.
	(P_): Remove macro.

1202 1203 1204 1205 1206 1207
2010-07-07  Andreas Schwab  <schwab@linux-m68k.org>

	* ebrowse.c (add_sym, make_namespace): Replace bcopy, bzero by
	memcpy, memmove, memset.
	* pop.c (pop_retrieve, socket_connection, pop_getline): Likewise.

1208 1209 1210
2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>

	* movemail.c: Add MAIL_USE_POP around prototypes.
Andreas Schwab's avatar
Andreas Schwab committed
1211 1212 1213 1214 1215
	Include <string.h> if HAVE_STRING_H.
	(strerror): Only declare if !HAVE_STRERROR.
	(fatal): Make static.
	(error): Likewise.
	(pfatal_with_name): Likewise.
Juanma Barranquero's avatar
Juanma Barranquero committed
1216
	(pfatal_and_delete): Likewise.
Andreas Schwab's avatar
Andreas Schwab committed
1217 1218 1219 1220 1221 1222 1223
	(concat): Likewise.
	(xmalloc): Likewise.
	(popmail): Likewise.
	(pop_retr): Likewise.
	(mbx_write): Likewise.
	(mbx_delimit_begin): Likewise.
	(mbx_delimit_end): Likewise.
1224

1225 1226 1227 1228 1229 1230 1231
2010-07-04  Dan Nicolaescu  <dann@ics.uci.edu>

	* fakemail.c (action): Convert function definitions to standard C.
	(add_a_stream):
	* test-distrib.c (cool_read):
	(main): Likewise.

Andreas Schwab's avatar
Andreas Schwab committed
1232 1233 1234 1235 1236 1237
2010-07-03  Andreas Schwab  <schwab@linux-m68k.org>

	* sorted-doc.c (cmpdoc): Fix signature.
	(qsort_compare): Delete.
	(main): Remove cast.

1238 1239 1240 1241
2010-07-03  Juanma Barranquero  <lekktu@gmail.com>

	* ebrowse.c (match_qualified_namespace_alias): Check for null pointer.

Juanma Barranquero's avatar
Juanma Barranquero committed
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253
2010-07-03  Juanma Barranquero  <lekktu@gmail.com>

	Fix prototype warnings.

	* ebrowse.c (match_qualified_namespace_alias):
	Pass sym* to find_namespace, not link*.

	* emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET.

	* sorted-doc.c (qsort_compare): New typedef.
	(main): Use it to cast cmpdoc.

1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268
2010-07-03  Dan Nicolaescu  <dann@ics.uci.edu>

	* update-game-score.c: Convert function definitions to standard C.
	* sorted-doc.c:
	* profile.c:
	* pop.c:
	* movemail.c:
	* make-docfile.c:
	* hexl.c:
	* fakemail.c:
	* etags.c:
	* ebrowse.c:
	* digest-doc.c:
	* b2m.c: Likewise.

1269 1270 1271 1272 1273 1274
2010-07-02  Dan Nicolaescu  <dann@ics.uci.edu>

	* make-docfile.c (xmalloc, xrealloc, concat, readline, fatal):
	* b2m.c (scan_file, scan_lisp_file, scan_c_file): Convert to
	standard C prototypes.

1275 1276 1277 1278 1279 1280 1281 1282
2010-07-02  Jan Djärv  <jan.h.d@swipnet.se>

	* ebrowse.c: Remove P_ and __P.
	* etags.c:
	* movemail.c:
	* pop.c:
	* update-game-score.c: Likewise.

1283 1284 1285 1286
2010-06-24  Juanma Barranquero  <lekktu@gmail.com>

	* movemail.c (error): Avoid warning when there are no args.

1287 1288 1289 1290 1291
2010-06-11  Juanma Barranquero  <lekktu@gmail.com>

	* makefile.w32-in (lisp2): Fix references to vc/vc-hooks.elc
	and vc/ediff-hook.elc.

1292 1293 1294 1295
2010-06-06  Dan Nicolaescu  <dann@ics.uci.edu>

	* ntlib.h: Remove code dealing with BSTRING.

1296 1297 1298 1299 1300 1301
2010-05-29  Chong Yidong  <cyd@stupidchicken.com>

	* emacsclient.c (longopts, decode_options, print_help_and_exit):
	New arg `-parent-id'.
	(main): Send parent-id to Emacs.

1302 1303 1304 1305
2010-05-27  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (distclean): No more Makefile.c.

1306 1307 1308 1309 1310 1311 1312 1313
2010-05-22  Jan Djärv  <jan.h.d@swipnet.se>

	* Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPS): New (Bug #6246).
	(all): Depend onSTAMP_INST_SCRIPTS, STAMP_SCRIPS (Bug #6246).
	(stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff):
	New rules (Bug #6246).
	(clean): Remove stamp-* (Bug #6246).

1314 1315 1316 1317
2010-05-12  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (INSTALLABLES): Remove @LIB_SRC_EXTRA_INSTALLABLES@.

1318 1319
2010-05-11  Glenn Morris  <rgm@gnu.org>

1320 1321 1322 1323 1324 1325
	* Makefile.in (.m.o): Remove, there are no .m files.
	(BASE_CFLAGS): New variable.
	(ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Use $BASE_CFLAGS.
	(check): Update the message.
	(update-game-score${EXEEXT}): Do not use $MOVE_FLAGS.

1326 1327
	* Makefile.in: Convert comments to makefile format.

1328 1329 1330
	* Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
	(config.h) [MSDOS]: Do not include.

1331 1332
2010-05-10  Glenn Morris  <rgm@gnu.org>

1333 1334 1335 1336 1337 1338
	* Makefile.in (LIBS_SYSTEM): Set with configure, not cpp.
	(LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
	(NOT_C_CODE): Remove, no longer used.
	(config.h) [!MSDOS]: No longer include.
	(LOADLIBES): Use LIBS_SYSTEM as a variable.

1339 1340
	* Makefile.in (BLESSMAIL_TARGET): Set with configure, not cpp.

1341 1342 1343 1344
2010-05-08  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (THIS_IS_MAKEFILE): Remove, unused.

Chong Yidong's avatar
Chong Yidong committed
1345 1346 1347 1348
2010-05-07  Chong Yidong  <cyd@stupidchicken.com>

	* Version 23.2 released.

1349 1350 1351 1352 1353 1354 1355 1356 1357
2010-05-06  Glenn Morris  <rgm@gnu.org>

	* Makefile.in: Minimize blessmail-related cpp usage.
	(BLESSMAIL_TARGET): New variable.
	(MOVEMAIL_NEEDS_BLESSING): Remove, replace by above variable.
	(blessmail): Always define this rule.
	(need-blessmail): New rule, split out from maybe-blessmail.
	(maybe-blessmail): Use BLESSMAIL_TARGET.

1358 1359 1360 1361 1362
2010-05-04  Glenn Morris  <rgm@gnu.org>

	* Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than
	@c_switch_system@, @c_switch_machine@.

1363 1364 1365 1366
2010-04-26  Dan Nicolaescu  <dann@ics.uci.edu>

	* Makefile.in (LIBS_MACHINE): Remove all uses, unused.

1367 1368 1369 1370 1371
2010-04-12  Dan Nicolaescu  <dann@ics.uci.edu>

	* Makefile.in (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Move to the
	non-cpp section.

1372 1373 1374 1375 1376 1377
2010-04-11  Dan Nicolaescu  <dann@ics.uci.edu>

	* Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): Define using
	autoconf, not cpp.
	(ALL_CFLAGS): Use them as make variables.

1378
2010-04-07  Christoph Scholtes  <cschol2112@googlemail.com>
1379 1380 1381 1382

	* makefile.w32-in (OTHER_PLATFORM_SUPPORT): Use parenthesis
	for macros for nmake compatibility.

1383 1384 1385 1386 1387 1388
2010-04-03  Juanma Barranquero  <lekktu@gmail.com>

	Add stubs for Windows, required after CVE-2010-0825 change.
	* ntlib.c (getgid, getegid, setegid): New stubs.
	* ntlib.h (getgid, getegid, setegid): Declare them.

1389 1390
2010-04-02  Dan Rosenberg  <dan.j.rosenberg@gmail.com>  (tiny change)

1391 1392
	* movemail.c (main): Check return values of setuid.
	Avoid possibility of symlink attack when movemail is setgid mail
1393 1394
	(CVE-2010-0825).

1395 1396 1397 1398 1399 1400 1401
2010-04-02  Dan Nicolaescu  <dann@ics.uci.edu>

	Remove extern errno declarations.
	* movemail.c:
	* etags.c:
	* emacsclient.c: Remove extern errno declarations.

1402 1403 1404 1405 1406 1407 1408 1409
2010-03-20  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
	(LIBHESIOD, LIBRESOLV): Make previous change a bit more friendly by
	defining these as Makefile variables.
	(LIBS_MOVE): Add LIBS_MAIL into this.
	(movemail${EXEEXT}): Just use LIBS_MOVE, not LIBS_MAIL as well.

Glenn Morris's avatar
Glenn Morris committed
1410 1411 1412 1413 1414 1415
2010-03-18  Glenn Morris  <rgm@gnu.org>

	* Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
	(HESIODLIB, LIBS_MAIL): Set using autoconf rather than cpp.
	(BASE_CFLAGS): Remove (identical to CPP_CFLAGS).

Tetsurou Okazaki's avatar
Tetsurou Okazaki committed
1416 1417 1418 1419 1420
2010-03-18  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)

	* Makefile.in (uninstall): Handle the case where archlibdir does not
	exist.  (Bug#5720)

Chong Yidong's avatar
Chong Yidong committed
1421 1422 1423 1424
2010-03-10  Chong Yidong  <cyd@stupidchicken.com>

	* Branch for 23.2.

1425 1426 1427 1428 1429
2010-02-20  Kevin Ryde  <user42@zip.com.au>

	* etags.c (Scheme_functions): Don't loop past a null character
	(Bug#5601).

Chong Yidong's avatar
Chong Yidong committed
1430
2010-01-29  Kester Habermann  <kester@linuxtag.org>  (tiny change)
1431

Juanma Barranquero's avatar
Juanma Barranquero committed
1432
	* etags.c (Fortran_functions): Handle recursive keyword (Bug#5484).
1433

Glenn Morris's avatar
Glenn Morris committed
1434 1435 1436 1437 1438 1439
2010-01-11  Glenn Morris  <rgm@gnu.org>

	* ebrowse.c (version):
	* etags.c (print_version):
	* rcs2log (Copyright): Set copyright year to 2010.

1440 1441 1442 1443 1444
2009-12-09  David Robinow  <drobinow@gmail.com>  (tiny change)

	* makefile.w32-in: Use parenthesis for macros for nmake
	compatibility.

Juanma Barranquero's avatar
Juanma Barranquero committed
1445
2009-11-23  Tobias Ringström  <tobias@ringis.se>  (tiny change)
1446

Juanma Barranquero's avatar
Juanma Barranquero committed
1447
	* etags.c (absolute_filename): Use memmove if we have it for
1448 1449
	overlapping copy.

1450