107107 :group 'gnuplot-hooks
108108 :type 'hook )
109109
110- (defcustom gnuplot-after-plot-hook (list #'gnuplot-trim-gnuplot -buffer )
110+ (defcustom gnuplot-after-plot-hook (list #'gnuplot-trim-comint -buffer )
111111 " Hook run after gnuplot plots something.
112112This is the last thing done by the functions for plotting a line, a
113113region, a buffer, or a file."
@@ -346,12 +346,12 @@ non-nil."
346346 (define-key map " \C -c\C -b" #'gnuplot-send-buffer-to-gnuplot )
347347 (define-key map " \C -c\C -c" #'comment-region ) ; <RF>
348348 (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 )
350350 (define-key map " \C -c\C -f" #'gnuplot-send-file-to-gnuplot )
351351 (define-key map " \C -c\C -d" #'gnuplot-info-lookup-symbol )
352352 (define-key map " \C -c\C -i" #'gnuplot-insert-filename )
353353 (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 )
355355 (define-key map " \C -c\C -l" #'gnuplot-send-line-to-gnuplot )
356356 (define-key map " \C -c\C -n" #'gnuplot-negate-option )
357357 (define-key map " \C -c\C -r" #'gnuplot-send-region-to-gnuplot )
@@ -414,13 +414,13 @@ non-nil."
414414 [" Info documentation on thing at point"
415415 gnuplot-info-at-point
416416 gnuplot-context-sensitive-mode]
417- [" Show gnuplot process buffer" gnuplot-show-gnuplot -buffer t]
417+ [" Show gnuplot process buffer" gnuplot-show-comint -buffer t]
418418 [" Set arguments at point" gnuplot-gui-set-options-and-insert t]
419419 [" Swap plot/splot/fit lists in GUI" gnuplot-gui-swap-simple-complete t]
420420 " ---"
421421 [" Customize gnuplot" gnuplot-customize t]
422422 " ---"
423- [" Kill gnuplot" gnuplot-kill-gnuplot -buffer t])
423+ [" Kill gnuplot" gnuplot-kill-comint -buffer t])
424424 " Menu for `gnuplot-mode' ." )
425425
426426
@@ -1042,7 +1042,7 @@ the type of text being sent to gnuplot and is typically one of
10421042nil, `line' , `region' , `buffer' , or `file' . TEXT may be useful for
10431043functions in `gnuplot-after-plot-hook' . `gnuplot-after-plot-hook' is
10441044called 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
10461046 (setq gnuplot-comint-recent-buffer (current-buffer ))
10471047
10481048 ; ; Create a gnuplot frame if needed
@@ -1070,16 +1070,16 @@ called by this function after all of STRING is sent to gnuplot."
10701070 (goto-char (point-max ))))
10711071
10721072 (cond ((equal gnuplot-display-process 'window )
1073- (gnuplot--display-and-recenter-gnuplot -buffer))
1073+ (gnuplot--display-and-recenter-comint -buffer))
10741074 ((equal gnuplot-display-process 'frame )
10751075 ; ;(raise-frame gnuplot-process-frame)
10761076 (with-selected-frame gnuplot-process-frame
1077- (gnuplot--display-and-recenter-gnuplot -buffer))))
1077+ (gnuplot--display-and-recenter-comint -buffer))))
10781078
10791079 (setq gnuplot-recently-sent text)
10801080 (run-hooks 'gnuplot-after-plot-hook )))
10811081
1082- (defun gnuplot--display-and-recenter-gnuplot -buffer ()
1082+ (defun gnuplot--display-and-recenter-comint -buffer ()
10831083 " Make sure the gnuplot comint buffer is displayed.
10841084Move point to the end if necessary."
10851085 (save-selected-window
@@ -1183,7 +1183,7 @@ This sets `gnuplot-recently-sent' to `file'."
11831183 (let ((string (read-file-name " Name of file to send to gnuplot > " nil nil t )))
11841184 (setq string (concat " load '" (expand-file-name string) " '\n " ))
11851185 (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
11871187 (gnuplot-send-string-to-gnuplot string 'file )))
11881188
11891189; ; suggested by <JS>
@@ -1232,7 +1232,7 @@ file visited by the script buffer."
12321232 (when (buffer-live-p gnuplot-comint-recent-buffer)
12331233 (pop-to-buffer gnuplot-comint-recent-buffer)))
12341234
1235- (defun gnuplot-trim-gnuplot -buffer ()
1235+ (defun gnuplot-trim-comint -buffer ()
12361236 " Trim lines from the beginning of the *gnuplot* buffer.
12371237This keeps that buffer from growing excessively in size. Normally,
12381238this function is attached to `gnuplot-after-plot-hook' "
@@ -1277,7 +1277,7 @@ this function is attached to `gnuplot-after-plot-hook'"
12771277 " ---"
12781278 [" Customize gnuplot" gnuplot-customize t]
12791279 " ---"
1280- [" Kill gnuplot" gnuplot-kill-gnuplot -buffer t]))
1280+ [" Kill gnuplot" gnuplot-kill-comint -buffer t]))
12811281
12821282; ; Major mode `gnuplot-comint-mode' for the interaction buffer
12831283(define-derived-mode gnuplot-comint-mode comint-mode " Gnuplot interaction"
@@ -1324,7 +1324,7 @@ buffer."
13241324(defvar gnuplot-comint-mode-menu nil
13251325 " Menu for `gnuplot-comint-mode' ." )
13261326
1327- (defun gnuplot--make-gnuplot -buffer ()
1327+ (defun gnuplot--make-comint -buffer ()
13281328 " Switch to the gnuplot program buffer or create one if none exists."
13291329 (unless (and gnuplot-process (eq (process-status gnuplot-process) 'run )
13301330 gnuplot-buffer (buffer-live-p gnuplot-buffer))
@@ -1373,10 +1373,10 @@ STRING is the text as originally inserted in the comint buffer."
13731373This is very similar to `comint-delchar-or-maybe-eof' ."
13741374 (interactive " p" )
13751375 (if (eobp )
1376- (gnuplot-kill-gnuplot -buffer)
1376+ (gnuplot-kill-comint -buffer)
13771377 (delete-char arg)))
13781378
1379- (defun gnuplot-kill-gnuplot -buffer ()
1379+ (defun gnuplot-kill-comint -buffer ()
13801380 " Kill the gnuplot process and its display buffers."
13811381 (interactive )
13821382 (if (and gnuplot-process
@@ -1390,14 +1390,14 @@ This is very similar to `comint-delchar-or-maybe-eof'."
13901390 (setq gnuplot-process nil
13911391 gnuplot-buffer nil ))
13921392
1393- (defun gnuplot-show-gnuplot -buffer ()
1393+ (defun gnuplot-show-comint -buffer ()
13941394 " Switch to the buffer containing the gnuplot process.
13951395When `gnuplot-display-process' is nil this will switch to
13961396the gnuplot process buffer. When that variable is non-nil, the
13971397gnuplot process buffer will be displayed in a window."
13981398 (interactive )
13991399 (unless (and gnuplot-buffer (get-buffer gnuplot-buffer))
1400- (gnuplot--make-gnuplot -buffer))
1400+ (gnuplot--make-comint -buffer))
14011401 (cond ((equal gnuplot-display-process 'window )
14021402 (switch-to-buffer-other-window gnuplot-buffer))
14031403 ((equal gnuplot-display-process 'frame )
@@ -1995,7 +1995,7 @@ following in your .emacs file:
19951995(defun run-gnuplot ()
19961996 " Run an inferior Gnuplot process."
19971997 (interactive )
1998- (gnuplot--make-gnuplot -buffer)
1998+ (gnuplot--make-comint -buffer)
19991999 (pop-to-buffer gnuplot-buffer))
20002000
20012001;;;### autoload
@@ -2007,15 +2007,16 @@ following in your .emacs file:
20072007(define-obsolete-function-alias 'gnuplot-close-down #'gnuplot--close-down " 0.8.1" )
20082008(define-obsolete-function-alias 'gnuplot-continuation-line-p #'gnuplot--continuation-line-p " 0.8.1" )
20092009(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" )
20112011(define-obsolete-function-alias 'gnuplot-end-of-command #'gnuplot--end-of-command " 0.8.1" )
20122012(define-obsolete-function-alias 'gnuplot-end-of-continuation #'gnuplot--end-of-continuation " 0.8.1" )
20132013(define-obsolete-function-alias 'gnuplot-in-comment #'gnuplot--in-comment " 0.8.1" )
20142014(define-obsolete-function-alias 'gnuplot-in-string #'gnuplot--in-string " 0.8.1" )
20152015(define-obsolete-function-alias 'gnuplot-in-string-or-comment #'gnuplot--in-string-or-comment " 0.8.1" )
20162016(define-obsolete-function-alias 'gnuplot-inline-image-set-output #'gnuplot--inline-image-set-output " 0.8.1" )
20172017(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" )
20192020(define-obsolete-function-alias 'gnuplot-point-at-beginning-of-command #'gnuplot--point-at-beginning-of-command " 0.8.1" )
20202021(define-obsolete-function-alias 'gnuplot-point-at-beginning-of-continuation #'gnuplot--point-at-beginning-of-continuation " 0.8.1" )
20212022(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:
20252026(define-obsolete-function-alias 'gnuplot-set-keywords-list #'gnuplot--set-keywords-list " 0.8.1" )
20262027(define-obsolete-function-alias 'gnuplot-setup-comint-for-image-mode #'gnuplot--setup-comint-for-image-mode " 0.8.1" )
20272028(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" )
20282030(define-obsolete-function-alias 'gnuplot-split-string #'gnuplot--split-string " 0.8.1" )
20292031(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" )
20302033(make-obsolete-variable 'gnuplot-eldoc-mode " Toggle eldoc-mode" " 0.8.1" )
20312034(make-obsolete-variable 'gnuplot-tab-completion " Set tab-always-indent to 'complete" " 0.8.1" )
20322035
0 commit comments