branch: elpa/gnuplot
commit 54f3882f7cbf070df7918c9926c36f057ffc3bab
Author: joddie <[email protected]>
Commit: joddie <[email protected]>
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)