1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/textproc/dictionary/files/patch-dictionary.el
John Marino b646cbb635 textproc/dictionary: stop calling make-local-hook unconditionally
This hook was removed from emacs 24.1 so it's obsolete now.

PR:		196527
Submitted by:	Yoshiaki Kasahara
Approved by:	n/a (unmaintained)
2015-02-06 10:15:00 +00:00

13 lines
431 B
EmacsLisp

--- dictionary.el.orig 2004-10-02 06:31:20 UTC
+++ 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 (fboundp 'make-local-hook)
+ (make-local-hook 'kill-buffer-hook))
(add-hook 'kill-buffer-hook 'dictionary-close t t)
(run-hooks 'dictionary-mode-hook))