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

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

[nongnu] elpa/gnuplot fca0deb 030/184: make-local-hook causes erros with


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot fca0deb 030/184: make-local-hook causes erros with GNU Emacs 24
Date: Sun, 29 Aug 2021 11:03:09 -0400 (EDT)

branch: elpa/gnuplot
commit fca0deb06a56ebe6c1471f5403029249a576e086
Author: Marco Craveiro <marco.craveiro@gmail.com>
Commit: Marco Craveiro <marco.craveiro@gmail.com>

    make-local-hook causes erros with GNU Emacs 24
    
    When attempting to use gnuplot-mode with GNU Emacs 24, I get the
    following error:
    
    Debugger entered--Lisp error: (void-function make-local-hook)
      make-local-hook(kill-buffer-hook)
      gnuplot-make-gnuplot-buffer()
    
    The problem is described in detail in the debian bug-tracker:
    
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600185
    
    This commit applies the patch suggested by Agustin Martin on that bug
    report.
---
 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

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