107
107
:group 'gnuplot-hooks
108
108
:type 'hook )
109
109
110
- (defcustom gnuplot-after-plot-hook (list #'gnuplot-trim-gnuplot -buffer )
110
+ (defcustom gnuplot-after-plot-hook (list #'gnuplot-trim-comint -buffer )
111
111
" Hook run after gnuplot plots something.
112
112
This is the last thing done by the functions for plotting a line, a
113
113
region, a buffer, or a file."
@@ -346,12 +346,12 @@ non-nil."
346
346
(define-key map " \C -c\C -b" #'gnuplot-send-buffer-to-gnuplot )
347
347
(define-key map " \C -c\C -c" #'comment-region ) ; <RF>
348
348
(define-key map " \C -c\C -o" #'gnuplot-gui-set-options-and-insert )
349
- (define-key map " \C -c\C -e" #'gnuplot-show-gnuplot -buffer )
349
+ (define-key map " \C -c\C -e" #'gnuplot-show-comint -buffer )
350
350
(define-key map " \C -c\C -f" #'gnuplot-send-file-to-gnuplot )
351
351
(define-key map " \C -c\C -d" #'gnuplot-info-lookup-symbol )
352
352
(define-key map " \C -c\C -i" #'gnuplot-insert-filename )
353
353
(define-key map " \C -c\C -j" #'gnuplot-forward-script-line )
354
- (define-key map " \C -c\C -k" #'gnuplot-kill-gnuplot -buffer )
354
+ (define-key map " \C -c\C -k" #'gnuplot-kill-comint -buffer )
355
355
(define-key map " \C -c\C -l" #'gnuplot-send-line-to-gnuplot )
356
356
(define-key map " \C -c\C -n" #'gnuplot-negate-option )
357
357
(define-key map " \C -c\C -r" #'gnuplot-send-region-to-gnuplot )
@@ -414,13 +414,13 @@ non-nil."
414
414
[" Info documentation on thing at point"
415
415
gnuplot-info-at-point
416
416
gnuplot-context-sensitive-mode]
417
- [" Show gnuplot process buffer" gnuplot-show-gnuplot -buffer t]
417
+ [" Show gnuplot process buffer" gnuplot-show-comint -buffer t]
418
418
[" Set arguments at point" gnuplot-gui-set-options-and-insert t]
419
419
[" Swap plot/splot/fit lists in GUI" gnuplot-gui-swap-simple-complete t]
420
420
" ---"
421
421
[" Customize gnuplot" gnuplot-customize t]
422
422
" ---"
423
- [" Kill gnuplot" gnuplot-kill-gnuplot -buffer t])
423
+ [" Kill gnuplot" gnuplot-kill-comint -buffer t])
424
424
" Menu for `gnuplot-mode' ." )
425
425
426
426
@@ -1042,7 +1042,7 @@ the type of text being sent to gnuplot and is typically one of
1042
1042
nil, `line' , `region' , `buffer' , or `file' . TEXT may be useful for
1043
1043
functions in `gnuplot-after-plot-hook' . `gnuplot-after-plot-hook' is
1044
1044
called by this function after all of STRING is sent to gnuplot."
1045
- (gnuplot--make-gnuplot -buffer) ; make sure a gnuplot buffer exists
1045
+ (gnuplot--make-comint -buffer) ; make sure a gnuplot buffer exists
1046
1046
(setq gnuplot-comint-recent-buffer (current-buffer ))
1047
1047
1048
1048
; ; Create a gnuplot frame if needed
@@ -1070,16 +1070,16 @@ called by this function after all of STRING is sent to gnuplot."
1070
1070
(goto-char (point-max ))))
1071
1071
1072
1072
(cond ((equal gnuplot-display-process 'window )
1073
- (gnuplot--display-and-recenter-gnuplot -buffer))
1073
+ (gnuplot--display-and-recenter-comint -buffer))
1074
1074
((equal gnuplot-display-process 'frame )
1075
1075
; ;(raise-frame gnuplot-process-frame)
1076
1076
(with-selected-frame gnuplot-process-frame
1077
- (gnuplot--display-and-recenter-gnuplot -buffer))))
1077
+ (gnuplot--display-and-recenter-comint -buffer))))
1078
1078
1079
1079
(setq gnuplot-recently-sent text)
1080
1080
(run-hooks 'gnuplot-after-plot-hook )))
1081
1081
1082
- (defun gnuplot--display-and-recenter-gnuplot -buffer ()
1082
+ (defun gnuplot--display-and-recenter-comint -buffer ()
1083
1083
" Make sure the gnuplot comint buffer is displayed.
1084
1084
Move point to the end if necessary."
1085
1085
(save-selected-window
@@ -1183,7 +1183,7 @@ This sets `gnuplot-recently-sent' to `file'."
1183
1183
(let ((string (read-file-name " Name of file to send to gnuplot > " nil nil t )))
1184
1184
(setq string (concat " load '" (expand-file-name string) " '\n " ))
1185
1185
(message " %S " string)
1186
- (gnuplot--make-gnuplot -buffer) ; make sure a gnuplot buffer exists
1186
+ (gnuplot--make-comint -buffer) ; make sure a gnuplot buffer exists
1187
1187
(gnuplot-send-string-to-gnuplot string 'file )))
1188
1188
1189
1189
; ; suggested by <JS>
@@ -1232,7 +1232,7 @@ file visited by the script buffer."
1232
1232
(when (buffer-live-p gnuplot-comint-recent-buffer)
1233
1233
(pop-to-buffer gnuplot-comint-recent-buffer)))
1234
1234
1235
- (defun gnuplot-trim-gnuplot -buffer ()
1235
+ (defun gnuplot-trim-comint -buffer ()
1236
1236
" Trim lines from the beginning of the *gnuplot* buffer.
1237
1237
This keeps that buffer from growing excessively in size. Normally,
1238
1238
this function is attached to `gnuplot-after-plot-hook' "
@@ -1277,7 +1277,7 @@ this function is attached to `gnuplot-after-plot-hook'"
1277
1277
" ---"
1278
1278
[" Customize gnuplot" gnuplot-customize t]
1279
1279
" ---"
1280
- [" Kill gnuplot" gnuplot-kill-gnuplot -buffer t]))
1280
+ [" Kill gnuplot" gnuplot-kill-comint -buffer t]))
1281
1281
1282
1282
; ; Major mode `gnuplot-comint-mode' for the interaction buffer
1283
1283
(define-derived-mode gnuplot-comint-mode comint-mode " Gnuplot interaction"
@@ -1324,7 +1324,7 @@ buffer."
1324
1324
(defvar gnuplot-comint-mode-menu nil
1325
1325
" Menu for `gnuplot-comint-mode' ." )
1326
1326
1327
- (defun gnuplot--make-gnuplot -buffer ()
1327
+ (defun gnuplot--make-comint -buffer ()
1328
1328
" Switch to the gnuplot program buffer or create one if none exists."
1329
1329
(unless (and gnuplot-process (eq (process-status gnuplot-process) 'run )
1330
1330
gnuplot-buffer (buffer-live-p gnuplot-buffer))
@@ -1373,10 +1373,10 @@ STRING is the text as originally inserted in the comint buffer."
1373
1373
This is very similar to `comint-delchar-or-maybe-eof' ."
1374
1374
(interactive " p" )
1375
1375
(if (eobp )
1376
- (gnuplot-kill-gnuplot -buffer)
1376
+ (gnuplot-kill-comint -buffer)
1377
1377
(delete-char arg)))
1378
1378
1379
- (defun gnuplot-kill-gnuplot -buffer ()
1379
+ (defun gnuplot-kill-comint -buffer ()
1380
1380
" Kill the gnuplot process and its display buffers."
1381
1381
(interactive )
1382
1382
(if (and gnuplot-process
@@ -1390,14 +1390,14 @@ This is very similar to `comint-delchar-or-maybe-eof'."
1390
1390
(setq gnuplot-process nil
1391
1391
gnuplot-buffer nil ))
1392
1392
1393
- (defun gnuplot-show-gnuplot -buffer ()
1393
+ (defun gnuplot-show-comint -buffer ()
1394
1394
" Switch to the buffer containing the gnuplot process.
1395
1395
When `gnuplot-display-process' is nil this will switch to
1396
1396
the gnuplot process buffer. When that variable is non-nil, the
1397
1397
gnuplot process buffer will be displayed in a window."
1398
1398
(interactive )
1399
1399
(unless (and gnuplot-buffer (get-buffer gnuplot-buffer))
1400
- (gnuplot--make-gnuplot -buffer))
1400
+ (gnuplot--make-comint -buffer))
1401
1401
(cond ((equal gnuplot-display-process 'window )
1402
1402
(switch-to-buffer-other-window gnuplot-buffer))
1403
1403
((equal gnuplot-display-process 'frame )
@@ -1995,7 +1995,7 @@ following in your .emacs file:
1995
1995
(defun run-gnuplot ()
1996
1996
" Run an inferior Gnuplot process."
1997
1997
(interactive )
1998
- (gnuplot--make-gnuplot -buffer)
1998
+ (gnuplot--make-comint -buffer)
1999
1999
(pop-to-buffer gnuplot-buffer))
2000
2000
2001
2001
;;;### autoload
@@ -2007,15 +2007,16 @@ following in your .emacs file:
2007
2007
(define-obsolete-function-alias 'gnuplot-close-down #'gnuplot--close-down " 0.8.1" )
2008
2008
(define-obsolete-function-alias 'gnuplot-continuation-line-p #'gnuplot--continuation-line-p " 0.8.1" )
2009
2009
(define-obsolete-function-alias 'gnuplot-discard-output #'gnuplot--discard-output " 0.8.1" )
2010
- (define-obsolete-function-alias 'gnuplot-display-and-recenter-gnuplot-buffer #'gnuplot--display-and-recenter-gnuplot -buffer " 0.8.1" )
2010
+ (define-obsolete-function-alias 'gnuplot-display-and-recenter-gnuplot-buffer #'gnuplot--display-and-recenter-comint -buffer " 0.8.1" )
2011
2011
(define-obsolete-function-alias 'gnuplot-end-of-command #'gnuplot--end-of-command " 0.8.1" )
2012
2012
(define-obsolete-function-alias 'gnuplot-end-of-continuation #'gnuplot--end-of-continuation " 0.8.1" )
2013
2013
(define-obsolete-function-alias 'gnuplot-in-comment #'gnuplot--in-comment " 0.8.1" )
2014
2014
(define-obsolete-function-alias 'gnuplot-in-string #'gnuplot--in-string " 0.8.1" )
2015
2015
(define-obsolete-function-alias 'gnuplot-in-string-or-comment #'gnuplot--in-string-or-comment " 0.8.1" )
2016
2016
(define-obsolete-function-alias 'gnuplot-inline-image-set-output #'gnuplot--inline-image-set-output " 0.8.1" )
2017
2017
(define-obsolete-function-alias 'gnuplot-insert-inline-image-output #'gnuplot--insert-inline-image-output " 0.8.1" )
2018
- (define-obsolete-function-alias 'gnuplot-make-gnuplot-buffer #'gnuplot--make-gnuplot-buffer " 0.8.1" )
2018
+ (define-obsolete-function-alias 'gnuplot-kill-gnuplot-buffer #'gnuplot-kill-comint-buffer " 0.8.1" )
2019
+ (define-obsolete-function-alias 'gnuplot-make-gnuplot-buffer #'gnuplot--make-comint-buffer " 0.8.1" )
2019
2020
(define-obsolete-function-alias 'gnuplot-point-at-beginning-of-command #'gnuplot--point-at-beginning-of-command " 0.8.1" )
2020
2021
(define-obsolete-function-alias 'gnuplot-point-at-beginning-of-continuation #'gnuplot--point-at-beginning-of-continuation " 0.8.1" )
2021
2022
(define-obsolete-function-alias 'gnuplot-point-at-end-of-command #'gnuplot--point-at-end-of-command " 0.8.1" )
@@ -2025,8 +2026,10 @@ following in your .emacs file:
2025
2026
(define-obsolete-function-alias 'gnuplot-set-keywords-list #'gnuplot--set-keywords-list " 0.8.1" )
2026
2027
(define-obsolete-function-alias 'gnuplot-setup-comint-for-image-mode #'gnuplot--setup-comint-for-image-mode " 0.8.1" )
2027
2028
(define-obsolete-function-alias 'gnuplot-setup-info-look #'gnuplot--setup-info-look " 0.8.1" )
2029
+ (define-obsolete-function-alias 'gnuplot-show-gnuplot-buffer #'gnuplot-show-comint-buffer " 0.8.1" )
2028
2030
(define-obsolete-function-alias 'gnuplot-split-string #'gnuplot--split-string " 0.8.1" )
2029
2031
(define-obsolete-function-alias 'gnuplot-syntax-propertize-extend-region #'gnuplot--syntax-propertize-extend-region " 0.8.1" )
2032
+ (define-obsolete-function-alias 'gnuplot-trim-gnuplot-buffer #'gnuplot-trim-comint-buffer " 0.8.1" )
2030
2033
(make-obsolete-variable 'gnuplot-eldoc-mode " Toggle eldoc-mode" " 0.8.1" )
2031
2034
(make-obsolete-variable 'gnuplot-tab-completion " Set tab-always-indent to 'complete" " 0.8.1" )
2032
2035
0 commit comments