1. 11 Jul, 2012 2 commits
  2. 10 Jul, 2012 2 commits
    • Paul Eggert's avatar
      EMACS_TIME simplification (Bug#11875). · e9a9ae03
      Paul Eggert authored
      This replaces macros (which typically do not work in GDB)
      with functions, typedefs and enums, making the code easier to debug.
      The functional style also makes code easier to read and maintain.
      * lib-src/profile.c (TV2): Remove no-longer-needed static var.
      * src/systime.h: Include <sys/time.h> on all hosts, not just if
      WINDOWSNT, since 'struct timeval' is needed in general.
      (EMACS_TIME): Now a typedef, not a macro.
      (EMACS_TIME_RESOLUTION, LOG10_EMACS_TIME_RESOLUTION): Now constants,
      not macros.
      (EMACS_SECS, EMACS_NSECS, EMACS_TIME_SIGN, EMACS_TIME_VALID_P)
      (EMACS_TIME_FROM_DOUBLE, EMACS_TIME_TO_DOUBLE, EMACS_TIME_EQ)
      (EMACS_TIME_NE, EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT)
      (EMACS_TIME_LE): Now functions, not macros.
      (EMACS_SET_SECS, EMACS_SET_NSECS, EMACS_SET_SECS_NSECS)
      (EMACS_SET_USECS, EMACS_SET_SECS_USECS): Remove these macros,
      which are not functions.  All uses rewritten to use:
      (make_emacs_time): New function.
      (EMACS_SECS_ADDR, EMACS_SET_INVALID_TIME, EMACS_GET_TIME)
      (EMACS_ADD_TIME, EMACS_SUB_TIME): Remove these macros, which are
      not functions.  All uses rewritten to use the following, respectively:
      (emacs_secs_addr, invalid_emacs_time, get_emacs_time)
      (add_emacs_time, sub_emacs_time): New functions.
      * src/atimer.c: Don't include <sys/time.h>,	as "systime.h" does this.
      * src/fileio.c (Fcopy_file):
      * src/xterm.c (XTflash): Get the current time closer to when it's used.
      * src/makefile.w32-in ($(BLD)/atimer.$(O)): Update dependencies.
      e9a9ae03
    • Paul Eggert's avatar
      e99a530f
  3. 09 Jul, 2012 4 commits
  4. 07 Jul, 2012 1 commit
    • Juanma Barranquero's avatar
      Update Windows port to gnulib changes in 2012-07-06T21:07:46Z!eggert@cs.ucla.edu. · 07adc2c6
      Juanma Barranquero authored
      * lib-src/makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)):
      Update dependencies.
      
      * lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/c-ctype.$(O),
      $(BLD)/c-strcasecmp.$(O) and $(BLD)/c-strncasecmp.$(O).
      ($(BLD)/c-ctype.$(O), $(BLD)/c-strcasecmp.$(O))
      ($(BLD)/c-strncasecmp.$(O)): New dependencies.
      
      * src/makefile.w32-in (DISPEXTERN_H, $(BLD)/regex.$(O)):
      Update dependencies.
      
      * src/s/ms-w32.h [_MSC_VER]: Remove strcasecmp, strncasecmp.
      07adc2c6
  5. 06 Jul, 2012 2 commits
  6. 03 Jul, 2012 2 commits
    • Paul Eggert's avatar
      9c46aab9
    • Tom Tromey's avatar
      Auto-generate EXFUN using make-docfile · 404dbd37
      Tom Tromey authored
      src
      	* window.c (Fset_window_margins, Fset_window_fringes)
      	(Fset_window_scroll_bars, Fset_window_vscroll): No longer static.
      	* textprop.c (Fprevious_property_change): No longer static.
      	* syntax.c (Fsyntax_table_p): No longer static.
      	* process.c (Fget_process, Fprocess_datagram_address): No longer
      	static.
      	* keymap.c (Flookup_key, Fcopy_keymap): No longer static.
      	* keyboard.c (Fcommand_execute): No longer static.
      	Remove EXFUN.
      	* insdel.c (Fcombine_after_change_execute): No longer static.
      	* image.c (Finit_image_library): No longer static.
      	* fileio.c (Fmake_symbolic_link): No longer static.
      	* eval.c (Ffetch_bytecode): No longer static.
      	* editfns.c (Fuser_full_name): No longer static.
      	* doc.c: (Fdocumentation_property, Fsnarf_documentation): No
      	longer static.
      	* buffer.c (Fset_buffer_major_mode, Fdelete_overlay): No longer
      	static.
      	* dired.c (Ffile_attributes): No longer static.
      	* composite.c (Fcomposition_get_gstring): No longer static.
      	* callproc.c (Fgetenv_internal): No longer static.
      
      	* ccl.h: Remove EXFUNs.
      	* buffer.h: Remove EXFUNs.
      	* dispextern.h: Remove EXFUNs.
      	* intervals.h: Remove EXFUNs.
      	* fontset.h: Remove EXFUN.
      	* font.h: Remove EXFUNs.
      	* dosfns.c (system_process_attributes): Remove EXFUN.
      	* keymap.h: Remove EXFUNs.
      	* lisp.h: Remove EXFUNs.
      	* w32term.h: Remove EXFUNs.
      	* window.h: Remove EXFUNs.
      	* xsettings.h: Remove EXFUN.
      	* xterm.h: Remove EXFUN.
      
      lib-src
      	* 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.
      404dbd37
  7. 30 Jun, 2012 1 commit
  8. 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
  9. 26 Jun, 2012 1 commit
  10. 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
  11. 24 Jun, 2012 2 commits
  12. 23 Jun, 2012 1 commit
  13. 22 Jun, 2012 1 commit
  14. 08 Jun, 2012 1 commit
  15. 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
  16. 05 Jun, 2012 1 commit
  17. 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
  18. 01 Jun, 2012 1 commit
  19. 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
  20. 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
  21. 26 May, 2012 1 commit
  22. 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
  23. 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
  24. 18 May, 2012 1 commit
  25. 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
  26. 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
  27. 10 May, 2012 1 commit
  28. 02 May, 2012 2 commits