Skip to content

Commit 7dd9346

Browse files
committed
Remove gnuplot-prompt-face
Emacs highlights the prompt with comint-highlight-prompt
1 parent c6a19ec commit 7dd9346

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

gnuplot-gui.el

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,19 +1183,24 @@ into the buffer. TYPE is the object whose arguments are being set."
11831183
(gnuplot-gui-make-frame
11841184
option (cdr (assoc option gnuplot-gui-all-types)) save-frame) )
11851185

1186+
(defgroup gnuplot-gui-faces nil
1187+
"Text faces used by `gnuplot-gui'."
1188+
:prefix "gnuplot-gui-"
1189+
:group 'gnuplot-gui)
1190+
11861191
(defface gnuplot-gui-error-face '((((class color) (background light))
11871192
(:foreground "grey30"))
11881193
(((class color) (background dark))
11891194
(:foreground "grey70")))
11901195
"Face used to display message about unknown widget types."
1191-
:group 'gnuplot-faces)
1196+
:group 'gnuplot-gui-faces)
11921197

11931198
(defface gnuplot-gui-flat-text-face '((((class color) (background light))
11941199
(:foreground "MediumBlue"))
11951200
(((class color) (background dark))
11961201
(:foreground "LightSteelBlue")))
11971202
"Face used to display message about unknown widget types."
1198-
:group 'gnuplot-faces)
1203+
:group 'gnuplot-gui-faces)
11991204

12001205
(defun gnuplot-gui-make-frame (item alist &optional save-frame)
12011206
"Open the frame and populate it with widgets.
@@ -1375,23 +1380,23 @@ SAVE-FRAME is non-nil when the widgets are being reset."
13751380
(t
13761381
(:italic t)))
13771382
"Face used for menu-buttons."
1378-
:group 'gnuplot-faces)
1383+
:group 'gnuplot-gui-faces)
13791384
(defface gnuplot-gui-button-face '((((class color) (background light))
13801385
(:bold t :foreground "sienna"))
13811386
(((class color) (background dark))
13821387
(:bold t :foreground "tan"))
13831388
(t
13841389
(:italic t)))
13851390
"Face used for push-buttons."
1386-
:group 'gnuplot-faces)
1391+
:group 'gnuplot-gui-faces)
13871392
(defface gnuplot-gui-labels-face '((((class color) (background light))
13881393
(:bold t :foreground "darkslateblue"))
13891394
(((class color) (background dark))
13901395
(:bold t :foreground "lightslateblue"))
13911396
(t
13921397
(:italic t)))
13931398
"Face used for insert and delete button in the labels widget."
1394-
:group 'gnuplot-faces)
1399+
:group 'gnuplot-gui-faces)
13951400

13961401
(defun gnuplot-gui-menu-choice (item default list &optional starred)
13971402
"Create a menu widget for the Gnuplot GUI.

gnuplot.el

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -326,18 +326,6 @@ non-nil."
326326
:initialize #'custom-initialize-default
327327
:set #'gnuplot--set-display-mode)
328328

329-
(defgroup gnuplot-faces nil
330-
"Text faces used by `gnuplot-mode'."
331-
:prefix "gnuplot-"
332-
:group 'gnuplot)
333-
334-
(defface gnuplot-prompt-face '((((class color))
335-
(:foreground "firebrick"))
336-
(t
337-
(:bold t :underline t)))
338-
"Face used for the prompt in the gnuplot process buffer."
339-
:group 'gnuplot-faces)
340-
341329

342330
;;; --- key bindings and menus
343331

@@ -1353,7 +1341,6 @@ STRING is the text as originally inserted in the comint buffer."
13531341
(setq e (point))
13541342
(put-text-property b e 'rear-nonsticky '(read-only intangible face))
13551343
(put-text-property b e 'intangible t)
1356-
(put-text-property b e 'face 'gnuplot-prompt-face)
13571344
;;(put-text-property b e 'read-only t)
13581345
)))))
13591346

0 commit comments

Comments
 (0)