1. 16 Jun, 2012 1 commit
  2. 14 Jun, 2012 2 commits
    • Paul Eggert's avatar
      e93864f9
    • Paul Eggert's avatar
      Simplify lisp.h in minor ways that should not affect code. · 2b570124
      Paul Eggert authored
      * lisp.h (USE_2_TAGS_FOR_INTS): Remove, as it was always defined.
      (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P)
      (LISP_INT1_TAG, enum Lisp_Type, XINT, XUINT, make_number):
      Simplify under the assumption that USE_2_TAGS_FOR_INTS is defined.
      (INTTYPEBITS): New macro, for clarity.
      (INTMASK, MOST_POSITIVE_FIXNUM): Use it.
      (LISP_INT1_TAG, LISP_STRING_TAG, LISP_INT_TAG_P): Simplify
      now that USE_LSB_TAG is always defined.
      (TYPEMASK, XINT) [USE_LSB_TAG]: Remove unnecessary cast.
      (make_number) [!USE_LSB_TAG]: Use INTMASK; that's simpler.
      2b570124
  3. 13 Jun, 2012 6 commits
    • Juanma Barranquero's avatar
    • 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
    • Glenn Morris's avatar
      * src/s/gnu.h (POSIX_SIGNALS): Remove (again). · 1d3823c9
      Glenn Morris authored
      This was added in 2012-01 in response to http://debbugs.gnu.org/10552 .
      However, this issue had already been fixed in the trunk two years
      earlier, by removing POSIX_SIGNALS altogether. Ref:
      
      http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00002.html
      1d3823c9
    • Paul Eggert's avatar
      USE_LISP_UNION_TYPE + USE_LSB_TAG cleanup (Bug#11604) · bfe3e0a2
      Paul Eggert authored
      * alloc.c (make_number) [!defined make_number]:
      Remove, as lisp.h always defines this now.
      (mark_maybe_pointer): Simplify since USE_LSB_TAG is always defined now.
      (roundup_size): Verify that it is a power of 2.
      * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
      * ftfont.c (ftfont_driver): Use LISP_INITIALLY_ZERO.
      * lisp.h (USE_LSB_TAG): Allow the builder to compile with
      -DUSE_LSB_TAG=0, to override the automatically-selected default.
      USE_LSB_TAG now is always defined to be either 0 or 1.
      All uses changed.
      (union Lisp_Object): Don't worry about WORDS_BIGENDIAN; the
      code works fine either way, and efficiency is not a concern here,
      as the union type is for debugging, not for production.
      (LISP_MAKE_RVALUE, make_number) [USE_LISP_UNION_TYPE]:
      Use an inline function on all platforms when using the union type,
      since this is simpler and 'static inline' can be used portably
      within Emacs now.
      (LISP_INITIALLY_ZERO): New macro.
      (XFASTINT, XSETFASTINT) [USE_LISP_UNION_TYPE]: Remove.
      (XSET) [USE_LISP_UNION_TYPE]: Don't overparenthesize.
      bfe3e0a2
  4. 12 Jun, 2012 6 commits
  5. 11 Jun, 2012 3 commits
    • Glenn Morris's avatar
      Move SYSTEM_TYPE from src/s to configure · a9be7d2b
      Glenn Morris authored
      * configure.in (SYSTEM_TYPE): New AC_DEFINE.
      
      * msdos/sed2v2.inp (SYSTEM_TYPE): Set it.
      
      * nt/config.nt (SYSTEM_TYPE): Define it.
      
      * src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h:
      * src/s/gnu-kfreebsd.h, src/s/gnu-linux.h, src/s/gnu.h, src/s/hpux10-20.h:
      * src/s/irix6-5.h, src/s/ms-w32.h, src/s/msdos.h, src/s/template.h:
      * src/s/usg5-4-common.h: Remove SYSTEM_TYPE.
      a9be7d2b
    • Stefan Monnier's avatar
      Don't purify in Fmake_byte_code. · 3017f87f
      Stefan Monnier authored
      * src/alloc.c (make_byte_code): New function.
      (Fmake_byte_code): Use it.  Don't purify here.
      * src/lread.c (read1): Use it as well to avoid extra allocation.
      3017f87f
    • Chong Yidong's avatar
      Support transparency for ImageMagick images. · 1b9b4cf4
      Chong Yidong authored
      * src/image.c (imagemagick_load_image): Implement transparency.
      
      * doc/lispref/display.texi (ImageMagick Images): ImageMagick now supports the
      :background property.
      1b9b4cf4
  6. 10 Jun, 2012 1 commit
  7. 09 Jun, 2012 4 commits
  8. 08 Jun, 2012 8 commits
  9. 07 Jun, 2012 1 commit
  10. 06 Jun, 2012 1 commit
  11. 04 Jun, 2012 1 commit
  12. 03 Jun, 2012 5 commits
    • Glenn Morris's avatar
      tool-bar-style doc fixes · 0c3461de
      Glenn Morris authored
      * lisp/cus-start.el (tool-bar-style, tool-bar-max-label-size): Fix :version.
      
      * src/xdisp.c (tool-bar-style): Doc fix.
      0c3461de
    • Ulrich Müller's avatar
      Workaround dumping problem on PaX-enabled Linux kernels · c71232db
      Ulrich Müller authored
      * configure.in (PAXCTL): Check for paxctl.
      
      * src/Makefile.in (PAXCTL): Define.
      (temacs$(EXEEXT)): Disable memory randomization for the temacs
      binary via PaX flags if the paxctl utility is available.
      (emacs$(EXEEXT), bootstrap-emacs$(EXEEXT)):
      Restore PaX flags to their default.
      
      Fixes: debbugs:11398
      c71232db
    • Chong Yidong's avatar
      Make mode line help-echo visible for unibyte buffers. · 383f7350
      Chong Yidong authored
      * src/xdisp.c (decode_mode_spec_coding): Display a space for a unibyte
      buffer.
      
      * lisp/bindings.el (mode-line-mule-info-help-echo)
      (mode-line-read-only-help-echo, mode-line-modified-help-echo):
      New functions.
      (mode-line-mule-info, mode-line-modified): Use them.
      (mode-line-eol-desc, propertized-buffer-identification):
      Consistency fixes for help text.
      
      Fixes: debbugs:11226
      383f7350
    • Chong Yidong's avatar
    • Chong Yidong's avatar
      Implement default help-echo for mode line. · 5f2c76c6
      Chong Yidong authored
      * lisp/bindings.el: Remove explicit help-echo from format-mode-line.
      (mode-line-front-space, mode-line-end-spaces)
      (mode-line-misc-info): New variables.
      (mode-line-modes, mode-line-position): Move the default value to
      the variable definition.
      (mode-line-default-help-echo): New defcustom.
      
      * src/buffer.c (buffer_local_value_1): New function, split from
      Fbuffer_local_value; can return Qunbound.
      (Fbuffer_local_value): Use it.
      (Vmode_line_format): Docstring tweaks.
      
      * src/xdisp.c (calc_pixel_width_or_height): Use Fbuffer_local_value.
      (note_mode_line_or_margin_highlight): If there is no help echo,
      use mode-line-default-help-echo.  Handle the case where the mouse
      position is past the end of the mode line string.
      
      * doc/lispref/modes.texi (Mode Line Data): Use "mode line construct"
      terminology for consistency.
      5f2c76c6
  13. 02 Jun, 2012 1 commit