@@ -341,7 +341,7 @@ non-nil."
341
341
342
342
(defvar gnuplot-mode-menu nil )
343
343
344
- (defvar gnuplot-display-options-menu
344
+ (defvar gnuplot-- display-options-menu
345
345
(cl-flet ((make-image-setter (type)
346
346
`[,(concat (upcase type) " images" )
347
347
(lambda () (interactive ) (gnuplot-set-image-format , type ))
@@ -362,7 +362,7 @@ non-nil."
362
362
,@(mapcar #'make-image-setter (list " png" " jpeg" " svg" ))
363
363
[" Other image type..." gnuplot-set-image-format])))
364
364
365
- (defvar gnuplot-menu
365
+ (defvar gnuplot-- menu
366
366
`(" Gnuplot"
367
367
[" Send line to gnuplot" gnuplot-send-line-to-gnuplot t]
368
368
[" Send line & move forward" gnuplot-send-line-and-forward (not (eobp ))]
@@ -371,7 +371,7 @@ non-nil."
371
371
[" Send buffer to gnuplot" gnuplot-send-buffer-to-gnuplot t]
372
372
[" Send file to gnuplot" gnuplot-send-file-to-gnuplot t]
373
373
" ---"
374
- , gnuplot-display-options-menu
374
+ , gnuplot-- display-options-menu
375
375
[" Contextual completion and help" gnuplot-context-sensitive-mode
376
376
:style toggle
377
377
:selected gnuplot-context-sensitive-mode]
@@ -400,8 +400,8 @@ non-nil."
400
400
401
401
; ;; --- insertions variables and menus
402
402
403
- (defvar gnuplot-mode-insertions-menu nil )
404
- (defvar gnuplot-insertions-menu nil
403
+ (defvar gnuplot-- mode-insertions-menu nil )
404
+ (defvar gnuplot-- insertions-menu nil
405
405
" Menu for insertions in `gnuplot-mode' .
406
406
407
407
The insertions menu is composed of several sub-menus. The variables
@@ -444,7 +444,7 @@ adding the \"regis\" terminal type to the terminal sub-menu:
444
444
445
445
(defvar gnuplot-insertions-top ()
446
446
" Top part of insertions menu.
447
- See the document string for `gnuplot-insertions-menu' " )
447
+ See the document string for `gnuplot-- insertions-menu' " )
448
448
449
449
(defcustom gnuplot-insertions-menu-flag t
450
450
" Non-nil means to place the insertion menu in the menubar.
@@ -475,7 +475,7 @@ create a `gnuplot-mode' buffer."
475
475
[" zeroaxis" (gnuplot-insert " set zeroaxis" ) t])
476
476
477
477
" Adornments submenu in the insertions menu.
478
- See the document string for `gnuplot-insertions-menu'
478
+ See the document string for `gnuplot-- insertions-menu'
479
479
Changing this will not effect a change in any currently existing
480
480
`gnuplot-mode' buffer. You will see the change the next time you
481
481
create a `gnuplot-mode' buffer."
@@ -501,7 +501,7 @@ create a `gnuplot-mode' buffer."
501
501
[" output" (gnuplot-insert " set output " ) t]
502
502
[" zero" (gnuplot-insert " set zero " ) t])
503
503
" Plot options submenu in the insertions menu.
504
- See the document string for `gnuplot-insertions-menu'
504
+ See the document string for `gnuplot-- insertions-menu'
505
505
Changing this will not effect a change in any currently existing
506
506
`gnuplot-mode' buffer. You will see the change the next time you
507
507
create a `gnuplot-mode' buffer."
@@ -531,7 +531,7 @@ create a `gnuplot-mode' buffer."
531
531
[" vttek" (gnuplot-insert " set terminal vttek" ) t]
532
532
[" x11" (gnuplot-insert " set terminal x11" ) t])
533
533
" Terminal submenu in the insertions menu.
534
- See the document string for `gnuplot-insertions-menu'
534
+ See the document string for `gnuplot-- insertions-menu'
535
535
Changing this will not effect a change in any currently existing
536
536
`gnuplot-mode' buffer. You will see the change the next time you
537
537
create a `gnuplot-mode' buffer."
@@ -553,7 +553,7 @@ create a `gnuplot-mode' buffer."
553
553
[" xdtics" (gnuplot-insert " set xdtics " ) t]
554
554
[" xmtics" (gnuplot-insert " set xmtics " ) t])
555
555
" X-axis submenu in the insertions menu.
556
- See the document string for `gnuplot-insertions-menu'
556
+ See the document string for `gnuplot-- insertions-menu'
557
557
Changing this will not effect a change in any currently existing
558
558
`gnuplot-mode' buffer. You will see the change the next time you
559
559
create a `gnuplot-mode' buffer."
@@ -575,7 +575,7 @@ create a `gnuplot-mode' buffer."
575
575
[" x2dtics" (gnuplot-insert " set xdtics " ) t]
576
576
[" x2mtics" (gnuplot-insert " set xmtics " ) t])
577
577
" X2-axis submenu in the insertions menu.
578
- See the document string for `gnuplot-insertions-menu'
578
+ See the document string for `gnuplot-- insertions-menu'
579
579
Changing this will not effect a change in any currently existing
580
580
`gnuplot-mode' buffer. You will see the change the next time you
581
581
create a `gnuplot-mode' buffer."
@@ -597,7 +597,7 @@ create a `gnuplot-mode' buffer."
597
597
[" ydtics" (gnuplot-insert " set ydtics " ) t]
598
598
[" mytics" (gnuplot-insert " set mytics " ) t])
599
599
" Y-axis submenu in the insertions menu.
600
- See the document string for `gnuplot-insertions-menu'
600
+ See the document string for `gnuplot-- insertions-menu'
601
601
Changing this will not effect a change in any currently existing
602
602
`gnuplot-mode' buffer. You will see the change the next time you
603
603
create a `gnuplot-mode' buffer."
@@ -619,7 +619,7 @@ create a `gnuplot-mode' buffer."
619
619
[" y2mtics" (gnuplot-insert " set ymtics " ) t]
620
620
[" y2dtics" (gnuplot-insert " set ydtics " ) t])
621
621
" Y2-axis submenu in the insertions menu.
622
- See the document string for `gnuplot-insertions-menu'
622
+ See the document string for `gnuplot-- insertions-menu'
623
623
Changing this will not effect a change in any currently existing
624
624
`gnuplot-mode' buffer. You will see the change the next time you
625
625
create a `gnuplot-mode' buffer."
@@ -640,7 +640,7 @@ create a `gnuplot-mode' buffer."
640
640
[" zdtics" (gnuplot-insert " set zdtics " ) t]
641
641
[" zmtics" (gnuplot-insert " set zmtics " ) t])
642
642
" Z-axis submenu in the insertions menu.
643
- See the document string for `gnuplot-insertions-menu'
643
+ See the document string for `gnuplot-- insertions-menu'
644
644
Changing this will not effect a change in any currently existing
645
645
`gnuplot-mode' buffer. You will see the change the next time you
646
646
create a `gnuplot-mode' buffer."
@@ -660,7 +660,7 @@ create a `gnuplot-mode' buffer."
660
660
[" urange" (gnuplot-insert " set urange [:]" ) t]
661
661
[" vrange" (gnuplot-insert " set vrange [:]" ) t])
662
662
" Parametric plots submenu in the insertions menu.
663
- See the document string for `gnuplot-insertions-menu'
663
+ See the document string for `gnuplot-- insertions-menu'
664
664
Changing this will not effect a change in any currently existing
665
665
`gnuplot-mode' buffer. You will see the change the next time you
666
666
create a `gnuplot-mode' buffer."
@@ -677,7 +677,7 @@ create a `gnuplot-mode' buffer."
677
677
[" angles" (gnuplot-insert " set angles " ) t]
678
678
[" rrange" (gnuplot-insert " set rrange [:]" ) t])
679
679
" Polar plots submenu in the insertions menu.
680
- See the document string for `gnuplot-insertions-menu'
680
+ See the document string for `gnuplot-- insertions-menu'
681
681
Changing this will not effect a change in any currently existing
682
682
`gnuplot-mode' buffer. You will see the change the next time you
683
683
create a `gnuplot-mode' buffer."
@@ -699,7 +699,7 @@ create a `gnuplot-mode' buffer."
699
699
[" surface" (gnuplot-insert " set surface " ) t]
700
700
[" view" (gnuplot-insert " set view " ) t])
701
701
" Surface plots submenu in the insertions menu.
702
- See the document string for `gnuplot-insertions-menu'
702
+ See the document string for `gnuplot-- insertions-menu'
703
703
Changing this will not effect a change in any currently existing
704
704
`gnuplot-mode' buffer. You will see the change the next time you
705
705
create a `gnuplot-mode' buffer."
@@ -726,7 +726,7 @@ opening an argument-setting popup.")
726
726
(when gnuplot-insertions-menu-flag
727
727
(setq gnuplot-insertions-top
728
728
'(" insert set expression" " ---" ))
729
- (setq gnuplot-insertions-menu
729
+ (setq gnuplot-- insertions-menu
730
730
(append (list " Insertions" )
731
731
gnuplot-insertions-top
732
732
(list gnuplot-insertions-adornments)
@@ -741,12 +741,12 @@ opening an argument-setting popup.")
741
741
(list gnuplot-insertions-polar-plots)
742
742
(list gnuplot-insertions-surface-plots)
743
743
gnuplot-insertions-bottom))
744
- (easy-menu-define gnuplot-mode-insertions-menu gnuplot-mode-map
744
+ (easy-menu-define gnuplot-- mode-insertions-menu gnuplot-mode-map
745
745
" Insertions menu used in Gnuplot-mode"
746
- gnuplot-insertions-menu))
746
+ gnuplot-- insertions-menu))
747
747
(easy-menu-define ; set up gnuplot menu
748
748
gnuplot-mode-menu gnuplot-mode-map " Menu used in gnuplot-mode"
749
- gnuplot-menu))
749
+ gnuplot-- menu))
750
750
751
751
(defun gnuplot--mark-active ()
752
752
" Return non-nil if the mark is active and it is not equal to point."
@@ -795,7 +795,7 @@ characters.")
795
795
`(regexp-opt , list 'words ))
796
796
797
797
; ; Lists of gnuplot keywords for syntax coloring etc.
798
- (defvar gnuplot-keywords-builtin-functions
798
+ (defvar gnuplot-- keywords-builtin-functions
799
799
'(" abs" " acosh" " acos" " arg" " asinh" " asin" " atan" " atanh" " atan2" " besj1"
800
800
" besj0" " besy1" " besy0" " ceil" " column" " cosh" " cos" " erfc" " erf" " exp"
801
801
" floor" " gamma" " ibeta" " igamma" " imag" " int" " inverf" " invnorm" " lgamma"
@@ -809,7 +809,7 @@ characters.")
809
809
810
810
These are highlighted using `font-lock-function-name-face' ." )
811
811
812
- (defvar gnuplot-keywords-plotting
812
+ (defvar gnuplot-- keywords-plotting
813
813
'(" axes" " every" " index" " lw" " lt" " ls" " linestyle" " linetype" " linewidth"
814
814
" notitle" " pt" " ps" " pointsize" " pointtype" " smooth" " thru" " title" " using"
815
815
" with" " noautoscale" " volatile" " matrix" " nonuniform" " binary" " fillstyle"
@@ -818,9 +818,9 @@ These are highlighted using `font-lock-function-name-face'.")
818
818
819
819
These are highlighted using `font-lock-type-face' .
820
820
This list does not include plotting styles -- for that, see
821
- `gnuplot-keywords-plotting-styles' " )
821
+ `gnuplot-- keywords-plotting-styles' " )
822
822
823
- (defvar gnuplot-keywords-plotting-styles
823
+ (defvar gnuplot-- keywords-plotting-styles
824
824
'(" boxerrorbars" " boxes" " boxxyerrorbars" " candlesticks" " dots" " errorbars"
825
825
" financebars" " fsteps" " histeps" " impulses" " lines" " linespoints" " points"
826
826
" steps" " vector" " xerrorbars" " xyerrorbars" " yerrorbars" " vectors"
@@ -831,7 +831,7 @@ This list does not include plotting styles -- for that, see
831
831
832
832
These are highlighted using `font-lock-function-name-face' ." )
833
833
834
- (defvar gnuplot-keywords-misc
834
+ (defvar gnuplot-- keywords-misc
835
835
'(" bind" " cd" " clear" " exit" " fit" " help" " history" " load" " pause" " print"
836
836
" pwd" " quit" " replot" " save" " set" " show" " unset" " if" " else" " do" " update"
837
837
" undefine" " test" " system" " raise" " lower" " eval" " shell" " reset" " reread"
@@ -840,7 +840,7 @@ These are highlighted using `font-lock-function-name-face'.")
840
840
841
841
These are highlighted using `font-lock-constant-face' ." )
842
842
843
- (defvar gnuplot-keywords-negatable-options
843
+ (defvar gnuplot-- keywords-negatable-options
844
844
'(" arrow" " autoscale" " border" " clabel" " clip" " contour" " dgrid3d" " grid"
845
845
" hidden3d" " historysize" " key" " label" " linestyle" " logscale" " mouse"
846
846
" multiplot" " mx2tics" " mxtics" " my2tics" " mytics" " mztics" " offsets" " polar"
@@ -852,7 +852,7 @@ These are highlighted using `font-lock-constant-face'.")
852
852
" List of gnuplot options which can be negated using `gnuplot-negate-option' ." )
853
853
854
854
(defvar gnuplot-negatable-options-regexp
855
- (gnuplot--make-regexp gnuplot-keywords-negatable-options))
855
+ (gnuplot--make-regexp gnuplot-- keywords-negatable-options))
856
856
857
857
; ; Set up colorization for gnuplot.
858
858
(defvar gnuplot-font-lock-keywords
@@ -864,13 +864,13 @@ These are highlighted using `font-lock-constant-face'.")
864
864
(1 'font-lock-variable-name-face ))
865
865
866
866
; ; built-in function names
867
- (,(gnuplot--make-regexp gnuplot-keywords-builtin-functions)
867
+ (,(gnuplot--make-regexp gnuplot-- keywords-builtin-functions)
868
868
(0 'font-lock-function-name-face ))
869
869
870
870
; ; reserved words associated with plotting
871
- (,(gnuplot--make-regexp gnuplot-keywords-plotting)
871
+ (,(gnuplot--make-regexp gnuplot-- keywords-plotting)
872
872
(0 'font-lock-type-face ))
873
- (,(gnuplot--make-regexp gnuplot-keywords-plotting-styles)
873
+ (,(gnuplot--make-regexp gnuplot-- keywords-plotting-styles)
874
874
(0 'font-lock-function-name-face ))
875
875
876
876
; ; (s)plot -- also thing (s)plotted
@@ -879,7 +879,7 @@ These are highlighted using `font-lock-constant-face'.")
879
879
; ; (1 'font-lock-variable-name-face))
880
880
881
881
; ; other common commands
882
- (,(gnuplot--make-regexp gnuplot-keywords-misc)
882
+ (,(gnuplot--make-regexp gnuplot-- keywords-misc)
883
883
(0 'font-lock-constant-face ))
884
884
(" !.*$" (0 'font-lock-constant-face ))))
885
885
@@ -1209,14 +1209,14 @@ this function is attached to `gnuplot-after-plot-hook'"
1209
1209
; ;; --- functions controlling the gnuplot process
1210
1210
1211
1211
; ; Menu for the comint-mode buffer
1212
- (defvar gnuplot-comint-menu
1212
+ (defvar gnuplot-- comint-menu
1213
1213
`(" Gnuplot"
1214
1214
[" Plot most recent gnuplot buffer" gnuplot-plot-from-comint
1215
1215
(buffer-live-p gnuplot--comint-recent-buffer)]
1216
1216
[" Save and plot most recent gnuplot buffer" gnuplot-save-and-plot-from-comint
1217
1217
(buffer-live-p gnuplot--comint-recent-buffer)]
1218
1218
" ---"
1219
- , gnuplot-display-options-menu
1219
+ , gnuplot-- display-options-menu
1220
1220
[" Contextual completion and help" gnuplot-context-sensitive-mode
1221
1221
:style toggle
1222
1222
:selected gnuplot-context-sensitive-mode]
@@ -1268,7 +1268,7 @@ buffer."
1268
1268
; ; Set up menu (see below)
1269
1269
(easy-menu-define
1270
1270
gnuplot-comint-mode-menu gnuplot-comint-mode-map " Menu used in gnuplot-comint-mode"
1271
- gnuplot-comint-menu))
1271
+ gnuplot-- comint-menu))
1272
1272
1273
1273
; ; Key bindings for gnuplot-comint-mode
1274
1274
(define-key gnuplot-comint-mode-map " \M -\C -p" #'gnuplot-plot-from-comint )
@@ -1299,7 +1299,7 @@ buffer."
1299
1299
(sleep-for (* 10 gnuplot-delay))
1300
1300
(gnuplot--setup-comint-for-image-mode)))))
1301
1301
1302
- (defvar gnuplot-prompt-regexp
1302
+ (defvar gnuplot-- prompt-regexp
1303
1303
(regexp-opt '(" gnuplot> " " multiplot> " ))
1304
1304
" Regexp for recognizing the GNUPLOT prompt." )
1305
1305
@@ -1310,7 +1310,7 @@ STRING is the text as originally inserted in the comint buffer."
1310
1310
(goto-char (point-max ))
1311
1311
(beginning-of-line )
1312
1312
(let ((b (point )) e)
1313
- (when (re-search-forward gnuplot-prompt-regexp (point-max ) t )
1313
+ (when (re-search-forward gnuplot-- prompt-regexp (point-max ) t )
1314
1314
(setq e (point ))
1315
1315
(put-text-property b e 'rear-nonsticky '(read-only intangible face))
1316
1316
(put-text-property b e 'intangible t )
@@ -1368,7 +1368,7 @@ gnuplot process buffer will be displayed in a window."
1368
1368
1369
1369
; ;; Support for displaying plotted images within Emacs
1370
1370
1371
- (defvar gnuplot-inline-image-filename nil
1371
+ (defvar gnuplot-- inline-image-filename nil
1372
1372
" Name of the current Gnuplot output file." )
1373
1373
1374
1374
(defvar gnuplot-image-buffer-name " *gnuplot output*" )
@@ -1411,9 +1411,9 @@ gnuplot process buffer will be displayed in a window."
1411
1411
#'gnuplot--insert-inline-image-output t )))))
1412
1412
1413
1413
(defun gnuplot--inline-image-set-output ()
1414
- " Set Gnuplot's output file to `gnuplot-inline-image-filename' ."
1414
+ " Set Gnuplot's output file to `gnuplot-- inline-image-filename' ."
1415
1415
(let ((tmp (make-temp-file " gnuplot" )))
1416
- (setq gnuplot-inline-image-filename tmp)
1416
+ (setq gnuplot-- inline-image-filename tmp)
1417
1417
(gnuplot-send-hiding-output (format " set output '%s '\n " tmp))))
1418
1418
1419
1419
(defvar gnuplot--inhibit-filter nil )
@@ -1423,17 +1423,17 @@ gnuplot process buffer will be displayed in a window."
1423
1423
1424
1424
Called via `comint-preoutput-filter-functions' hook when
1425
1425
`gnuplot-inline-image-mode' is enabled. Checks the status of the
1426
- file `gnuplot-inline-image-filename' ; if it exists and has
1426
+ file `gnuplot-- inline-image-filename' ; if it exists and has
1427
1427
nonzero size, inserts it as an inline image, stores a new
1428
- temporary filename in `gnuplot-inline-image-filename' , and
1428
+ temporary filename in `gnuplot-- inline-image-filename' , and
1429
1429
updates Gnuplot with the appropriate \" set output\" command."
1430
1430
(unless gnuplot--inhibit-filter ; Prevent recursively entering this filter
1431
1431
(let ((gnuplot--inhibit-filter t )) ; (causing an infinite loop)
1432
1432
(save-excursion
1433
1433
(goto-char (point-max ))
1434
1434
(beginning-of-line )
1435
- (when (looking-at gnuplot-prompt-regexp)
1436
- (let* ((filename gnuplot-inline-image-filename)
1435
+ (when (looking-at gnuplot-- prompt-regexp)
1436
+ (let* ((filename gnuplot-- inline-image-filename)
1437
1437
(size (nth 7 (file-attributes filename))))
1438
1438
(when (and size (> size 0 ))
1439
1439
(gnuplot-send-hiding-output " set output\n " ) ; Flush output file
@@ -1458,7 +1458,7 @@ updates Gnuplot with the appropriate \"set output\" command."
1458
1458
(gnuplot--inline-image-set-output))))))))))))
1459
1459
1460
1460
; ;; Send commands to GNUPLOT silently & without generating an extra prompt
1461
- (defvar gnuplot-hidden-output-buffer " *gnuplot output *" )
1461
+ (defvar gnuplot-hidden-output-buffer " *gnuplot hidden *" )
1462
1462
1463
1463
(defun gnuplot-send-hiding-output (string )
1464
1464
" Send STRING to the running Gnuplot process invisibly."
@@ -1476,7 +1476,7 @@ then removes itself from `comint-preoutput-filter-functions'."
1476
1476
(with-current-buffer
1477
1477
(get-buffer-create gnuplot-hidden-output-buffer)
1478
1478
(insert string)
1479
- (when (looking-back gnuplot-prompt-regexp (point-min ))
1479
+ (when (looking-back gnuplot-- prompt-regexp (point-min ))
1480
1480
(with-current-buffer gnuplot-buffer
1481
1481
(remove-hook 'comint-preoutput-filter-functions
1482
1482
#'gnuplot--discard-output t ))))
@@ -1668,7 +1668,7 @@ ARG is optional arg."
1668
1668
" Append \" no\" to or remove \" no\" from the set option on the current line.
1669
1669
This checks if the set option is one which has a negated form.
1670
1670
1671
- Negatable options are defined in `gnuplot-keywords-negatable-options' ."
1671
+ Negatable options are defined in `gnuplot-- keywords-negatable-options' ."
1672
1672
(interactive nil gnuplot-mode gnuplot-comint-mode)
1673
1673
(let ((begin (gnuplot--point-at-beginning-of-command))
1674
1674
(end (gnuplot--point-at-end-of-command))
@@ -1853,11 +1853,11 @@ Report bugs at https://github.com/emacs-gnuplot/gnuplot/issues
1853
1853
------O------
1854
1854
1855
1855
Gnuplot-mode includes two different systems for keyword completion and
1856
- documentation lookup: a newer one, `gnuplot-context-sensitive-mode'
1857
- ( enabled by default) , and a older one which extracts keywords from
1858
- gnuplot's Info file. Both systems allow looking up documentation in the
1859
- Info file. With the context-sensitive mode active, `gnuplot-mode' can
1860
- also provide Eldoc syntax hints as you type.
1856
+ documentation lookup: a newer one, `gnuplot-context-sensitive-mode' ,
1857
+ which is enabled by default, and a older one which extracts keywords
1858
+ from gnuplot's Info file. Both systems allow looking up documentation
1859
+ in the Info file. With the context-sensitive mode active,
1860
+ `gnuplot-mode' can also provide Eldoc syntax hints as you type.
1861
1861
1862
1862
------O------
1863
1863
0 commit comments