Assume POSIX 1003.1-1988 or later for unistd.h.
[bpt/emacs.git] / lib-src / ChangeLog
index 54e9e40..8e83579 100644 (file)
@@ -1,3 +1,283 @@
+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.
+
+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.
+
+2012-11-17  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in (SYSWAIT_H): New macro.
+       ($(BLD)/movemail.$(O)): Update dependencies.
+
+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.
+
+2012-10-26  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (uninstall): No INSTALLABLES live in archlibdir.
+
+       * Makefile.in (install, uninstall): Transformations should not be
+       applied to $EXEEXT.
+
+2012-10-23  Eli Zaretskii  <eliz@gnu.org>
+
+       * makefile.w32-in (lisp2): Add cp51932.el and eucjp-ms.el, to
+       follow src/lisp.mk.
+
+2012-10-21  Glenn Morris  <rgm@gnu.org>
+
+       * make-docfile.c (scan_lisp_file): Add cp51932.el and eucjp-ms.el.
+
+2012-10-20  Eli Zaretskii  <eliz@gnu.org>
+
+       * 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.
+
+2012-10-20  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * make-docfile.c (scan_lisp_file): Add bounds checking.
+
+2012-10-20  Eli Zaretskii  <eliz@gnu.org>
+
+       Prevent silent omission of doc strings from uncompiled Lisp files.
+       * 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)
+
+2012-10-17  Eli Zaretskii  <eliz@gnu.org>
+
+       * ntlib.c: Include <mbstring.h>, to avoid compiler warning about
+       _mbspbrk.
+
+2012-10-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * makefile.w32-in (obj): Add cygw32.o.
+
+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.
+
+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.
+
+2012-09-30  Eli Zaretskii  <eliz@gnu.org>
+
+       * ntlib.c (gettimeofday): Copy from src/w32.c.  lib/gettime.c
+       needs this function.
+
+2012-09-26  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in (obj): Add profiler.o.
+
+2012-09-17  Glenn Morris  <rgm@gnu.org>
+
+       * ebrowse.c (version):
+       * etags.c (print_version): Use COPYRIGHT.
+
+2012-09-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * pop.c (socket_connection) [HAVE_GETADDRINFO]:
+       Prefer assignment to memcpy when either will do.
+
+2012-08-31  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * etags.c (consider_token): Always zero-terminate token buffer.
+       (Bug#12306)
+
+2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Rely on <config.h> + <unistd.h> to declare 'environ'.
+       * emacsclient.c (environ): Remove decl.
+
+2012-08-17  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in ($(BLD)/regex.$(O)): Update dependencies.
+
+2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * etags.c (Pascal_functions): Fix parenthesization typo.
+
+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.
+
+2012-08-10  Glenn Morris  <rgm@gnu.org>
+
+       * make-docfile.c (IF_LINT):
+       * emacsclient.c (IF_LINT): Remove (in config.h now).
+
+       * make-docfile.c (main):
+       (fopen) [!WINDOWSNT]:
+       (chdir) [!DOS_NT]: No more need to undef.
+
+       * 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).
+
+       * ebrowse.c (PATH_LIST_SEPARATOR):
+       Remove, and replace with SEPCHAR from config.h.
+
+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.
+
+2012-08-03  Eli Zaretskii  <eliz@gnu.org>
+
+       * ntlib.c (lstat): New function, calls 'stat'.
+
+2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Use C99-style 'extern inline' if available.
+       * profile.c (SYSTIME_INLINE): Define.
+
+2012-08-02  Glenn Morris  <rgm@gnu.org>
+
+       * makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.
+
+2012-08-01  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (config_h): New variable.
+       Use throughout in place of ../src/config.h.
+
+2012-08-01  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in (CONFIG_H): Update dependencies.
+       (CONF_POST_H): New macro.
+
+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.
+
+2012-07-29  Eli Zaretskii  <eliz@gnu.org>
+
+       * makefile.w32-in ($(BLD)/profile.$(O)): Depend on stamp_BLD.
+
+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>.
+
+2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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.
+
+       Assume strerror.
+       * emacsclient.c, movemail.c, update-game-score.c (strerror)
+       [!HAVE_STRERROR]: Remove.
+
+2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       EMACS_TIME simplification (Bug#11875).
+       * profile.c (TV2): Remove no-longer-needed static var.
+
+       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.
+
+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.
+
+2012-07-09  Juanma Barranquero  <lekktu@gmail.com>
+
+       * emacsclient.c (w32_execvp): Declare execvp to silence the compiler.
+
+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.
+
+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.
+
+2012-07-07  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)):
+       Update dependencies.
+
+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.
+
+2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * make-docfile.c (write_globals): Warn about duplicate function
+       definitions with differing signatures.
+
 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        * make-docfile.c (scan_c_file): Suppress GCC warning.
        (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)
-       (Fortran_suffixes, Fortran_help, HTML_suffixes,  HTML_help)
+       (Fortran_suffixes, Fortran_help, HTML_suffixes, HTML_help)
        (Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help)
        (Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help)
        (Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters)