1. 09 Jul, 2012 1 commit
  2. 06 Jul, 2012 1 commit
  3. 05 Jul, 2012 1 commit
    • Dmitry Antipov's avatar
      Cleanup xmalloc. · 23f86fce
      Dmitry Antipov authored
      * admin/coccinelle/xzalloc.cocci: Semantic patch to convert
      calls to xmalloc with following memset to xzalloc.
      * src/lisp.h (xzalloc): New prototype.  Omit needless casts.
      * src/alloc.c (xzalloc): New function.  Omit needless casts.
      * src/charset.c: Omit needless casts.  Convert all calls to
      malloc with following memset to xzalloc.
      * src/dispnew.c: Likewise.
      * src/fringe.c: Likewise.
      * src/image.c: Likewise.
      * src/sound.c: Likewise.
      * src/term.c: Likewise.
      * src/w32fns.c: Likewise.
      * src/w32font.c: Likewise.
      * src/w32term.c: Likewise.
      * src/xfaces.c: Likewise.
      * src/xfns.c: Likewise.
      * src/xterm.c: Likewise.
      * src/atimer.c: Omit needless casts.
      * src/buffer.c: Likewise.
      * src/callproc.c: Likewise.
      * src/ccl.c: Likewise.
      * src/coding.c: Likewise.
      * src/composite.c: Likewise.
      * src/doc.c: Likewise.
      * src/doprnt.c: Likewise.
      * src/editfns.c: Likewise.
      * src/emacs.c: Likewise.
      * src/eval.c: Likewise.
      * src/filelock.c: Likewise.
      * src/fns.c: Likewise.
      * src/gtkutil.c: Likewise.
      * src/keyboard.c: Likewise.
      * src/lisp.h: Likewise.
      * src/lread.c: Likewise.
      * src/minibuf.c: Likewise.
      * src/msdos.c: Likewise.
      * src/print.c: Likewise.
      * src/process.c: Likewise.
      * src/region-cache.c: Likewise.
      * src/search.c: Likewise.
      * src/sysdep.c: Likewise.
      * src/termcap.c: Likewise.
      * src/terminal.c: Likewise.
      * src/tparam.c: Likewise.
      * src/w16select.c: Likewise.
      * src/w32.c: Likewise.
      * src/w32reg.c: Likewise.
      * src/w32select.c: Likewise.
      * src/w32uniscribe.c: Likewise.
      * src/widget.c: Likewise.
      * src/xdisp.c: Likewise.
      * src/xmenu.c: Likewise.
      * src/xrdb.c: Likewise.
      * src/xselect.c: Likewise.
      23f86fce
  4. 04 Jul, 2012 1 commit
    • Juanma Barranquero's avatar
      Remove obsolete configuration options (Windows port). · 95f61aa2
      Juanma Barranquero authored
      * admin/CPP-DEFINES (LISP_FLOAT_TYPE): Remove, obsolete.
      
      * nt/config.nt (LISP_FLOAT_TYPE, HAVE_XFREE386, USE_TEXT_PROPERTIES)
      (GSSAPI, HAVE_LIBINTL, HAVE_LIBGSSAPI_KRB5, HAVE_LIBGSSAPI)
      (HAVE_GSSAPI_H, HAVE_LIBXBD, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET)
      (HAVE_MEMCMP): Remove, obsolete.
      
      * src/s/ms-w32.h (LISP_FLOAT_TYPE, HAVE_MEMCMP, HAVE_MEMCPY)
      (HAVE_MEMMOVE, HAVE_MEMSET): Don't set, obsolete.
      95f61aa2
  5. 26 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      * src/alloc.c: Remove build_string. · 1130ecfc
      Dmitry Antipov authored
      * src/lisp.h: Define build_string as static inline.  This provides
      a better opportunity to optimize away calls to strlen when the
      function is called with compile-time constant argument.
      * src/image.c (imagemagick_error): Convert to build_string.
      * src/w32proc.c (sys_spawnve): Likewise.
      * src/xterm.c (x_term_init): Likewise.
      * admin/coccinelle/build_string.cocci: Semantic patch
      to convert from make_string to build_string.
      1130ecfc
  6. 24 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      First Coccinelle semantic patch. · 3c9359df
      Dmitry Antipov authored
      * coccinelle: New subdirectory
      * coccinelle/README: Documentation stub.
      * coccinelle/vector_contents.cocci: Semantic patch to replace direct
      access to `contents' member of Lisp_Vector objects with AREF and ASET
      where appropriate.
      3c9359df
  7. 22 Jun, 2012 1 commit
  8. 13 Jun, 2012 3 commits
    • Glenn Morris's avatar
      Remove some unused definitions from src/s · 16192a57
      Glenn Morris authored
      * src/s/bsd-common.h (BSD4_3):
      * src/s/usg5-4-common.h (USG5_4): No longer define; unused.
      
      * admin/CPP-DEFINES, src/s/template.h: Related edits.
      16192a57
    • Andreas Schwab's avatar
      Use a simple struct to implement compile time checks for the Lisp_Object type · 646b5f55
      Andreas Schwab authored
      * configure.in: Rename --enable-use-lisp-union-type to
      --enable-check-lisp-object-type and define CHECK_LISP_OBJECT_TYPE
      instead of USE_LISP_UNION_TYPE.
      
      * admin/make-emacs: Rename --union-type to --check-lisp-type.  Define
      CHECK_LISP_OBJECT_TYPE insted of USE_LISP_UNION_TYPE.
      * admin/CPP-DEFINES (DEBUG_LISP_OBJECT_TYPE): Renamed from
      USE_LISP_UNION_TYPE.
      
      * src/lisp.h (Lisp_Object) [CHECK_LISP_OBJECT_TYPE]: Define as struct
      instead of union.
      (XLI, XIL): Define.
      (XHASH, XTYPE, XINT, XUINT, make_number, XSET, XPNTR, XUNTAG): Use
      them.
      * src/emacs.c (gdb_use_struct): Renamed from gdb_use_union.
      * src/.gdbinit: Check gdb_use_struct instead of gdb_use_union.
      * src/alloc.c (widen_to_Lisp_Object): Removed.
      (mark_memory): Use XIL instead of widen_to_Lisp_Object.
      * src/frame.c (delete_frame): Remove outdated comment.
      * src/w32fns.c (Fw32_register_hot_key): Use XLI instead of checking
      USE_LISP_UNION_TYPE.
      (Fw32_unregister_hot_key): Likewise.
      (Fw32_toggle_lock_key): Likewise.
      * src/w32menu.c (add_menu_item): Likewise.
      (w32_menu_display_help): Use XIL instead of checking
      USE_LISP_UNION_TYPE.
      * src/w32heap.c (allocate_heap): Don't check USE_LISP_UNION_TYPE.
      (init_heap): Likewise.
      * src/w32term.c (w32_read_socket): Update comment.
      646b5f55
    • Glenn Morris's avatar
      Remove HAVE_SYSV_SIGPAUSE unused remnants · c62ff706
      Glenn Morris authored
      * src/s/usg5-4-common.h, src/s/unixware.h:
      Remove define/undef of HAVE_SYSV_SIGPAUSE (not used since 2010-05-04).
      
      * admin/CPP-DEFINES: Remove HAVE_SYSV_SIGPAUSE.
      c62ff706
  9. 10 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 2 commits
  12. 28 May, 2012 1 commit
    • Paul Eggert's avatar
      Make 'configure' a bit smaller and faster. · 0e7a053e
      Paul Eggert authored
      * configure.in (INSTALL_INFO): Set it with one call to
      AC_PATH_PROG, not three.
      (PKG_CONFIG): Hoist this out of PKG_CHECK_MODULES, since it's
      so likely that it'll be needed.
      (AC_CHECK_HEADERS_ONCE): Prefer to AC_CHECK_HEADERS where either works.
      (AC_PROG_MAKE_SET): Remove; Automake does this.
      (sysinfo): Do not check for this function, as it's never used.
      (tzset): Check for this function just once.
      * admin/CPP-DEFINES: Remove HAVE_SYSINFO.
      * m4/manywarnings.m4: Sync from gnulib, incorporating the following:
      2012-05-27 manywarnings: remove duplicate -Wmultichar entry
      0e7a053e
  13. 27 May, 2012 1 commit
    • Paul Eggert's avatar
      Assume gnulib does largefile. · 50c4645e
      Paul Eggert authored
      Gnulib does the largefile configuration anyway, so when configure.in
      invokes AC_SYS_LARGEFILE, that bloats 'configure' unnecessarily.
      * admin/merge-gnulib (GNULIB_MODULES): Add largefile.
      * configure.in (AC_SYS_LARGEFILE): Remove.
      * lib/gnulib.mk: Autoupdate.
      50c4645e
  14. 22 May, 2012 1 commit
    • 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
  15. 21 May, 2012 3 commits
    • Paul Eggert's avatar
      Use full name for m4/gnulib-comp.m4. (Bug#11529) · fb77d37e
      Paul Eggert authored
      Previously the file was named m4/gl-comp.m4 due to DOS 8+3 restrictions,
      even though the file's name in gnulib is m4/gnulib-comp.m4.
      This had a problem when merging from gnulib, as the code temporarily
      renamed it to the full name, causing problems when interrupted.
      Now the file has its full name, with the idea that we will find
      a solution for MS-DOS that does not affect the rest of Emacs.
      * m4/gnulib-comp.m4: Rename from m4/gl-comp.m4.
      * admin/merge-gnulib: Leave m4/gnulib-comp.m4's name alone.
      fb77d37e
    • 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
    • Paul Eggert's avatar
      Make merging from gnulib a script, not a makefile action. · 9b4ee616
      Paul Eggert authored
      Putting it in a makefile has some problems with reflection, as
      merging from gnulib updates 'configure', which can update the makefile.
      Putting it in a standalone script breaks this loop.
      * Makefile.in (gnulib_srcdir, $(gnulib_srcdir), DOS_gnulib_comp.m4)
      (GNULIB_MODULES, GNULIB_TOOL_FLAGS, sync-from-gnulib):
      Remove, moving the actions to the script admin/merge-gnulib.
      * admin/merge-gnulib: New script, with actions moved here from
      ../Makefile.in.
      9b4ee616
  16. 19 May, 2012 2 commits
    • Paul Eggert's avatar
      Remove unused HAVE_* symbols for functions. · 9232a6d9
      Paul Eggert authored
      * configure.in (AC_CHECK_FUNCS): Remove XSetWMProtocols,
      getdomainname, mblen (twice), mbrlen (twice), mbsinit, ualarm,
      getsockopt, setsockopt, mremap, mempcpy.
      * admin/CPP-DEFINES (HAVE_GETDOMAINNAME): Remove.
      * msdos/sed2v2.inp (HAVE_MBLEN): Remove.
      * msdos/sed2x.inp (HAVE_XSETWMPROTOCOLS): Remove.
      * nt/config.nt (HAVE_GETDOMAINNAME, HAVE_XSETWMPROTOCOLS)
      (HAVE_GETSOCKOPT, HAVE_SETSOCKOPT): Remove; not needed.
      * src/s/ms-w32.h (HAVE_GETDOMAINNAME): Remove; not needed.
      9232a6d9
    • Paul Eggert's avatar
      Remove no-longer-used macro HAVE_FTIME. · 003fdae2
      Paul Eggert authored
      * configure.in (machine): Do not set to 'vax', since src/m/vax.h
      is being removed.
      (AC_CHECK_FUNCS): Remove ftime.
      * admin/CPP-DEFINES (HAVE_FTIME): Remove.
      * nt/config.nt (HAVE_FTIME): Remove undef; not needed.
      * src/m/vax.h: Remove; no longer needed since HAVE_FTIME is being removed.
      * src/s/ms-w32.h (HAVE_FTIME): Remove; not needed.
      003fdae2
  17. 08 May, 2012 1 commit
  18. 02 May, 2012 1 commit
  19. 30 Apr, 2012 1 commit
  20. 21 Apr, 2012 1 commit
    • Glenn Morris's avatar
      More small edits for doc/lispref/windows.texi · 09ebefe1
      Glenn Morris authored
      * doc/lispref/windows.texi (Textual Scrolling, Coordinates and Windows)
      (Window Configurations, Window Parameters, Window Hooks): Copyedits.
      (Textual Scrolling): Mention recenter-redisplay, recenter-top-bottom,
      and recenter-positions.  Remove recenter example.
      
      * admin/FOR-RELEASE: Related markup.
      09ebefe1
  21. 20 Apr, 2012 2 commits
  22. 18 Apr, 2012 1 commit
    • Glenn Morris's avatar
      More small doc and lispref edits related to processes · 4373fd43
      Glenn Morris authored
      * doc/lispref/processes.texi (Serial Ports, Byte Packing, Bindat Spec)
      (Bindat Functions): Copyedits.
      
      * src/process.c (Fset_process_inherit_coding_system_flag)
      (Fset_process_query_on_exit_flag): Doc fix (mention return value).
      (Fmake_network_process, Fmake_serial_process): Doc fix.
      
      * admin/FOR-RELEASE: Related markup.
      4373fd43
  23. 14 Apr, 2012 3 commits
  24. 10 Apr, 2012 2 commits
  25. 07 Apr, 2012 1 commit
    • Eli Zaretskii's avatar
      Update the Unicode database and derived files for Unicode 6.1. · b142f158
      Eli Zaretskii authored
       admin/unidata/README:
       admin/unidata/copyright.html:
       admin/unidata/BidiMirroring.txt:
       admin/unidata/UnicodeData.txt: Update for the latest version 6.1 of
       the Unicode Standard.
      
       lisp/international/uni-bidi.el:
       lisp/international/uni-category.el:
       lisp/international/uni-combining.el:
       lisp/international/uni-decimal.el:
       lisp/international/uni-decomposition.el:
       lisp/international/uni-digit.el:
       lisp/international/uni-lowercase.el:
       lisp/international/uni-mirrored.el:
       lisp/international/uni-name.el:
       lisp/international/uni-numeric.el:
       lisp/international/uni-titlecase.el:
       lisp/international/uni-uppercase.el: Update for Unicode 6.1.
      b142f158
  26. 04 Apr, 2012 2 commits
  27. 03 Apr, 2012 1 commit
  28. 31 Mar, 2012 1 commit
    • Glenn Morris's avatar
      Edebug doc fixes · 0b021094
      Glenn Morris authored
      * doc/lispref/edebug.texi (Instrumenting Macro Calls):
      Mention defining macros at instrumentation time.
      (Edebug Options): Mention edebug-unwrap-results.
      
      * lisp/emacs-lisp/edebug.el (edebug-unwrap-results): Doc fix.
      Comments.
      
      * admin/FOR-RELEASE: Markup.
      0b021094
  29. 30 Mar, 2012 1 commit
    • Chong Yidong's avatar
      Updates for Display chapter of Lisp manual. · 5319014e
      Chong Yidong authored
      * doc/lispref/display.texi (Image Formats): Add imagemagick type.
      (Image Descriptors): Mention how they are used.
      (ImageMagick Images): Clarify role of imagemagick-register-types.
      (Character Display): Don't mention glyph tables.
      (Display Tables): Use make-glyph-code in example.
      (Glyphs): Avoid "simple glyph code" terminology.  Note that glyph
      tables are semi-obsolete.  De-document create-glyph.
      (Glyphless Chars): Note that display tables override this.
      (Bidirectional Display): Copyedits.  Introduce "bidirectional
      reordering" terminology, and use it.
      
      * doc/emacs/files.texi (File Conveniences): Clarify Imagemagick discussion.
      
      * lisp/image.el (imagemagick-types-inhibit)
      (imagemagick-register-types): Doc fix.
      5319014e