1
--- a/elisp/emacs-goodies-el/ascii.el
2
+++ b/elisp/emacs-goodies-el/ascii.el
5
ascii-reference-count (1+ ascii-reference-count))
7
- (make-local-hook 'post-command-hook)
8
+ (if (fboundp 'make-local-hook)
9
+ (make-local-hook 'post-command-hook))
10
(add-hook 'post-command-hook 'ascii-post-command)
11
- (make-local-hook 'kill-buffer-hook)
12
+ (if (fboundp 'make-local-hook)
13
+ (make-local-hook 'kill-buffer-hook))
14
(add-hook 'kill-buffer-hook 'ascii-off nil t)
16
(run-hooks 'ascii-hook)
21
-(make-local-hook 'ascii-hook)
22
+(if (fboundp 'make-local-hook)
23
+ (make-local-hook 'ascii-hook))
27
--- a/elisp/emacs-goodies-el/egocentric.el
28
+++ b/elisp/emacs-goodies-el/egocentric.el
31
(defvar egocentric-overlay-list nil
32
"List of overlays used to highlight occurences of your name in `egocentric-mode'.")
33
-(make-local-variable 'egocentric-overlay-list)
34
+(if (fboundp 'make-local-hook)
35
+ (make-local-variable 'egocentric-overlay-list))
37
(defvar egocentric-regexp-list nil
38
"Regexp used to check whether a word has to be highlighted.
40
(defun egocentric-mode-on ()
41
"Turn Egocentric mode on."
43
- (make-local-hook 'post-command-hook)
44
+ (if (fboundp 'make-local-hook)
45
+ (make-local-hook 'post-command-hook))
46
(add-hook 'post-command-hook (function egocentric-post-command-hook) t t)
47
(egocentric-update-regexp-list)
48
(egocentric-insinuate egocentric-regexp-list)
49
--- a/elisp/emacs-goodies-el/maplev.el
50
+++ b/elisp/emacs-goodies-el/maplev.el
51
@@ -1853,13 +1853,15 @@
52
;; the file's local variables specs might change maplev-release
53
;; xemacs version of make-local-hook returns t, not the hook. (JR)
54
;; make-local-hook is obsolete in GNU emacs 21.1
55
- (make-local-hook 'hack-local-variables-hook)
56
+ (if (fboundp 'make-local-hook)
57
+ (make-local-hook 'hack-local-variables-hook))
58
(add-hook 'hack-local-variables-hook 'maplev-mode-name nil t)
61
(if maplev-clean-buffer-before-saving-flag
62
(add-hook 'local-write-file-hooks 'maplev-remove-trailing-spaces))
63
- (make-local-hook 'before-change-functions)
64
+ (if (fboundp 'make-local-hook)
65
+ (make-local-hook 'before-change-functions))
66
(add-hook 'before-change-functions 'maplev--before-change-function nil t)
67
(run-hooks 'maplev-mode-hook))