1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(byte-compile-setq-default): Handle multiple pairs args like setq (as

the setq-default subr does).
This commit is contained in:
Roland McGrath 1993-07-07 03:06:28 +00:00
parent 23de57664f
commit 8ccc377f96

View file

@ -2420,9 +2420,15 @@ If FORM is a lambda or a macro, byte-compile it as a function."
(setq for-effect nil)))
(defun byte-compile-setq-default (form)
(byte-compile-form
(cons 'set-default (cons (list 'quote (nth 1 form))
(nthcdr 2 form)))))
(let ((args (cdr form)))
(if args
(while args
(byte-compile-form
(list 'set-default (list 'quote (car args)) (car (cdr args))))
(setq args (cdr (cdr args))))
;; (setq-default), with no arguments.
(byte-compile-form nil for-effect))
(setq for-effect nil)))
(defun byte-compile-quote (form)
(byte-compile-constant (car (cdr form))))