branch: elpa/gnuplot
commit 00dadc386494c26a5d463a4b383b6d99577cbd57
Author: Jonathan Oddie <[email protected]>
Commit: Jonathan Oddie <[email protected]>
Restored the check for XEmacs before calling make-local-hook
- Also check (fboundp 'make-local-hook) just to be safe
- Should hopefully fix the reported issue with Emacs 24
---
gnuplot.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnuplot.el b/gnuplot.el
index 6178b78..9f6d7f8 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -1864,7 +1864,10 @@ buffer. Further customization is possible via
(process-kill-without-query gnuplot-process nil)
(save-excursion
(set-buffer gnuplot-buffer)
- (make-local-hook 'kill-buffer-hook)
+ (when (and (featurep 'xemacs)
+ (fboundp 'make-local-hook))
+ ;; XEmacs needs the call to make-local-hook
+ (make-local-hook 'kill-buffer-hook))
(add-hook 'kill-buffer-hook 'gnuplot-close-down nil t)
(gnuplot-comint-start-function)
(make-local-variable 'comint-output-filter-functions)