diff options
author | Torsten Hilbrich <torsten.hilbrich@gmx.net> | 2011-08-27 21:00:31 +0200 |
---|---|---|
committer | Torsten Hilbrich <torsten.hilbrich@gmx.net> | 2011-08-27 21:02:01 +0200 |
commit | f749655b76725df9d62e602ff97744510af858a2 (patch) | |
tree | e01a09ca0dc19242ecfbaa81d84b8b291a9724a5 | |
parent | 73347f4e6674220348ec2294cde19ae25819986b (diff) |
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.
-rwxr-xr-x | dictionary.el | 3 |
1 files changed, 2 insertions, 1 deletions
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)) |