diff options
author | Stefan Monnier <[email protected]> | 2012-05-30 21:41:17 -0400 |
---|---|---|
committer | Stefan Monnier <[email protected]> | 2012-05-30 21:41:17 -0400 |
commit | 500fcedc32199750ee61ce6caba3914fe204e629 (patch) | |
tree | 48e4954b45900c121bda51f3de0209e5cd3736e7 /etc | |
parent | b03b4c00631aa0d43de33c0498db36a2403cd519 (diff) |
Add `declare' for `defun'. Align `defmacro's with it.
* 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.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -299,6 +299,11 @@ still be supported for Emacs 24.x. * Lisp changes in Emacs 24.2 +** `defun' also accepts a (declare DECLS) form, like `defmacro'. +The interpretation of the DECLS is determined by `defun-declarations-alist'. + +** `macro-declaration-function' is obsolete, use `macro-declarations-alist'. + ** New function `set-temporary-overlay-map'. ** New macros `setq-local' and `defvar-local'. |