Skip to content

Commit 3b5472c

Browse files
committed
Reorder insertion defcustoms, remove :group
1 parent a055ee4 commit 3b5472c

File tree

1 file changed

+15
-27
lines changed

1 file changed

+15
-27
lines changed

gnuplot.el

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,6 @@
8181
:link '(info-link :tag "Info Manual" "(gnuplot)")
8282
:link '(emacs-commentary-link :tag "Commentary" "gnuplot.el"))
8383

84-
(defgroup gnuplot-insertions nil
85-
"Insert commands into gnuplot-scripts from a pull-down menu."
86-
:prefix "gnuplot-insertions-"
87-
:group 'gnuplot)
88-
8984
(defgroup gnuplot-hooks nil
9085
"Hook variables used by `gnuplot-mode'."
9186
:prefix "gnuplot-"
@@ -176,12 +171,6 @@ and start it again."
176171
:group 'gnuplot
177172
:type 'boolean)
178173

179-
(defcustom gnuplot-insertions-show-help-flag nil
180-
"Non-nil means to display certain help messages automatically.
181-
These messages are shown after menu insertion of gnuplot commands."
182-
:group 'gnuplot-insertions
183-
:type 'boolean)
184-
185174
(defcustom gnuplot-delay 0.02
186175
"Amount of time to delay before sending a new line to gnuplot.
187176
This is needed so that the the line is not written in the gnuplot
@@ -400,6 +389,11 @@ non-nil."
400389

401390
;;; --- insertions variables and menus
402391

392+
(defgroup gnuplot-insertions nil
393+
"Insert commands into gnuplot-scripts from a pull-down menu."
394+
:prefix "gnuplot-insertions-"
395+
:group 'gnuplot)
396+
403397
(defvar gnuplot--insertions-menu nil
404398
"Menu for insertions in `gnuplot-mode'.
405399
@@ -441,19 +435,23 @@ adding the \"regis\" terminal type to the terminal sub-menu:
441435
(gnuplot-insert \"set terminal regis\")
442436
t]))))")
443437

444-
(defvar gnuplot-insertions-top
445-
'("insert set expression" "---")
446-
"Top part of insertions menu.
447-
See the document string for `gnuplot--insertions-menu'")
438+
(defcustom gnuplot-insertions-show-help-flag nil
439+
"Non-nil means to display certain help messages automatically.
440+
These messages are shown after menu insertion of gnuplot commands."
441+
:type 'boolean)
448442

449443
(defcustom gnuplot-insertions-menu-flag t
450444
"Non-nil means to place the insertion menu in the menubar.
451445
Changing this will not effect a change in any currently existing
452446
`gnuplot-mode' buffer. You will see the change the next time you
453447
create a `gnuplot-mode' buffer."
454-
:group 'gnuplot-insertions
455448
:type 'boolean)
456449

450+
(defvar gnuplot-insertions-top
451+
'("insert set expression" "---")
452+
"Top part of insertions menu.
453+
See the document string for `gnuplot--insertions-menu'")
454+
457455
(defcustom gnuplot-insertions-adornments ; this is icky...
458456
'("adornments"
459457
["arrow" (gnuplot-insert "set arrow ") t]
@@ -479,7 +477,6 @@ See the document string for `gnuplot--insertions-menu'
479477
Changing this will not effect a change in any currently existing
480478
`gnuplot-mode' buffer. You will see the change the next time you
481479
create a `gnuplot-mode' buffer."
482-
:group 'gnuplot-insertions
483480
:type '(list (string :tag "Title")
484481
(repeat :inline t
485482
(vector (string :tag "Name")
@@ -505,7 +502,6 @@ See the document string for `gnuplot--insertions-menu'
505502
Changing this will not effect a change in any currently existing
506503
`gnuplot-mode' buffer. You will see the change the next time you
507504
create a `gnuplot-mode' buffer."
508-
:group 'gnuplot-insertions
509505
:type '(list (string :tag "Title")
510506
(repeat :inline t
511507
(vector (string :tag "Name")
@@ -535,7 +531,6 @@ See the document string for `gnuplot--insertions-menu'
535531
Changing this will not effect a change in any currently existing
536532
`gnuplot-mode' buffer. You will see the change the next time you
537533
create a `gnuplot-mode' buffer."
538-
:group 'gnuplot-insertions
539534
:type '(list (string :tag "Title")
540535
(repeat :inline t
541536
(vector (string :tag "Name")
@@ -557,7 +552,6 @@ See the document string for `gnuplot--insertions-menu'
557552
Changing this will not effect a change in any currently existing
558553
`gnuplot-mode' buffer. You will see the change the next time you
559554
create a `gnuplot-mode' buffer."
560-
:group 'gnuplot-insertions
561555
:type '(list (string :tag "Title")
562556
(repeat :inline t
563557
(vector (string :tag "Name")
@@ -579,7 +573,6 @@ See the document string for `gnuplot--insertions-menu'
579573
Changing this will not effect a change in any currently existing
580574
`gnuplot-mode' buffer. You will see the change the next time you
581575
create a `gnuplot-mode' buffer."
582-
:group 'gnuplot-insertions
583576
:type '(list (string :tag "Title")
584577
(repeat :inline t
585578
(vector (string :tag "Name")
@@ -601,7 +594,6 @@ See the document string for `gnuplot--insertions-menu'
601594
Changing this will not effect a change in any currently existing
602595
`gnuplot-mode' buffer. You will see the change the next time you
603596
create a `gnuplot-mode' buffer."
604-
:group 'gnuplot-insertions
605597
:type '(list (string :tag "Title")
606598
(repeat :inline t
607599
(vector (string :tag "Name")
@@ -623,7 +615,6 @@ See the document string for `gnuplot--insertions-menu'
623615
Changing this will not effect a change in any currently existing
624616
`gnuplot-mode' buffer. You will see the change the next time you
625617
create a `gnuplot-mode' buffer."
626-
:group 'gnuplot-insertions
627618
:type '(list (string :tag "Title")
628619
(repeat :inline t
629620
(vector (string :tag "Name")
@@ -644,7 +635,6 @@ See the document string for `gnuplot--insertions-menu'
644635
Changing this will not effect a change in any currently existing
645636
`gnuplot-mode' buffer. You will see the change the next time you
646637
create a `gnuplot-mode' buffer."
647-
:group 'gnuplot-insertions
648638
:type '(list (string :tag "Title")
649639
(repeat :inline t
650640
(vector (string :tag "Name")
@@ -664,7 +654,6 @@ See the document string for `gnuplot--insertions-menu'
664654
Changing this will not effect a change in any currently existing
665655
`gnuplot-mode' buffer. You will see the change the next time you
666656
create a `gnuplot-mode' buffer."
667-
:group 'gnuplot-insertions
668657
:type '(list (string :tag "Title")
669658
(repeat :inline t
670659
(vector (string :tag "Name")
@@ -681,7 +670,6 @@ See the document string for `gnuplot--insertions-menu'
681670
Changing this will not effect a change in any currently existing
682671
`gnuplot-mode' buffer. You will see the change the next time you
683672
create a `gnuplot-mode' buffer."
684-
:group 'gnuplot-insertions
685673
:type '(list (string :tag "Title")
686674
(repeat :inline t
687675
(vector (string :tag "Name")
@@ -703,7 +691,6 @@ See the document string for `gnuplot--insertions-menu'
703691
Changing this will not effect a change in any currently existing
704692
`gnuplot-mode' buffer. You will see the change the next time you
705693
create a `gnuplot-mode' buffer."
706-
:group 'gnuplot-insertions
707694
:type '(list (string :tag "Title")
708695
(repeat :inline t
709696
(vector (string :tag "Name")
@@ -756,6 +743,7 @@ opening an argument-setting popup.")
756743

757744
;;; --- syntax colorization, syntax table
758745

746+
(defvar gnuplot-mode-abbrev-table)
759747
(defvar gnuplot-mode-syntax-table
760748
(let ((table (make-syntax-table)))
761749
(modify-syntax-entry ?* "." table)

0 commit comments

Comments
 (0)