From f749655b76725df9d62e602ff97744510af858a2 Mon Sep 17 00:00:00 2001 From: Torsten Hilbrich Date: Sat, 27 Aug 2011 21:00:31 +0200 Subject: call make-local-hook only under XEmacs GNU Emacs deprecated it back in version 21, and will retire it altogether in the upcoming version 24. Fix taken from the Debian package. --- dictionary.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dictionary.el') diff --git a/dictionary.el b/dictionary.el index 3270616..d70908a 100755 --- a/dictionary.el +++ b/dictionary.el @@ -330,7 +330,8 @@ by the choice value: (make-local-variable 'dictionary-default-dictionary) (make-local-variable 'dictionary-default-strategy) - (make-local-hook 'kill-buffer-hook) + (if (featurep 'xemacs) + (make-local-hook 'kill-buffer-hook)) (add-hook 'kill-buffer-hook 'dictionary-close t t) (run-hooks 'dictionary-mode-hook)) -- cgit v1.2.3