diff options
| author | Dave Love | 2000-02-02 15:20:31 +0000 |
|---|---|---|
| committer | Dave Love | 2000-02-02 15:20:31 +0000 |
| commit | 0d752cda8e9d8a6b927c4ab2d953f7dff64ef3f6 (patch) | |
| tree | 33188d6a1090b8ef2c2040678c0c2aac23eaca2f | |
| parent | 65d68537afbe22f080645f12bfa5e07a916b97a4 (diff) | |
| download | emacs-0d752cda8e9d8a6b927c4ab2d953f7dff64ef3f6.tar.gz emacs-0d752cda8e9d8a6b927c4ab2d953f7dff64ef3f6.zip | |
Use bytecomp-load-hook, not emacs-lisp-mode-hook.
Don't check for defalias being defined.
| -rw-r--r-- | lisp/emacs-lisp/cl.el | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el index 49a07a2f6d1..830a3e8d1ff 100644 --- a/lisp/emacs-lisp/cl.el +++ b/lisp/emacs-lisp/cl.el | |||
| @@ -93,8 +93,6 @@ | |||
| 93 | 93 | ||
| 94 | ;;; Code: | 94 | ;;; Code: |
| 95 | 95 | ||
| 96 | (or (fboundp 'defalias) (fset 'defalias 'fset)) | ||
| 97 | |||
| 98 | (defvar cl-optimize-speed 1) | 96 | (defvar cl-optimize-speed 1) |
| 99 | (defvar cl-optimize-safety 1) | 97 | (defvar cl-optimize-safety 1) |
| 100 | 98 | ||
| @@ -670,12 +668,7 @@ Keywords supported: :test :test-not :key" | |||
| 670 | (cl-hack-byte-compiler) | 668 | (cl-hack-byte-compiler) |
| 671 | 669 | ||
| 672 | ;;; Also make a hook in case compiler is loaded after this file. | 670 | ;;; Also make a hook in case compiler is loaded after this file. |
| 673 | ;;; The compiler doesn't call any hooks when it loads or runs, but | 671 | (add-hook 'bytecomp-load-hook 'cl-hack-byte-compiler) |
| 674 | ;;; we can take advantage of the fact that emacs-lisp-mode will be | ||
| 675 | ;;; called when the compiler reads in the file to be compiled. | ||
| 676 | ;;; BUG: If the first compilation is `byte-compile' rather than | ||
| 677 | ;;; `byte-compile-file', we lose. Oh, well. | ||
| 678 | (add-hook 'emacs-lisp-mode-hook 'cl-hack-byte-compiler) | ||
| 679 | 672 | ||
| 680 | 673 | ||
| 681 | ;;; The following ensures that packages which expect the old-style cl.el | 674 | ;;; The following ensures that packages which expect the old-style cl.el |