aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Aspinall2008-01-25 16:05:25 +0000
committerDavid Aspinall2008-01-25 16:05:25 +0000
commitb8181856bf700074a8ef0cc906a76ba1ae69ab81 (patch)
tree8fe410f5b446f25f4161cf5278c5d4b4d4932e64 /lib
parent7ace0a9c753c8d83117832ba9b4212a561d2ce26 (diff)
Back patch for XEmacs 21.4 on API change to add-hook.
Diffstat (limited to 'lib')
-rw-r--r--lib/proof-compat.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/proof-compat.el b/lib/proof-compat.el
index 935d9470..3daed534 100644
--- a/lib/proof-compat.el
+++ b/lib/proof-compat.el
@@ -90,8 +90,16 @@ with `path-separator'."
(split-string path (regexp-quote path-separator))))
-
-
+;; Compatibility with XEmacs 21.4, API change in add-hook
+(when
+ ((and (featurep 'xemacs)
+ (eq emacs-major-version 21)
+ (<= emacs-minor-version 4)))
+
+ (defun add-hook (hook function &optional append local)
+ (if local (make-local-hook hook))
+ (add-hook hook function append local)))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; XEmacs compatibility with GNU Emacs