1. 31 May, 2012 6 commits
    • 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
  2. 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.
  3. 29 May, 2012 17 commits
  4. 28 May, 2012 10 commits
    • Glenn Morris's avatar
      * emacs/ack.texi, emacs/building.texi, emacs/calendar.texi · c1dabff0
      Glenn Morris authored
      * emacs/custom.texi, emacs/maintaining.texi, emacs/text.texi:
      * misc/calc.texi, misc/dired-x.texi:
      Use @LaTeX rather than La@TeX.
      Fixes: debbugs:10910
    • Glenn Morris's avatar
      * doc/misc/sc.texi: Nuke hand-written node pointers. · 16af873e
      Glenn Morris authored
      Fix top-level menu to match actual node order.
    • Eli Zaretskii's avatar
      Fix bug #11513 with raise-frame on MS-Windows. · 85d0efd1
      Eli Zaretskii authored
       src/w32term.c (my_bring_window_to_top): New function.
       (x_raise_frame): Use handle returned by DeferWindowPos, which
       could be different from the original one.  Call
       my_bring_window_to_top instead of my_set_foreground_window.
       src/w32fns.c (w32_wnd_proc): Accept and process WM_EMACS_BRINGTOTOP
       by calling BringWindowToTop.
       src/w32term.h (WM_EMACS_BRINGTOTOP): New message.
       (WM_EMACS_END): Increase by one.
    • Eli Zaretskii's avatar
      Remove HAVE_SYSINFO from nt/config.nt, followup to 2012-05-28T00:46:33Z!eggert@cs.ucla.edu. · c00ea352
      Eli Zaretskii authored
       nt/config.nt (HAVE_SYSINFO): Remove; unused.
    • Eli Zaretskii's avatar
      Avoid buffer text relocations in calls to STRING_CHAR_* macros. · 291d430f
      Eli Zaretskii authored
       src/charset.c (maybe_unify_char): Inhibit relocation of buffer text
       for the duration of call to load_charset, to avoid problems with
       callers of maybe_unify_char that access buffer text through C
       src/ralloc.c (r_alloc_inhibit_buffer_relocation): Increment and
       decrement the inhibition flag, instead of just setting or
       resetting it.
      Fixes: debbugs:11519
    • Eli Zaretskii's avatar
      Fix subtle problem with redirection in nt/configure.bat. · e383e32d
      Eli Zaretskii authored
       nt/configure.bat (genmakefiles): Move the redirection away from the
       end of the command, to avoid excess whitespace at the end of Make
       variables created at configure time, and also avoid things like
       "FOO1>>config.settings", where "1" gets interpreted as the file
       descriptor and eaten up.  This fixes breakage introduced by the
       last change, without reintroducing the bug fixed by that change.
    • Agustín Martín's avatar
      textmodex/{ispell,flyspell}.el: Decrease XEmacs incompatibilities. · 85c8c5b6
      Agustín Martín authored
      * flyspell.el:          
        (flyspell-check-pre-word-p): Use `string-match'.
        (flyspell-delete-region-overlays): Use alternative definition for XEmacs.
        (flyspell-delete-all-overlays): Use `flyspell-delete-region-overlays'.
        (flyspell-word): Use `process-kill-without-query' if XEmacs.
        (flyspell-mode-on): Use `interactive-p' if XEmacs.
        (flyspell-incorrect-face, flyspell-duplicate-face):
        Do not use `define-obsolete-face-alias' under XEmacs, but old method.   
      * ispell.el:
        (ispell-with-no-warnings): XEmacs alternative `with-no-warnings'
        definition or Emacs alias.
        (ispell-command-loop, ispell-message): Use `ispell-with-no-warnings'.
        (ispell-word): Do not use `region-p' if XEmacs.
    • Agustín Martín's avatar
      textmodes/ispell.el: Fix variable name. Show spellchecker on process start. · 8cab9efc
      Agustín Martín authored
      * (ispell-find-aspell-dictionaries): Check for 
        `ispell-dictionary-base-alist' instead of full `ispell-dictionary-alist'.
      * (ispell-init-process): Show spellchecker when starting new Ispell process.
    • Glenn Morris's avatar
      Auto-commit of generated files. · e700232f
      Glenn Morris authored
    • Martin Rudalics's avatar
      Ugly fix for bug#11556. · 5221ccb9
      Martin Rudalics authored
      * desktop.el (desktop-read): Clear previous and next buffers for all
      windows and bury *Messages* buffer (bug#11556).