diff options
| -rw-r--r-- | lisp/loadhist.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/loadhist.el b/lisp/loadhist.el index db760c25b32..daa388d502d 100644 --- a/lisp/loadhist.el +++ b/lisp/loadhist.el | |||
| @@ -107,7 +107,7 @@ mouse-position-function | |||
| 107 | redisplay-end-trigger-functions temp-buffer-show-function | 107 | redisplay-end-trigger-functions temp-buffer-show-function |
| 108 | window-scroll-functions window-size-change-functions | 108 | window-scroll-functions window-size-change-functions |
| 109 | write-region-annotate-functions) | 109 | write-region-annotate-functions) |
| 110 | "A list of special hooks from the `Standard Hooks' node of the Lisp manual. | 110 | "A list of special hooks from Info node `(elisp)Standard Hooks'. |
| 111 | 111 | ||
| 112 | These are symbols with hook-type values whose names don't end in | 112 | These are symbols with hook-type values whose names don't end in |
| 113 | `-hook' or `-hooks', from which `unload-feature' tries to remove | 113 | `-hook' or `-hooks', from which `unload-feature' tries to remove |
| @@ -154,8 +154,10 @@ is nil, raise an error." | |||
| 154 | (memq x loadhist-hook-functions))) | 154 | (memq x loadhist-hook-functions))) |
| 155 | (dolist (y (cdr flist)) | 155 | (dolist (y (cdr flist)) |
| 156 | (remove-hook x y)))))) | 156 | (remove-hook x y)))))) |
| 157 | (if (fboundp 'elp-restore-list) | 157 | (if (fboundp 'elp-restore-function) ; remove ELP stuff first |
| 158 | (elp-restore-list (cdr flist))) | 158 | (dolist (elt (cdr flist)) |
| 159 | (if (symbolp elt) | ||
| 160 | (elp-restore-function elt)))) | ||
| 159 | (mapc | 161 | (mapc |
| 160 | (lambda (x) | 162 | (lambda (x) |
| 161 | (cond ((stringp x) nil) | 163 | (cond ((stringp x) nil) |