aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-12-06 16:08:50 -0500
committerStefan Monnier2012-12-06 16:08:50 -0500
commit82e1f390ab57d782ec5d143d99119db03698bd4f (patch)
tree840bef750feb41f48c169b54ea4b78d36bb8c1ef
parent1cbae532a06b6ca7d3317a8f4e8067d247dd901e (diff)
downloademacs-82e1f390ab57d782ec5d143d99119db03698bd4f.tar.gz
emacs-82e1f390ab57d782ec5d143d99119db03698bd4f.zip
* lisp/emacs-lisp/cl.el, lisp/emacs-lisp/cl-lib.el: Move cl-unload-function and
cl-load-hook where they belong.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/cl-lib.el8
-rw-r--r--lisp/emacs-lisp/cl.el9
3 files changed, 14 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a4f40e6a80d..7e63136bac8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * emacs-lisp/cl.el, emacs-lisp/cl-lib.el: Move cl-unload-function and
4 cl-load-hook where they belong.
5
12012-12-06 Chong Yidong <cyd@gnu.org> 62012-12-06 Chong Yidong <cyd@gnu.org>
2 7
3 * ffap.el (ffap-replace-file-component): Fix typo. 8 * ffap.el (ffap-replace-file-component): Fix typo.
diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el
index 7b22c7aac41..c748b6b583b 100644
--- a/lisp/emacs-lisp/cl-lib.el
+++ b/lisp/emacs-lisp/cl-lib.el
@@ -113,12 +113,6 @@ printer proceeds to the next function on the list.
113This variable is not used at present, but it is defined in hopes that 113This variable is not used at present, but it is defined in hopes that
114a future Emacs interpreter will be able to use it.") 114a future Emacs interpreter will be able to use it.")
115 115
116(defun cl-unload-function ()
117 "Stop unloading of the Common Lisp extensions."
118 (message "Cannot unload the feature `cl'")
119 ;; Stop standard unloading!
120 t)
121
122;;; Generalized variables. 116;;; Generalized variables.
123;; These macros are defined here so that they 117;; These macros are defined here so that they
124;; can safely be used in init files. 118;; can safely be used in init files.
@@ -747,8 +741,6 @@ If ALIST is non-nil, the new pairs are prepended to it."
747 741
748(provide 'cl-lib) 742(provide 'cl-lib)
749 743
750(run-hooks 'cl-load-hook)
751
752;; Local variables: 744;; Local variables:
753;; byte-compile-dynamic: t 745;; byte-compile-dynamic: t
754;; End: 746;; End:
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el
index 016967bc713..3d0ca476800 100644
--- a/lisp/emacs-lisp/cl.el
+++ b/lisp/emacs-lisp/cl.el
@@ -83,6 +83,12 @@
83;; (delete-region (1- (point)) (point))) 83;; (delete-region (1- (point)) (point)))
84;; (save-buffer))))) 84;; (save-buffer)))))
85 85
86(defun cl-unload-function ()
87 "Stop unloading of the Common Lisp extensions."
88 (message "Cannot unload the feature `cl'")
89 ;; Stop standard unloading!
90 t)
91
86;;; Aliases to cl-lib's features. 92;;; Aliases to cl-lib's features.
87 93
88(dolist (var '( 94(dolist (var '(
@@ -737,4 +743,7 @@ You can replace this macro with `gv-letplace'."
737 (list accessor temp)))) 743 (list accessor temp))))
738 744
739(provide 'cl) 745(provide 'cl)
746
747(run-hooks 'cl-load-hook)
748
740;;; cl.el ends here 749;;; cl.el ends here