1. 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
  2. 10 Jun, 2012 1 commit
  3. 09 Jun, 2012 4 commits
  4. 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
  5. 07 Jun, 2012 1 commit
  6. 06 Jun, 2012 1 commit
  7. 04 Jun, 2012 1 commit
  8. 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
  9. 02 Jun, 2012 5 commits
  10. 01 Jun, 2012 3 commits
  11. 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
  12. 30 May, 2012 6 commits
    • Paul Eggert's avatar
      Clean up __executable_start, monstartup when --enable-profiling. · 9e4bf381
      Paul Eggert authored
      The following changes affect the code only when profiling.
      * dispnew.c (__executable_start): Rename from safe_bcopy.
      Define only on platforms that need it.
      * emacs.c: Include <sys/gmon.h> when profiling.
      (_mcleanup): Remove decl, since <sys/gmon.h> does it now.
      (__executable_start): Remove decl, since lisp.h does it now.
      (safe_bcopy): Remove decl; no longer has that name.
      (main): Coalesce #if into single bit of code, for simplicity.
      Cast pointers to uintptr_t, since standard libraries want integers
      and not pointers.
      * lisp.h (__executable_start): New decl.
      9e4bf381
    • Eli Zaretskii's avatar
      Fix bug #11587 with a crash in an Info buffer under linum-mode. · d5fd2c54
      Eli Zaretskii authored
       src/xdisp.c (handle_stop): Detect whether we have overlay strings
       loaded by testing it->current.overlay_string_index to be
       non-negative, instead of checking whether n_overlay_strings is
       positive.
      d5fd2c54
    • Jim Meyering's avatar
      Improve call-process-region error message. · baac5bc7
      Jim Meyering authored
      * src/callproc.c (Fcall_process_region): Include directory component
      in mkstemp error message.
      
      Fixes: debbugs:11586
      baac5bc7
    • Chong Yidong's avatar
      * keymap.c (describe_map_tree): Revert 2011-07-07 change. · 353c87f6
      Chong Yidong authored
      * doc.c (Fsubstitute_command_keys): Doc fix.
      
      Fixes: debbugs:1169
      353c87f6
    • Paul Eggert's avatar
      72cb32cf
    • 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