@@ -133,10 +133,6 @@ useful for functions included in `gnuplot-after-plot-hook'.")
133133(defvar gnuplot-process nil
134134 " Variable holding the process handle." )
135135
136- (defvar gnuplot-process-frame nil
137- " The frame for displaying the gnuplot process.
138- This is used when `gnuplot-display-process' is equal to `frame' ." )
139-
140136(defvar gnuplot-comint-recent-buffer nil
141137 " The most recently plotted gnuplot script buffer.
142138This is used by the function that plot from the comint buffer. It is
@@ -216,6 +212,7 @@ to the empty string."
216212 :type '(radio (const :tag " double quote" " \" " )
217213 (const :tag " single quote" " \' " )
218214 (const :tag " none" " " )))
215+
219216(defcustom gnuplot-basic-offset 4
220217 " Number of columns to indent lines inside a do- or if-else-block.
221218
@@ -226,7 +223,11 @@ beginning the continued command."
226223 :group 'gnuplot
227224 :type 'integer )
228225
229- (defvar gnuplot-info-frame nil )
226+ (defvar gnuplot--process-frame nil
227+ " The frame for displaying the gnuplot process.
228+ This is used when `gnuplot-display-process' is equal to `frame' ." )
229+
230+ (defvar gnuplot--info-frame nil )
230231
231232; ; with info-look, there is no need to carry this list around -- it
232233; ; can be generated on the fly appropriate to the currently installed
@@ -1019,10 +1020,10 @@ called by this function after all of STRING is sent to gnuplot."
10191020
10201021 ; ; Create a gnuplot frame if needed
10211022 (when (and (equal gnuplot-display-process 'frame )
1022- (not (frame-live-p gnuplot-process-frame)))
1023+ (not (frame-live-p gnuplot-- process-frame)))
10231024 (let ((frame (selected-frame )))
1024- (setq gnuplot-process-frame (make-frame ))
1025- (select-frame gnuplot-process-frame)
1025+ (setq gnuplot-- process-frame (make-frame ))
1026+ (select-frame gnuplot-- process-frame)
10261027 (switch-to-buffer gnuplot-buffer)
10271028 (delete-other-windows )
10281029 (select-frame frame)))
@@ -1043,8 +1044,8 @@ called by this function after all of STRING is sent to gnuplot."
10431044 (cond ((equal gnuplot-display-process 'window )
10441045 (gnuplot--display-and-recenter-comint-buffer))
10451046 ((equal gnuplot-display-process 'frame )
1046- ; ;(raise-frame gnuplot-process-frame)
1047- (with-selected-frame gnuplot-process-frame
1047+ ; ;(raise-frame gnuplot-- process-frame)
1048+ (with-selected-frame gnuplot-- process-frame
10481049 (gnuplot--display-and-recenter-comint-buffer))))
10491050
10501051 (setq gnuplot-recently-sent text)
@@ -1366,10 +1367,10 @@ gnuplot process buffer will be displayed in a window."
13661367 (cond ((equal gnuplot-display-process 'window )
13671368 (switch-to-buffer-other-window gnuplot-buffer))
13681369 ((equal gnuplot-display-process 'frame )
1369- (or (frame-live-p gnuplot-process-frame)
1370- (setq gnuplot-process-frame (make-frame )))
1371- (raise-frame gnuplot-process-frame)
1372- (select-frame gnuplot-process-frame)
1370+ (or (frame-live-p gnuplot-- process-frame)
1371+ (setq gnuplot-- process-frame (make-frame )))
1372+ (raise-frame gnuplot-- process-frame)
1373+ (select-frame gnuplot-- process-frame)
13731374 (switch-to-buffer gnuplot-buffer))
13741375 (t
13751376 (switch-to-buffer gnuplot-buffer))))
@@ -1819,10 +1820,10 @@ called."
18191820 (- (/ (frame-height ) 2 ) (window-height )))))))
18201821
18211822 (frame
1822- (unless (frame-live-p gnuplot-info-frame)
1823- (setq gnuplot-info-frame (make-frame )))
1824- (select-frame gnuplot-info-frame)
1825- (raise-frame gnuplot-info-frame)
1823+ (unless (frame-live-p gnuplot-- info-frame)
1824+ (setq gnuplot-- info-frame (make-frame )))
1825+ (select-frame gnuplot-- info-frame)
1826+ (raise-frame gnuplot-- info-frame)
18261827 (switch-to-buffer " *info*" ))
18271828
18281829 (t
0 commit comments