branch: elpa/gnuplot
commit a375477e82bf8b1b0ca7ebce71fbf024603d5c73
Merge: eec13f0 fca0deb
Author: Jonathan Oddie <[email protected]>
Commit: Jonathan Oddie <[email protected]>

    Merge pull request #7 from mcraveiro/master
    
    Attempt to fix make-local-hook error
---
 gnuplot.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnuplot.el b/gnuplot.el
index 3afa05e..97d8482 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -1864,8 +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)
-         (add-hook 'kill-buffer-hook 'gnuplot-close-down nil t)
+      ;; 'local does not automatically make hook buffer-local in XEmacs.
+      (if (featurep 'xemacs)
+          (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)
           (setq comint-output-filter-functions

Reply via email to