emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gnuplot 00dadc3 011/184: Restored the check for XEmacs bef


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot 00dadc3 011/184: Restored the check for XEmacs before calling make-local-hook
Date: Sun, 29 Aug 2021 11:03:05 -0400 (EDT)

branch: elpa/gnuplot
commit 00dadc386494c26a5d463a4b383b6d99577cbd57
Author: Jonathan Oddie <j.j.oddie@gmail.com>
Commit: Jonathan Oddie <j.j.oddie@gmail.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]