aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/loadhist.el28
1 files changed, 15 insertions, 13 deletions
diff --git a/lisp/loadhist.el b/lisp/loadhist.el
index daa388d502d..00597615c2d 100644
--- a/lisp/loadhist.el
+++ b/lisp/loadhist.el
@@ -32,7 +32,9 @@
32;;; Code: 32;;; Code:
33 33
34(defun feature-symbols (feature) 34(defun feature-symbols (feature)
35 "Return the file and list of symbols associated with a given FEATURE." 35 "Return the file and list of definitions associated with FEATURE.
36The value is actually the element of `load-history'
37for the file that did (provide FEATURE)."
36 (catch 'foundit 38 (catch 'foundit
37 (mapc (lambda (x) 39 (mapc (lambda (x)
38 (if (member (cons 'provide feature) (cdr x)) 40 (if (member (cons 'provide feature) (cdr x))
@@ -98,15 +100,15 @@ return the feature \(symbol\)."
98 100
99(defvar loadhist-hook-functions 101(defvar loadhist-hook-functions
100 '(after-change-functions 102 '(after-change-functions
101after-insert-file-functions auto-fill-function 103 after-insert-file-functions auto-fill-function
102before-change-functions blink-paren-function 104 before-change-functions blink-paren-function
103buffer-access-fontify-functions command-line-functions 105 buffer-access-fontify-functions command-line-functions
104comment-indent-function kill-buffer-query-functions 106 comment-indent-function kill-buffer-query-functions
105kill-emacs-query-functions lisp-indent-function 107 kill-emacs-query-functions lisp-indent-function
106mouse-position-function 108 mouse-position-function
107redisplay-end-trigger-functions temp-buffer-show-function 109 redisplay-end-trigger-functions temp-buffer-show-function
108window-scroll-functions window-size-change-functions 110 window-scroll-functions window-size-change-functions
109write-region-annotate-functions) 111 write-region-annotate-functions)
110 "A list of special hooks from Info node `(elisp)Standard Hooks'. 112 "A list of special hooks from Info node `(elisp)Standard Hooks'.
111 113
112These are symbols with hook-type values whose names don't end in 114These are symbols with hook-type values whose names don't end in
@@ -164,10 +166,10 @@ is nil, raise an error."
164 ((consp x) 166 ((consp x)
165 ;; Remove any feature names that this file provided. 167 ;; Remove any feature names that this file provided.
166 (if (eq (car x) 'provide) 168 (if (eq (car x) 'provide)
167 (setq features (delq (cdr x) features)))) 169 (setq features (delq (cdr x) features)))
170 (if (eq (car x) 'defvar)
171 (makunbound (cdr x))))
168 (t 172 (t
169 (when (boundp x)
170 (makunbound x))
171 (when (fboundp x) 173 (when (fboundp x)
172 (if (fboundp 'ad-unadvise) 174 (if (fboundp 'ad-unadvise)
173 (ad-unadvise x)) 175 (ad-unadvise x))