1. 01 Jun, 2012 8 commits
  2. 31 May, 2012 10 commits
    • Glenn Morris's avatar
      ChangeLog merge fix · b691b884
      Glenn Morris authored
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Split off imagemagick-filter-types from imagemagick-register-types · 60b5f187
      Glenn Morris authored
      * lisp/image.el: (imagemagick-filter-types): New function.  (Bug#7406)
      (imagemagick-register-types): Use imagemagick-filter-types.
      * etc/NEWS: Mention this.
    • 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
    • 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)
      Use 'float' consistently, rather than 'float' in most places
      and 'double' in a couple of places.
    • Chong Yidong's avatar
    • Stefan Monnier's avatar
      Fix long filename handling of byte-compile-fix-header. · dd41169b
      Stefan Monnier authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-fix-header): Handle
      arbitrary file name lengths (Bug#11585).
    • 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".
    • Stefan Monnier's avatar
      Add `declare' for `defun'. Align `defmacro's with it. · 500fcedc
      Stefan Monnier authored
      * lisp/emacs-lisp/easy-mmode.el (define-minor-mode)
      (define-globalized-minor-mode): Don't autoload the var definitions.
      * lisp/emacs-lisp/byte-run.el: Use lexical-binding.
      (defun-declarations-alist, macro-declarations-alist): New vars.
      (defmacro, defun): Use them.
      (make-obsolete, define-obsolete-function-alias)
      (make-obsolete-variable, define-obsolete-variable-alias):
      Use `declare'.
      (macro-declaration-function): Mark obsolete.
      * lisp/emacs-lisp/autoload.el: Use lexical-binding.
      (make-autoload): Add `expansion' arg.  Rely more on macro expansion.
    • Juri Linkov's avatar
      * etc/NEWS: Doc fix. · b03b4c00
      Juri Linkov authored
      Fixes: debbugs:11574
  3. 30 May, 2012 7 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.
    • 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
    • Agustín Martín's avatar
      ispell.el: Define `ispell-with-no-warnings' as a macro. Deal with obsolete `interactive-p' · 6e8a1786
      Agustín Martín authored
      * Current `ispell-with-no-warnings' definition does not avoid warnings.
        Use a macro definition taken from orgmode.
      * Deal with a couple of occurrences of obsolete `interactive-p'.
    • 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
    • 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
    • Paul Eggert's avatar
    • 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.
      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.
  4. 29 May, 2012 15 commits
    • Paul Eggert's avatar
    • Stefan Merten's avatar
      Silence `checkdoc-ispell' errors where possible. Fix authors. Improve · 6d3f7c2f
      Stefan Merten authored
      comments.  Improve loading of `cl'.
      (rst-mode-abbrev-table): Merge definition.
      (rst-mode): Make sure `font-lock-defaults' is buffer local.
      (rst-define-key, rst-deprecated-keys, rst-call-deprecated): Refactor.
    • Ulf Jasper's avatar
      icalendar-tests: Fix Bug#11525 -- Add icalendar-import-format-uid · 6dbaa1c7
      Ulf Jasper authored
      2012-05-29  Ulf Jasper  <ulf.jasper@web.de>
      	* calendar/icalendar.el
      	(icalendar-export-region): Export UID properly.
      2012-05-29 Leo Liu <sdl.web@gmail.com>
      	* calendar/icalendar.el (icalendar-import-format): Add
      	`icalendar-import-format-uid' (Bug#11525).
      	(icalendar-import-format-uid): New.
      	(icalendar--parse-summary-and-rest, icalendar--format-ical-event):
      	Export UID.
    • 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".
    • Troels Nielsen's avatar
      Do not avoid creating empty evaporating overlays (Bug#9642). · 471fe23d
      Troels Nielsen authored
      * buffer.c (Fmove_overlay): Reinstate the earlier fix for
      Bug#9642, but explicitly check that the buffer the overlay would
      be moved to is live and rearrange lines to make sure that errors
      will not put the overlay in an inconsistent state.
      (Fdelete_overlay): Cosmetics.
    • Eli Zaretskii's avatar
      Don't call r_alloc_inhibit_buffer_relocation from search.c. · a02ae4e5
      Eli Zaretskii authored
       src/search.c (search_buffer): Remove calls to
       r_alloc_inhibit_buffer_relocation, as it is now called by
       maybe_unify_char, which was the cause of relocation of buffer text
       in bug#11519.
    • Stefan Monnier's avatar
      Fix minor corner case bugs in byte compilation and pcase. · 6876a58d
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Don't re-preprocess
      functions from byte-compile-function-environment.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-constp): Treat #'v as a constant.
      (byte-compile-close-variables): Bind byte-compile--outbuffer here...
      (byte-compile-from-buffer): ...rather than here.
      * lisp/emacs-lisp/pcase.el (pcase--expand): Accept different sets of vars in
      different alternative patterns.
      (pcase-codegen): Be more careful to preserve identity.
      (pcase--u1): Don't forget to mark vars as used.
    • Troels Nielsen's avatar
      Fix active minibuffer case for window-deletable-p. · 46b7967e
      Troels Nielsen authored
      * window.el (window-deletable-p): Avoid deleting the root window
      of a frame with an active minibuffer.
    • Martin Rudalics's avatar
      * lisp/simple.el (choose-completion): Use quit-window. · 69d565e2
      Martin Rudalics authored
      Fixes: debbugs:11567
    • Chong Yidong's avatar
    • Aaron S. Hawley's avatar
      * vc.el (vc-revert, vc-rollback): Dont kill vc-diff buffer on revert. · 2b311310
      Aaron S. Hawley authored
      Fixes: debbugs:11488
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-mode-map): Bind `M-s _' to `isearch-toggle-symbol'. · b9cb2387
      Juri Linkov authored
      Bind `M-s c' to `isearch-toggle-case-fold'.
      (search-map): Bind `M-s _' to `isearch-forward-symbol'.
      (isearch-forward): Add `M-s _' to the docstring.
      (isearch-forward-symbol, isearch-toggle-case-fold)
      (isearch-symbol-regexp): New functions.
      Fixes: debbugs:11381
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-word): Add docstring. · d5e61c1c
      Juri Linkov authored
      (isearch-occur, isearch-search-and-update): If `isearch-word' is
      a function, call it to get the regexp.
      (isearch-message-prefix): If `isearch-word' holds a symbol, use its
      property `isearch-message-prefix' instead of the string "word ".
      (isearch-search-fun-default): For the case of `isearch-word',
      return a lambda that calls re-search-forward/re-search-backward
      with a regexp returned by `word-search-regexp' or by the function
      in `isearch-word'.
      Fixes: debbugs:11381
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-search-fun-default): New function. · 8cbd80f7
      Juri Linkov authored
      (isearch-search-fun): Move default part to the new function
      (isearch-search-fun-function): Set the default value to
      * lisp/comint.el (comint-history-isearch-end):
      Use `isearch-search-fun-default'.
      (comint-history-isearch-search): Use `isearch-search-fun-default'
      and remove spacial case for `isearch-word'.
      (comint-history-isearch-wrap): Remove spacial case for
      * lisp/hexl.el (hexl-isearch-search-function):
      Use `isearch-search-fun-default'.
      * lisp/info.el (Info-isearch-search): Use `isearch-search-fun-default'.
      Use `word-search-regexp' for `isearch-word'.
      * lisp/misearch.el (multi-isearch-search-fun):
      Use `isearch-search-fun-default'.
      * lisp/simple.el (minibuffer-history-isearch-search):
      Use `isearch-search-fun-default' and remove spacial case for
      (minibuffer-history-isearch-wrap): Remove spacial case for
      * lisp/textmodes/reftex-global.el (reftex-isearch-wrap-function):
      Remove spacial case for `isearch-word'.
      (reftex-isearch-isearch-search): Use `isearch-search-fun-default'.
      Fixes: debbugs:11381
    • Paul Eggert's avatar
      Spelling fixes. · c846da43
      Paul Eggert authored