@@ -214,7 +214,7 @@ These messages are shown after menu insertion of gnuplot commands."
214
214
:group 'gnuplot-insertions
215
215
:type 'boolean )
216
216
217
- (defcustom gnuplot-delay 0.01
217
+ (defcustom gnuplot-delay 0.02
218
218
" Amount of time to delay before sending a new line to gnuplot.
219
219
This is needed so that the the line is not written in the gnuplot
220
220
buffer in advance of its prompt. Increase this number if the
@@ -1107,7 +1107,7 @@ called by this function after all of STRING is sent to gnuplot."
1107
1107
(goto-char (point-max ))
1108
1108
; ; bruce asks: what is this next line for?
1109
1109
(set-marker (process-mark gnuplot-process) (point-marker ))
1110
- (sleep-for (* 20 gnuplot-delay))
1110
+ (sleep-for (* 10 gnuplot-delay))
1111
1111
(while list
1112
1112
(insert (car list ))
1113
1113
(comint-send-input )
@@ -1376,19 +1376,15 @@ buffer."
1376
1376
" Switch to the gnuplot program buffer or create one if none exists."
1377
1377
(unless (and gnuplot-process (eq (process-status gnuplot-process) 'run )
1378
1378
gnuplot-buffer (buffer-live-p gnuplot-buffer))
1379
- (message " Starting gnuplot plotting program... " )
1380
- (let ((gnuplot-cmd (list #'make-comint gnuplot-process-name gnuplot-program)))
1381
- (when gnuplot-program-args
1382
- (setq gnuplot-cmd (append gnuplot-cmd '(nil ) (split-string gnuplot-program-args))))
1383
- (setq gnuplot-buffer (eval gnuplot-cmd t )
1384
- gnuplot-process (get-buffer-process gnuplot-buffer)))
1379
+ (setq gnuplot-buffer (apply #'make-comint gnuplot-process-name gnuplot-program nil
1380
+ (and gnuplot-program-args (split-string gnuplot-program-args)))
1381
+ gnuplot-process (get-buffer-process gnuplot-buffer))
1385
1382
(set-process-query-on-exit-flag gnuplot-process nil )
1386
1383
(with-current-buffer gnuplot-buffer
1387
1384
(gnuplot-comint-mode)
1388
1385
(when gnuplot-inline-image-mode
1389
- (sleep-for gnuplot-delay)
1390
- (gnuplot--setup-comint-for-image-mode)))
1391
- (message " Starting gnuplot plotting program...Done " )))
1386
+ (sleep-for (* 10 gnuplot-delay))
1387
+ (gnuplot--setup-comint-for-image-mode)))))
1392
1388
1393
1389
(defvar gnuplot-prompt-regexp
1394
1390
(regexp-opt '(" gnuplot> " " multiplot> " ))
0 commit comments