1. 13 Jun, 2012 1 commit
    • 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
  2. 12 Jun, 2012 6 commits
  3. 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
  4. 10 Jun, 2012 1 commit
  5. 09 Jun, 2012 4 commits
  6. 08 Jun, 2012 7 commits
    • Paul Eggert's avatar
      * xdisp.c (vmessage): Treat frame message as multibyte. · d86feb17
      Paul Eggert authored
      Without this change, (let ((§ 1)) (make-variable-buffer-local '§))
      would generate the diagnostic "Making \302\247 buffer-local while
      let-bound!".
      d86feb17
    • Eli Zaretskii's avatar
      Revert inadvertent commit in dispnew.c as part of 2012-06-08T08:44:45Z!eliz@gnu.org. · d5c20fe8
      Eli Zaretskii authored
       src/dispnew.c (showing_window_margins_p): Undo last change, which
       was done due to an inadvertent commit.
       (adjust_frame_glyphs_for_frame_redisplay): Do call
       showing_window_margins_p.
      d5c20fe8
    • Stefan Monnier's avatar
      Clean up scoping rule of predefined single-word vars. · 513749ee
      Stefan Monnier authored
      * lisp/startup.el (argv, argi): Make lexically scoped.
      * lisp/emacs-lisp/float-sup.el (pi): Use internal-make-var-non-special.
      * lisp/emacs-lisp/cl-macs.el: Use lexical-binding.
      Rename cl-bind-* to cl--bind-*.
      * lisp/files.el: Don't require `cl' since it doesn't use it.
      * lisp/emacs-lisp/pcase.el, lisp/emacs-lisp/macroexp.el: Add coding cookie.
      * src/eval.c (Fmake_var_non_special): New primitive.
      (syms_of_eval): Defsubr it.
      * src/lread.c (syms_of_lread): Mark `values' as lexically scoped.
      513749ee
    • Juanma Barranquero's avatar
    • Eli Zaretskii's avatar
      Fix BLOCK_INPUT/UNBLOCK_INPUT mismatch in 2012-06-08T08:44:30Z!dmantipov@yandex.ru. · 8bbbc977
      Eli Zaretskii authored
       src/alloc.c (allocate_vectorlike): Fix last change.
      8bbbc977
    • Dmitry Antipov's avatar
      Block-based vector allocation of small vectors. · f3372c87
      Dmitry Antipov authored
      * src/lisp.h (struct vectorlike_header): New field `nbytes',
      adjust comment accordingly.
      * src/alloc.c (enum mem_type): New type `MEM_TYPE_VECTOR_BLOCK'
      to denote vector blocks. Adjust users (live_vector_p,
      mark_maybe_pointer, valid_lisp_object_p) accordingly.
      (COMMON_MULTIPLE): Move outside #if USE_LSB_TAG.
      (VECTOR_BLOCK_SIZE, vroundup, VECTOR_BLOCK_BYTES),
      (VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX),
      (VECTOR_FREE_LIST_FLAG, ADVANCE, VINDEX, SETUP_ON_FREE_LIST),
      (VECTOR_SIZE, VECTOR_IN_BLOCK): New macros.
      (roundup_size): New constant.
      (struct vector_block): New data type.
      (vector_blocks, vector_free_lists, zero_vector): New variables.
      (all_vectors): Renamed to `large_vectors'.
      (allocate_vector_from_block, init_vectors, allocate_vector_from_block)
      (sweep_vectors): New functions.
      (allocate_vectorlike): Return `zero_vector' as the only vector of
      0 items. Allocate new vector from block if vector size is less than
      or equal to VBLOCK_BYTES_MAX.
      (Fgarbage_collect): Move all vector sweeping code to sweep_vectors.
      (init_alloc_once): Add call to init_vectors.
      * doc/lispref/internals.text (Garbage Collection): Document new
      vector management code and vectorlike_header structure.
      f3372c87
    • Stefan Monnier's avatar
  7. 07 Jun, 2012 1 commit
  8. 06 Jun, 2012 1 commit
  9. 04 Jun, 2012 1 commit
  10. 03 Jun, 2012 4 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
      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
  11. 02 Jun, 2012 5 commits
  12. 01 Jun, 2012 3 commits
  13. 31 May, 2012 3 commits
    • Glenn Morris's avatar
      Add option imagemagick-types-enable · 32d72c2f
      Glenn Morris authored
      * lisp/image.el: For clarity, call imagemagick-register-types at
      top-level, rather than relying on a custom :initialize.
      (imagemagick-types-enable): New option. 
      (imagemagick-register-types): Respect imagemagick-types-inhibit.
      If disabling support, remove elements altogether rather
      than using an impossible regexp.
      (imagemagick-types-inhibit): Give it the default init function.
      
      * src/image.c (Fimagemagick_types): Doc fix.
      
      * etc/NEWS: Mention this.
      
      Fixes: debbugs:11557
      32d72c2f
    • Paul Eggert's avatar
      Pacify gcc -Wdouble-precision when using Xaw. · ca34e0be
      Paul Eggert authored
      * xterm.c (xaw_jump_callback, x_set_toolkit_scroll_bar_thumb)
      [HAVE_X_WINDOWS && USE_TOOLKIT_SCROLL_BARS && !USE_MOTIF && !USE_GTK]:
      Use 'float' consistently, rather than 'float' in most places
      and 'double' in a couple of places.
      ca34e0be
    • Paul Eggert's avatar
      Remove obsolete '#define static' cruft. · ba93a187
      Paul Eggert authored
      * etc/PROBLEMS: Remove obsolete '#define static' cruft.
      * lwlib/xlwmenu.c [emacs]: Include "bitmaps/gray.xbm".
      (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits) [!emacs]:
      Remove; all uses replaced with definiens.
      * src/s/hpux10-20.h (_FILE_OFFSET_BITS): Don't #undef.
      This #undef was "temporary" in 2000; it is no longer needed
      now that '#define static' has gone away.
      * src/xfns.c, src/xterm.h (gray_bitmap_width, gray_bitmap_height)
      (gray_bitmap_bits): Remove; no longer needed.
      All uses replaced with definiens.
      * src/xterm.c: Include "bitmaps/gray.xbm".
      ba93a187