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

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

[nongnu] elpa/gnuplot 54f3882 070/184: Silence another compiler warning


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot 54f3882 070/184: Silence another compiler warning by using with-current-buffer
Date: Sun, 29 Aug 2021 11:03:17 -0400 (EDT)

branch: elpa/gnuplot
commit 54f3882f7cbf070df7918c9926c36f057ffc3bab
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>

    Silence another compiler warning by using with-current-buffer
---
 gnuplot.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gnuplot.el b/gnuplot.el
index e7225e1..2906fef 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -2078,8 +2078,7 @@ file visited by the script buffer."
 This keeps that buffer from growing excessively in size.  Normally,
 this function is attached to `gnuplot-after-plot-hook'"
   (if (> gnuplot-buffer-max-size 0)
-      (save-excursion
-       (set-buffer gnuplot-buffer)
+      (with-current-buffer gnuplot-buffer
        (let ((nlines (count-lines (point-min) (point-max)))
              (kill-whole-line t))
          (while (> nlines gnuplot-buffer-max-size)



reply via email to

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