1. 27 Jun, 2012 1 commit
    • Glenn Morris's avatar
      Remove paths.el · 1ba6038a
      Glenn Morris authored
      * lisp/info.el (Info-default-directory-list): Move here from paths.el.
      * lisp/paths.el: Remove file, which is now empty.
      * lisp/loadup.el: No longer load "paths".
      
      * src/lisp.mk (lisp): Remove paths.elc.
      
      * lib-src/makefile.w32-in (lisp2): Remove paths.el.
      
      * INSTALL: Remove references to paths.el.
      1ba6038a
  2. 26 Jun, 2012 1 commit
  3. 25 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      * configure.in (AC_CHECK_FUNCS): Detect library functions · 3511c784
      Dmitry Antipov authored
      strcasecmp and strncasecmp.
      * lib-src/etags.c (etags_strcasecmp, etags_strncasecmp): Define to
      library functions strcasecmp and strncasecmp if available.
      * lwlib/lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which
      may be defined to library function strcasecmp if available.
      * src/dispextern.c (xstrcasecmp): Define to library function
      strcasecmp if available.
      * src/xfaces.c: Do not use xstrcasecmp if strcasecmp is available.
      3511c784
  4. 24 Jun, 2012 2 commits
  5. 23 Jun, 2012 1 commit
  6. 22 Jun, 2012 1 commit
  7. 08 Jun, 2012 1 commit
  8. 06 Jun, 2012 2 commits
    • Glenn Morris's avatar
      Remove script stamping in lib-src/ · 67163749
      Glenn Morris authored
      rcs2log no longer needs it, and grep-changelog never really has
      (nothing in Emacs runs that, I don't know why Emacs includes it, if you
      are using an uninstalled out-of-tree build you can just as easily run
      it from the source directory).
      
      * lib-src/Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPTS, insrcdir)
      (stamp-rcs2log, stamp-grep-changelog): Remove.
      (all, clean): Remove references to stamps.
      
      * .bzrignore: Do not ignore lib-src/stamp*.
      67163749
    • Glenn Morris's avatar
      Remove lib-src/vcdiff · 276d5f5d
      Glenn Morris authored
      * lib-src/vcdiff: Remove file.
      * lib-src/Makefile.in (SCRIPTS, STAMP_SCRIPTS): Remove vcdiff.
      (stamp-vcdiff): Remove.
      
      * INSTALL, make-dist: Remove vcdiff.
      
      * lisp/emacs-lisp/authors.el (authors-fixed-entries): Remove vcdiff
      276d5f5d
  9. 05 Jun, 2012 1 commit
  10. 03 Jun, 2012 1 commit
    • Glenn Morris's avatar
      Remove lib-src/rcs-checkin · 418cd726
      Glenn Morris authored
      This script isn't used by Emacs, and I can't imagine anyone else is
      using it any more either...  From the commentary:
      "This script is intended to be used to convert files with an
      old-Emacs-style version history for use with VC (the Emacs 19
      version-control interface), which likes to use RCS as its back end."
      
      * lib-src/rcs-checkin: Remove file.
      * lib-src/Makefile.in (INSTALLABLE_SCRIPTS, STAMP_INST_SCRIPTS):
      Remove rcs-checkin.
      (stamp-rcs-checkin): Remove.
      
      * INSTALL, make-dist: Remove rcs-checkin.
      
      * admin/quick-install-emacs (PUBLIC_LIBSRC_SCRIPTS): Remove rcs-checkin.
      
      * doc/man/rcs-checkin.1: Remove.
      418cd726
  11. 01 Jun, 2012 1 commit
  12. 30 May, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/byte-run.el (defmacro, defun): Move from C. · 61b108cc
      Stefan Monnier authored
      (macro-declaration-function): Move var from C code.
      (macro-declaration-function): Define function with defalias.
      * lisp/emacs-lisp/macroexp.el (macroexpand-all-1):
      * lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Don't handle
      defun/defmacro any more.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-signature):
      Provide fallback for unknown arglist.
      (byte-compile-arglist-warn): Change calling convention.
      (byte-compile-output-file-form): Move print-vars binding.
      (byte-compile-output-docform): Simplify accordingly.
      (byte-compile-file-form-defun, byte-compile-file-form-defmacro)
      (byte-compile-defmacro-declaration): Remove.
      (byte-compile-file-form-defmumble): Generalize to defalias.
      (byte-compile-output-as-comment): Return byte-positions.
      Simplify callers accordingly.
      (byte-compile-lambda): Use `assert'.
      (byte-compile-defun, byte-compile-defmacro): Remove.
      (byte-compile-file-form-defalias):
      Use byte-compile-file-form-defmumble.
      (byte-compile-defalias-warn): Remove.
      * src/eval.c (Fdefun, Fdefmacro, Vmacro_declaration_function):
      Move to byte-run.el.
      (Fautoload): Do the hash-doc more carefully.
      * src/data.c (Fdefalias): Purify definition, except for keymaps.
      (Qdefun): Move from eval.c.
      * src/lisp.h (Qdefun): Remove.
      * src/lread.c (read1): Tiny simplification.
      * lib-src/make-docfile.c: Improve comment style.
      (search_lisp_doc_at_eol): New function.
      (scan_lisp_file): Use it.
      61b108cc
  13. 29 May, 2012 1 commit
    • Eli Zaretskii's avatar
      Fix bug #11405 with MSVC build of emacsclientw. · 06523364
      Eli Zaretskii authored
       lib-src/makefile.w32-in ($(BLD)/emacsclientw.exe): Use $(MWINDOWS)
       instead of a literal -mwindows, which is not supported by MSVC.
       nt/nmake.defs (MWINDOWS): Define as "-subsystem:windows -entry:mainCRTStartup".
       Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>.
       nt/gmake.defs (MWINDOWS): Define as "-mwindows".
      06523364
  14. 26 May, 2012 1 commit
  15. 22 May, 2012 2 commits
    • Paul Eggert's avatar
      Remove src/m/*. · 34374650
      Paul Eggert authored
      * configure.in: Remove all mention of src/m/*.
      (machine, machfile, M_FILE, config_machfile, and_machfile): Remove.
      All uses removed.
      (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG)
      (BITS_PER_LONG_LONG): Move to src/lisp.h.
      * lib/makefile.w32-in: Remove dependencies on
      $(EMACS_ROOT)/src/m/intel386.h.
      * make-dist: Don't make links to src/m.
      * admin/CPP-DEFINES: Do not mention src/m/*.h.
      (BITS_PER_EMACS_INT, BITS_PER_LONG, BITS_PER_CHAR)
      (BITS_PER_SHORT, BITS_PER_INT): Remove.
      * admin/MAINTAINERS: Remove src/m/.
      * lib-src/makefile.w32-in: Remove dependencies on
      $(EMACS_ROOT)/src/m/intel386.h.
      * msdos/mainmake.v2 (TAGS tags): Don't look at $(CURDIR)/src/m/intel386.h.
      * nt/config.nt: Do not include "m/intel386.h"; file was removed.
      (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG):
      Move to src/lisp.h.
      (EMACS_INT_MAX): New macro.
      This directory predates autoconf and is no longer needed nowadays.
      Move its few remaining bits of functionality to where they're needed.
      * src/m/README, src/m/alpha.h, src/m/amdx86-64.h, src/m/ia64.h, src/m/ibmrs6000.h:
      * src/m/ibms390x.h, src/m/intel386.h, src/m/m68k.h, src/m/macppc.h:
      * src/m/sparc.h, src/m/template.h: Remove.
      * src/Makefile.in (M_FILE): Remove.  All uses removed.
      * src/alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS):
      * src/lisp.h (USE_LSB_TAG):
      * src/mem-limits.h (EXCEEDS_LISP_PTR):
      Use VAL_MAX, not VALBITS, in #if.
      * src/lisp.h (EMACS_INT_MAX): New macro, useful in #if.
      (EMACS_UINT): Define unconditionally now.
      (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG)
      (BITS_PER_EMACS_INT): New constants, replacing
      what used to be in config.h, but not useful in #if.
      (GCTYPEBITS, VALBITS): Define unconditionally, since m/* files don't
      define them any more.
      (VAL_MAX): New macro.
      (VALMASK): Use it.
      * src/puresize.h (PURESIZE_RATIO): Use EMACS_INT_MAX, not
      BITS_PER_EMACS_INT, in #if.
      * src/s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY)
      (BROKEN_SIGPOLL): Move here from m/ibmrs6000.h, which was removed.
      * src/s/gnu-linux.h (ULIMIT_BREAK_VALUE) [__i386__]:
      * src/s/ms-w32.h (DATA_START):
      Move here from removed file m/intel386.h.
      * src/s/gnu.h (NLIST_STRUCT): Remove undef; 'configure' does this.
      * src/s/irix6-5.h (_LP64): Remove; lisp.h no longer needs this.
      34374650
    • Glenn Morris's avatar
      * lib-src/Makefile.in (install): Remove unneeded chmods. · 32514cfe
      Glenn Morris authored
      INSTALL_PROGRAM and INSTALL_SCRIPT default to mode 755.
      32514cfe
  16. 21 May, 2012 2 commits
    • Paul Eggert's avatar
      Assume C89 or later. · 261cb4bb
      Paul Eggert authored
      * configure.in (AC_C_PROTOTYPES, AC_C_VOLATILE, AC_C_CONST)
      (POINTER_TYPE, PROTOTYPES): Remove.
      * admin/CPP-DEFINES: Remove NULL, const.
      * lib-src/etags.c (static, const): Remove macros.
      (PTR): Remove; all uses replaced with void *.  Omit needless casts.
      * src/alloc.c, src/buffer.c, lisp.h: Replace POINTER_TYPE with void.
      * alloc.c (overrun_check_malloc, overrun_check_realloc, xmalloc)
      (xrealloc):
      * buffer.c (mmap_free_1, mmap_enlarge): Omit needless casts.
      * editfns.c, fns.c, gmalloc.c, insdel.c, sysdep.c, termcap.c (NULL):
      * textprop.c, tparam.c (NULL): Remove.
      * ralloc.c, vm-limit.c (POINTER): Assume void * works.
      * regex.c (SIGN_EXTEND_CHAR): Assume signed char works.
      * regex.h (_RE_ARGS): Remove.  All uses rewritten to use prototypes.
      * unexelf.c (ElfBitsW): Assume c89 preprocessor or better.
      * xterm.c (input_signal_count): Assume volatile works.
      261cb4bb
    • Glenn Morris's avatar
      Command substitution already runs in a subshell · b847032c
      Glenn Morris authored
      * Makefile.in (install-arch-indep, install-doc, install-info, uninstall):
      * leim/Makefile.in (leim-list.el, install):
      * lib-src/Makefile.in (insrcdir, $(DESTDIR)${archlibdir}):
      * lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
      * test/automated/Makefile.in (setwins):
      Scrap superfluous subshells.
      b847032c
  17. 18 May, 2012 1 commit
  18. 17 May, 2012 1 commit
    • Glenn Morris's avatar
      Install a self-contained NS build's libexec directly into the right place · 3a4155de
      Glenn Morris authored
      This is rather than installing it in one place then moving it.
      
      * configure.in (archlibdir): Set it for self-contained ns builds.
      (libexecdir): Don't expand it now (this is mainly cosmetic).
      
      * Makefile.in (ns_appbindir, ns_appresdir):
      Move them before things that may refer to them.
      (install-arch-dep): No need to relocate self-contained ns libexec.
      
      * lib-src/Makefile.in (ns_appbindir): New, set by configure.
      3a4155de
  19. 12 May, 2012 1 commit
    • Glenn Morris's avatar
      Don't use build-aux/install-sh -d directly · 005ad204
      Glenn Morris authored
      * leim/Makefile.in (MKDIR_P): New, set by configure.
      (install): Use $MKDIR_P.
      
      * lib-src/Makefile.in (MKDIR_P): New, set by configure.
      ($(DESTDIR)${archlibdir}): Use $MKDIR_P.
      005ad204
  20. 10 May, 2012 1 commit
  21. 02 May, 2012 6 commits
  22. 29 Apr, 2012 1 commit
  23. 20 Apr, 2012 1 commit
    • Chong Yidong's avatar
      Fix emacsclient/server behavior under --without-x. · 2d0e8e61
      Chong Yidong authored
      * lib-src/emacsclient.c (main): Send -tty to Emacs under more circumstanced (Bug#8314).
      
      * lisp/server.el (server-process-filter): Only try to open a window
      system frame if compiled with graphical support (Bug#8314).
      
      Fixes: debbugs:11102
      2d0e8e61
  24. 17 Apr, 2012 1 commit
  25. 16 Apr, 2012 1 commit
  26. 15 Apr, 2012 2 commits
  27. 12 Apr, 2012 1 commit
  28. 09 Apr, 2012 1 commit
    • Paul Eggert's avatar
      configure: new option --enable-gcc-warnings · b8df54ff
      Paul Eggert authored
      I have been using this change for many months in my private copy
      of Emacs, and have used it to find several bugs.  It's mature
      enough to publish now.
      * Makefile.in (GNULIB_MODULES): Add warnings, manywarnings.
      * configure.in: Support --enable-gcc-warnings, in the style of
      other GNU packages such as coreutils.
      (C_WARNINGS_SWITCH): Remove, replacing with...
      (WARN_CFLAGS, GNULIB_WARN_CFLAGS): New variable.
      (PKG_CHECK_MODULES, C_SWITCH_X_SITE): Use -isystem rather than -I,
      when including system files with GCC.
      * etc/NEWS: Mention --enable-gcc-warnings.
      * lib/Makefile.am (AM_CFLAGS): New macro.
      * m4/manywarnings.m4, m4/warnings.m4: New files, from gnulib.
      * lib-src/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (BASE_CFLAGS): Use new macros rather than old.
      * lwlib/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (ALL_CFLAGS): Use new macros rather than old.
      * oldXMenu/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (ALL_CFLAGS): Use new macros rather than old.
      * src/Makefile.in (C_WARNINGS_SWITCH): Remove.
      (WARN_CFLAGS, WERROR_CFLAGS): New macros.
      (ALL_CFLAGS): Use new macros rather than old.
      * src/process.c: Ignore -Wstrict-overflow to work around GCC bug 52904.
      * src/regex.c: Ignore -Wstrict-overflow.  If !emacs, also ignore
      -Wunused-but-set-variable, -Wunused-function, -Wunused-macros,
      -Wunused-result, -Wunused-variable.  This should go away once
      the Emacs and Gnulib regex code is merged.
      (xmalloc, xrealloc): Now static.
      b8df54ff
  29. 07 Apr, 2012 2 commits
    • Eli Zaretskii's avatar
      Support building on MS-Windows with libxml2. · 9078ead6
      Eli Zaretskii authored
       src/makefile.w32-in (OBJ2): Add xml.$(O).
       (GLOBAL_SOURCES): Add xml.c.
       ($(BLD)/xml.$(O)): New dependency list.
       src/xml.c (DEF_XML2_FN, LOAD_XML2_FN) [WINDOWSNT]: New macros.
       (fn_htmlReadMemory, fn_xmlReadMemory, fn_xmlDocGetRootElement)
       (fn_xmlFreeDoc, fn_xmlCleanupParser, fn_xmlCheckVersion)
       [!WINDOWSNT]: New macros.
       (init_libxml2_functions, libxml2_loaded_p): New functions.
       (parse_region): Call fn_xmlCheckVersion instead of using the macro
       LIBXML_TEST_VERSION.  Call libxml2 functions via the fn_* macros.
       (xml_cleanup_parser): New function, export for fn_xmlCleanupParser.
       Calls xmlCleanupParser only if libxml2 was loaded (or statically
       linked in).
       (Flibxml_parse_html_region, Flibxml_parse_xml_region): Call
       init_libxml2_functions before calling libxml2 functions.
       (syms_of_xml) <Qlibxml2_dll>: DEFSYM it.
       src/emacs.c: Don't include libxml/parser.h.
       (shut_down_emacs): Call xml_cleanup_parser, instead of calling
       xmlCleanupParser directly.
       src/ lisp.h [HAVE_LIBXML2]: Add prototype for xml_cleanup_parser.
      
       nt/configure.bat: Support building with libxml2.
       nt/INSTALL:
       nt/README.W32: Add information about libxml2.
      
       lisp/term/w32-win.el (dynamic-library-alist): Add libxml2 DLLs.
      
       lib-src/makefile.w32-in (obj): Add xml.o.
      9078ead6
    • Eli Zaretskii's avatar
      Build test-distrib on MS-Windows and run it during the build. · e4ecc6a2
      Eli Zaretskii authored
       lib-src/makefile.w32-in (ALL): Add $(BLD)/test-distrib.exe.
      e4ecc6a2