diff options
| author | Miles Bader | 2002-06-14 06:15:32 +0000 |
|---|---|---|
| committer | Miles Bader | 2002-06-14 06:15:32 +0000 |
| commit | 54993fa4b236d46144c946eddb8fcd2fb2bdfdac (patch) | |
| tree | 5e5a2b65713c59700132ada891ac0b922dac6205 | |
| parent | 68b089509064b72993915350714b5282b60ec7a7 (diff) | |
| download | emacs-54993fa4b236d46144c946eddb8fcd2fb2bdfdac.tar.gz emacs-54993fa4b236d46144c946eddb8fcd2fb2bdfdac.zip | |
(pop): Move the call to `car' outside the prog1, as the compiler
generate better code for it.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/subr.el | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 25ad58cd136..47b0bbe8d1a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | 2002-06-14 Miles Bader <miles@gnu.org> | 1 | 2002-06-14 Miles Bader <miles@gnu.org> |
| 2 | 2 | ||
| 3 | * subr.el (copy-tree): Use `nconc' and `nreverse' instead of `nreconc'. | 3 | * subr.el (copy-tree): Use `nconc' and `nreverse' instead of `nreconc'. |
| 4 | (pop): Move the call to `car' outside the prog1, as the compiler | ||
| 5 | then generates better code. | ||
| 4 | 6 | ||
| 5 | 2002-06-13 Richard M. Stallman <rms@gnu.org> | 7 | 2002-06-13 Richard M. Stallman <rms@gnu.org> |
| 6 | 8 | ||
diff --git a/lisp/subr.el b/lisp/subr.el index 648ff0de3e3..1870e570623 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -89,8 +89,9 @@ LISTNAME must be a symbol." | |||
| 89 | LISTNAME must be a symbol whose value is a list. | 89 | LISTNAME must be a symbol whose value is a list. |
| 90 | If the value is nil, `pop' returns nil but does not actually | 90 | If the value is nil, `pop' returns nil but does not actually |
| 91 | change the list." | 91 | change the list." |
| 92 | (list 'prog1 (list 'car listname) | 92 | (list 'car |
| 93 | (list 'setq listname (list 'cdr listname)))) | 93 | (list 'prog1 listname |
| 94 | (list 'setq listname (list 'cdr listname))))) | ||
| 94 | 95 | ||
| 95 | (defmacro when (cond &rest body) | 96 | (defmacro when (cond &rest body) |
| 96 | "If COND yields non-nil, do BODY, else return nil." | 97 | "If COND yields non-nil, do BODY, else return nil." |