aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-02 17:46:43 +0000
committerRichard M. Stallman1993-07-02 17:46:43 +0000
commitb4ff4a23cb64ab2766fd3b10c09c545b5d3b5f9b (patch)
treee376770caaaa8ab1c33578528d15d8a626c71b8d
parentde6fd4b97c0e0a9a6db3faf4c4c66eac1dac2037 (diff)
downloademacs-b4ff4a23cb64ab2766fd3b10c09c545b5d3b5f9b.tar.gz
emacs-b4ff4a23cb64ab2766fd3b10c09c545b5d3b5f9b.zip
(byte-compile-keep-pending): Handle fset like defalias.
(byte-compile-file-form-defmumble): Fix backward if in prev change.
-rw-r--r--lisp/emacs-lisp/bytecomp.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 4fd911c7671..e3969cf4f85 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1396,7 +1396,8 @@ With argument, insert value in current buffer after the form."
1396 (let ((for-effect t)) 1396 (let ((for-effect t))
1397 ;; To avoid consing up monstrously large forms at load time, we split 1397 ;; To avoid consing up monstrously large forms at load time, we split
1398 ;; the output regularly. 1398 ;; the output regularly.
1399 (and (eq (car-safe form) 'defalias) (nthcdr 300 byte-compile-output) 1399 (and (memq (car-safe form) '(fset defalias))
1400 (nthcdr 300 byte-compile-output)
1400 (byte-compile-flush-pending)) 1401 (byte-compile-flush-pending))
1401 (funcall handler form) 1402 (funcall handler form)
1402 (if for-effect 1403 (if for-effect
@@ -1580,7 +1581,7 @@ With argument, insert value in current buffer after the form."
1580 ;; No doc string to make-docfile; insert form in normal code. 1581 ;; No doc string to make-docfile; insert form in normal code.
1581 (byte-compile-keep-pending 1582 (byte-compile-keep-pending
1582 (list (if (byte-compile-version-cond byte-compile-compatibility) 1583 (list (if (byte-compile-version-cond byte-compile-compatibility)
1583 'defalias 'fset) 1584 'fset 'defalias)
1584 (list 'quote name) 1585 (list 'quote name)
1585 (cond ((not macrop) 1586 (cond ((not macrop)
1586 code) 1587 code)
@@ -1593,7 +1594,7 @@ With argument, insert value in current buffer after the form."
1593 ;; b-c-output-file-form analyze the defalias. 1594 ;; b-c-output-file-form analyze the defalias.
1594 (byte-compile-flush-pending) 1595 (byte-compile-flush-pending)
1595 (princ (if (byte-compile-version-cond byte-compile-compatibility) 1596 (princ (if (byte-compile-version-cond byte-compile-compatibility)
1596 "\n(defalias '" "\n(fset '") 1597 "\n(fset '" "\n(defalias '")
1597 outbuffer) 1598 outbuffer)
1598 (prin1 name outbuffer) 1599 (prin1 name outbuffer)
1599 (byte-compile-output-docform 1600 (byte-compile-output-docform