diff options
| author | Stefan Monnier | 2012-05-30 21:41:17 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-05-30 21:41:17 -0400 |
| commit | 500fcedc32199750ee61ce6caba3914fe204e629 (patch) | |
| tree | 48e4954b45900c121bda51f3de0209e5cd3736e7 /etc | |
| parent | b03b4c00631aa0d43de33c0498db36a2403cd519 (diff) | |
| download | emacs-500fcedc32199750ee61ce6caba3914fe204e629.tar.gz emacs-500fcedc32199750ee61ce6caba3914fe204e629.zip | |
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. | |||
| 299 | 299 | ||
| 300 | * Lisp changes in Emacs 24.2 | 300 | * Lisp changes in Emacs 24.2 |
| 301 | 301 | ||
| 302 | ** `defun' also accepts a (declare DECLS) form, like `defmacro'. | ||
| 303 | The interpretation of the DECLS is determined by `defun-declarations-alist'. | ||
| 304 | |||
| 305 | ** `macro-declaration-function' is obsolete, use `macro-declarations-alist'. | ||
| 306 | |||
| 302 | ** New function `set-temporary-overlay-map'. | 307 | ** New function `set-temporary-overlay-map'. |
| 303 | 308 | ||
| 304 | ** New macros `setq-local' and `defvar-local'. | 309 | ** New macros `setq-local' and `defvar-local'. |