diff options
| author | Richard M. Stallman | 1993-07-09 06:33:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-09 06:33:05 +0000 |
| commit | ca38179a7428456b4f41c3c21ff682c71c0b29a0 (patch) | |
| tree | 77f28c7f77a1e2c8adfd431c48c13d27dcf4a4a5 | |
| parent | 07a9765faacac296d46d89f264a6cca21fbe5fb5 (diff) | |
| download | emacs-ca38179a7428456b4f41c3c21ff682c71c0b29a0.tar.gz emacs-ca38179a7428456b4f41c3c21ff682c71c0b29a0.zip | |
(byte-compile-setq-default):
Generate a progn of calls to set-default, then compile it.
(byte-compile-file-form-defmumble): Put back second arg of
byte-compile-keep-pending, accidentally deleted before.
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 6bbe1eba7e7..7364f8803df 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1589,7 +1589,8 @@ With argument, insert value in current buffer after the form." | |||
| 1589 | (list 'cons ''macro code)) | 1589 | (list 'cons ''macro code)) |
| 1590 | ((list 'quote (if macrop | 1590 | ((list 'quote (if macrop |
| 1591 | (cons 'macro new-one) | 1591 | (cons 'macro new-one) |
| 1592 | new-one)))))) | 1592 | new-one))))) |
| 1593 | 'byte-compile-two-args) | ||
| 1593 | ;; Output the form by hand, that's much simpler than having | 1594 | ;; Output the form by hand, that's much simpler than having |
| 1594 | ;; b-c-output-file-form analyze the defalias. | 1595 | ;; b-c-output-file-form analyze the defalias. |
| 1595 | (byte-compile-flush-pending) | 1596 | (byte-compile-flush-pending) |
| @@ -2420,15 +2421,14 @@ If FORM is a lambda or a macro, byte-compile it as a function." | |||
| 2420 | (setq for-effect nil))) | 2421 | (setq for-effect nil))) |
| 2421 | 2422 | ||
| 2422 | (defun byte-compile-setq-default (form) | 2423 | (defun byte-compile-setq-default (form) |
| 2423 | (let ((args (cdr form))) | 2424 | (let ((args (cdr form)) |
| 2424 | (if args | 2425 | setters) |
| 2425 | (while args | 2426 | (while args |
| 2426 | (byte-compile-form | 2427 | (setq setters |
| 2427 | (list 'set-default (list 'quote (car args)) (car (cdr args)))) | 2428 | (cons (list 'set-default (list 'quote (car args)) (car (cdr args))) |
| 2428 | (setq args (cdr (cdr args)))) | 2429 | setters)) |
| 2429 | ;; (setq-default), with no arguments. | 2430 | (setq args (cdr (cdr args)))) |
| 2430 | (byte-compile-form nil for-effect)) | 2431 | (byte-compile-form (cons 'progn (nreverse setters))))) |
| 2431 | (setq for-effect nil))) | ||
| 2432 | 2432 | ||
| 2433 | (defun byte-compile-quote (form) | 2433 | (defun byte-compile-quote (form) |
| 2434 | (byte-compile-constant (car (cdr form)))) | 2434 | (byte-compile-constant (car (cdr form)))) |