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

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

[nongnu] elpa/gnuplot 958db84 018/184: Use `add-hook' instead of `make-l


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot 958db84 018/184: Use `add-hook' instead of `make-local-variable' in `gnuplot-comint-mode'
Date: Sun, 29 Aug 2021 11:03:07 -0400 (EDT)

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

    Use `add-hook' instead of `make-local-variable' in `gnuplot-comint-mode'
---
 gnuplot.el | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/gnuplot.el b/gnuplot.el
index 914ac57..ba17e21 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -2012,14 +2012,16 @@ buffer."
     (make-local-hook 'kill-buffer-hook))
   (add-hook 'kill-buffer-hook 'gnuplot-close-down nil t)
 
-  (make-local-variable 'comint-output-filter-functions) ; is this necessary?
-  (setq comint-output-filter-functions
-       (append comint-output-filter-functions
-               '(comint-postoutput-scroll-to-bottom
-                 gnuplot-protect-prompt-fn)))
+  (add-hook 'comint-output-filter-functions
+           'comint-postoutput-scroll-to-bottom
+           nil t)
+  (add-hook 'comint-output-filter-functions
+           'gnuplot-protect-prompt-fn
+           nil t)
 
   (add-hook 'comint-dynamic-complete-functions 'gnuplot-comint-complete)
 
+  ;; Set up menu (see below)
   (easy-menu-define
    gnuplot-comint-mode-menu gnuplot-comint-mode-map "Menu used in 
gnuplot-comint-mode"
    gnuplot-comint-menu)



reply via email to

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