aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-01 22:13:28 +0000
committerRichard M. Stallman1993-07-01 22:13:28 +0000
commitf4e90b76154bf7bf68a695cb8c5767c350ab67fd (patch)
tree0466a28630c7b555bca515bc85952872eb8376ff
parenta3d1480b7d2af7f70d38a27378f5fe68ef53b15d (diff)
downloademacs-f4e90b76154bf7bf68a695cb8c5767c350ab67fd.tar.gz
emacs-f4e90b76154bf7bf68a695cb8c5767c350ab67fd.zip
(byte-compile-file-form-defmumble):
If byte-compile-compatibility, use fset, not defalias.
-rw-r--r--lisp/emacs-lisp/bytecomp.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 59d1f399b25..4fd911c7671 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1579,7 +1579,9 @@ With argument, insert value in current buffer after the form."
1579 (if (not (stringp (nth 3 form))) 1579 (if (not (stringp (nth 3 form)))
1580 ;; No doc string to make-docfile; insert form in normal code. 1580 ;; No doc string to make-docfile; insert form in normal code.
1581 (byte-compile-keep-pending 1581 (byte-compile-keep-pending
1582 (list 'defalias (list 'quote name) 1582 (list (if (byte-compile-version-cond byte-compile-compatibility)
1583 'defalias 'fset)
1584 (list 'quote name)
1583 (cond ((not macrop) 1585 (cond ((not macrop)
1584 code) 1586 code)
1585 ((eq 'make-byte-code (car-safe code)) 1587 ((eq 'make-byte-code (car-safe code))
@@ -1590,7 +1592,9 @@ With argument, insert value in current buffer after the form."
1590 ;; Output the form by hand, that's much simpler than having 1592 ;; Output the form by hand, that's much simpler than having
1591 ;; b-c-output-file-form analyze the defalias. 1593 ;; b-c-output-file-form analyze the defalias.
1592 (byte-compile-flush-pending) 1594 (byte-compile-flush-pending)
1593 (princ "\n(defalias '" outbuffer) 1595 (princ (if (byte-compile-version-cond byte-compile-compatibility)
1596 "\n(defalias '" "\n(fset '")
1597 outbuffer)
1594 (prin1 name outbuffer) 1598 (prin1 name outbuffer)
1595 (byte-compile-output-docform 1599 (byte-compile-output-docform
1596 (cond ((atom code) 1600 (cond ((atom code)