diff options
| author | Andreas Schwab | 2012-12-31 20:15:32 +0100 |
|---|---|---|
| committer | Andreas Schwab | 2012-12-31 20:15:32 +0100 |
| commit | bdcad781aaa4ea4b5e63e6118bddab964acf77e4 (patch) | |
| tree | 7add5519ee77557a050d3ce5773728ce0caf15fc | |
| parent | fee0bd5f3248ba4485e9a08fdb30cad5b20f7f74 (diff) | |
| download | emacs-bdcad781aaa4ea4b5e63e6118bddab964acf77e4.tar.gz emacs-bdcad781aaa4ea4b5e63e6118bddab964acf77e4.zip | |
Fixes: debbugs:13316
* emacs-lisp/byte-run.el (defmacro): Don't lose final nil if
neither DOCSTRING nor DECL was given.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 84e0ec4a095..0bf336cfbe1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-31 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * emacs-lisp/byte-run.el (defmacro): Don't lose final nil if | ||
| 4 | neither DOCSTRING nor DECL was given. (Bug#13316) | ||
| 5 | |||
| 1 | 2012-12-30 Glenn Morris <rgm@gnu.org> | 6 | 2012-12-30 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * net/mairix.el (rmail, rmail-summary-displayed, rmail-summary): | 8 | * net/mairix.el (rmail, rmail-summary-displayed, rmail-summary): |
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index 544b64bc3a6..0cbf2616ba2 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -128,12 +128,12 @@ DECLS is a list of elements of the form (PROP . VALUES). These are | |||
| 128 | interpreted according to `macro-declarations-alist'. | 128 | interpreted according to `macro-declarations-alist'. |
| 129 | The return value is undefined." | 129 | The return value is undefined." |
| 130 | (if (stringp docstring) nil | 130 | (if (stringp docstring) nil |
| 131 | (if decl (setq body (cons decl body))) | 131 | (setq body (cons decl body)) |
| 132 | (setq decl docstring) | 132 | (setq decl docstring) |
| 133 | (setq docstring nil)) | 133 | (setq docstring nil)) |
| 134 | (if (or (null decl) (eq 'declare (car-safe decl))) nil | 134 | (if (or (null decl) (eq 'declare (car-safe decl))) nil |
| 135 | (setq body (cons decl body)) | 135 | (setq body (cons decl body)) |
| 136 | (setq decl nil)) | 136 | (setq decl nil)) |
| 137 | (if (null body) (setq body '(nil))) | 137 | (if (null body) (setq body '(nil))) |
| 138 | (if docstring (setq body (cons docstring body))) | 138 | (if docstring (setq body (cons docstring body))) |
| 139 | ;; Can't use backquote because it's not defined yet! | 139 | ;; Can't use backquote because it's not defined yet! |