diff options
| author | Juanma Barranquero | 2007-02-05 23:45:31 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-02-05 23:45:31 +0000 |
| commit | 54c6a1c4f5bdc6e2f5da31beaa0c5499f7a56fe5 (patch) | |
| tree | 6a7b27f68947733be84f9f33530e1cb6633f836a | |
| parent | 74a5d578f1991fa41d156e9c40c040dcc05e9dd8 (diff) | |
| download | emacs-54c6a1c4f5bdc6e2f5da31beaa0c5499f7a56fe5.tar.gz emacs-54c6a1c4f5bdc6e2f5da31beaa0c5499f7a56fe5.zip | |
(unload-feature): Silently ignore `load-history' entries of the form `(defface
. SYMBOL)', and treat `(autoload . SYMBOL)' entries like `defun'. Return nil.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/loadhist.el | 8 |
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 48bd8e97d6d..d3d9a28ed21 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-02-05 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * loadhist.el (unload-feature): Silently ignore `load-history' entries | ||
| 4 | of the form `(defface . SYMBOL)', and treat `(autoload . SYMBOL)' | ||
| 5 | entries like `defun'. Return nil. | ||
| 6 | |||
| 1 | 2007-02-05 Kim F. Storm <storm@cua.dk> | 7 | 2007-02-05 Kim F. Storm <storm@cua.dk> |
| 2 | 8 | ||
| 3 | * ido.el: Doc fixes. | 9 | * ido.el: Doc fixes. |
| @@ -24,8 +30,8 @@ | |||
| 24 | and insert the image directly. | 30 | and insert the image directly. |
| 25 | (newsticker--buffer-redraw): Update docstring. | 31 | (newsticker--buffer-redraw): Update docstring. |
| 26 | 32 | ||
| 27 | * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Rename | 33 | * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): |
| 28 | from define-global-minor-mode. | 34 | Rename from define-global-minor-mode. |
| 29 | 35 | ||
| 30 | * progmodes/cwarn.el (global-cwarn-mode): | 36 | * progmodes/cwarn.el (global-cwarn-mode): |
| 31 | * emacs-lisp/autoload.el (make-autoload): | 37 | * emacs-lisp/autoload.el (make-autoload): |
diff --git a/lisp/loadhist.el b/lisp/loadhist.el index c6c767f736c..8ca1de4aeca 100644 --- a/lisp/loadhist.el +++ b/lisp/loadhist.el | |||
| @@ -215,7 +215,7 @@ such as redefining an Emacs function." | |||
| 215 | ;; Remove any feature names that this file provided. | 215 | ;; Remove any feature names that this file provided. |
| 216 | (provide | 216 | (provide |
| 217 | (setq features (delq (cdr x) features))) | 217 | (setq features (delq (cdr x) features))) |
| 218 | (defun | 218 | ((defun autoload) |
| 219 | (let ((fun (cdr x))) | 219 | (let ((fun (cdr x))) |
| 220 | (when (fboundp fun) | 220 | (when (fboundp fun) |
| 221 | (when (fboundp 'ad-unadvise) | 221 | (when (fboundp 'ad-unadvise) |
| @@ -224,7 +224,7 @@ such as redefining an Emacs function." | |||
| 224 | (if aload | 224 | (if aload |
| 225 | (fset fun (cons 'autoload aload)) | 225 | (fset fun (cons 'autoload aload)) |
| 226 | (fmakunbound fun)))))) | 226 | (fmakunbound fun)))))) |
| 227 | ((t require) nil) | 227 | ((t require defface) nil) |
| 228 | (t (message "Unexpected element %s in load-history" x))) | 228 | (t (message "Unexpected element %s in load-history" x))) |
| 229 | ;; Kill local values as much as possible. | 229 | ;; Kill local values as much as possible. |
| 230 | (dolist (buf (buffer-list)) | 230 | (dolist (buf (buffer-list)) |
| @@ -238,7 +238,9 @@ such as redefining an Emacs function." | |||
| 238 | (unless (local-variable-if-set-p x) | 238 | (unless (local-variable-if-set-p x) |
| 239 | (makunbound x)))) | 239 | (makunbound x)))) |
| 240 | ;; Delete the load-history element for this file. | 240 | ;; Delete the load-history element for this file. |
| 241 | (setq load-history (delq (assoc file load-history) load-history)))) | 241 | (setq load-history (delq (assoc file load-history) load-history))) |
| 242 | ;; Don't return load-history, it is not useful. | ||
| 243 | nil) | ||
| 242 | 244 | ||
| 243 | (provide 'loadhist) | 245 | (provide 'loadhist) |
| 244 | 246 | ||