1. 31 May, 2012 2 commits
    • 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.
      500fcedc
    • Juri Linkov's avatar
      * etc/NEWS: Doc fix. · b03b4c00
      Juri Linkov authored
      Fixes: debbugs:11574
      b03b4c00
  2. 30 May, 2012 5 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
    • 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'.
      6e8a1786
    • 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
    • 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
  3. 29 May, 2012 15 commits
  4. 28 May, 2012 11 commits
  5. 27 May, 2012 7 commits