aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2005-06-14 23:20:55 +0000
committerMiles Bader2005-06-14 23:20:55 +0000
commit57267a95653775cd08890841b0e110405ccb6d41 (patch)
treefe7cb39737a9e7746706c58221cc657be8b8851e
parentded09abd8d271f642d52d373b7ff726cfaefdb4e (diff)
downloademacs-57267a95653775cd08890841b0e110405ccb6d41.tar.gz
emacs-57267a95653775cd08890841b0e110405ccb6d41.zip
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-413
Remove "-face" suffix from idlwave faces 2005-06-14 Miles Bader <miles@gnu.org> * lisp/progmodes/idlw-help.el (idlwave-help-link): Remove "-face" suffix from face name. (idlwave-help-link-face): New backward-compatibility alias for renamed face. (idlwave-highlight-linked-completions): Use renamed idlwave-help faces. * lisp/progmodes/idlw-shell.el (idlwave-shell-bp-face) (idlwave-shell-disabled-bp): Remove "-face" suffix from face names. (idlwave-shell-bp-face, idlwave-shell-disabled-bp): New backward-compatibility aliases for renamed faces. (idlwave-shell-disabled-breakpoint-face) (idlwave-shell-breakpoint-face): Use renamed idlwave-shell faces.
-rw-r--r--lisp/ChangeLog13
-rw-r--r--lisp/progmodes/idlw-help.el8
-rw-r--r--lisp/progmodes/idlw-shell.el44
3 files changed, 42 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c9e4d6ff8de..a510cb88590 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,18 @@
12005-06-14 Miles Bader <miles@gnu.org> 12005-06-14 Miles Bader <miles@gnu.org>
2 2
3 * progmodes/idlw-help.el (idlwave-help-link):
4 Remove "-face" suffix from face name.
5 (idlwave-help-link-face):
6 New backward-compatibility alias for renamed face.
7 (idlwave-highlight-linked-completions): Use renamed idlwave-help faces.
8
9 * progmodes/idlw-shell.el (idlwave-shell-bp-face)
10 (idlwave-shell-disabled-bp): Remove "-face" suffix from face names.
11 (idlwave-shell-bp-face, idlwave-shell-disabled-bp):
12 New backward-compatibility aliases for renamed faces.
13 (idlwave-shell-disabled-breakpoint-face)
14 (idlwave-shell-breakpoint-face): Use renamed idlwave-shell faces.
15
3 * progmodes/flymake.el (flymake-errline, flymake-warnline): 16 * progmodes/flymake.el (flymake-errline, flymake-warnline):
4 Remove "-face" suffix from face names. 17 Remove "-face" suffix from face names.
5 (flymake-errline-face, flymake-warnline-face): 18 (flymake-errline-face, flymake-warnline-face):
diff --git a/lisp/progmodes/idlw-help.el b/lisp/progmodes/idlw-help.el
index 6c2cb00bbde..ba31e6e0ef8 100644
--- a/lisp/progmodes/idlw-help.el
+++ b/lisp/progmodes/idlw-help.el
@@ -182,12 +182,14 @@ support."
182 :group 'idlwave-online-help 182 :group 'idlwave-online-help
183 :type 'string) 183 :type 'string)
184 184
185(defface idlwave-help-link-face 185(defface idlwave-help-link
186 '((((min-colors 88) (class color)) (:foreground "Blue1")) 186 '((((min-colors 88) (class color)) (:foreground "Blue1"))
187 (((class color)) (:foreground "Blue")) 187 (((class color)) (:foreground "Blue"))
188 (t (:weight bold))) 188 (t (:weight bold)))
189 "Face for highlighting links into IDLWAVE online help." 189 "Face for highlighting links into IDLWAVE online help."
190 :group 'idlwave-online-help) 190 :group 'idlwave-online-help)
191;; backward-compatibility alias
192(put 'idlwave-help-link-face 'face-alias 'idlwave-help-link)
191 193
192(defvar idlwave-help-activate-links-aggressively nil 194(defvar idlwave-help-activate-links-aggressively nil
193 "Obsolete variable.") 195 "Obsolete variable.")
@@ -586,12 +588,12 @@ Needs additional info stored in global `idlwave-completion-help-info'."
586(defun idlwave-highlight-linked-completions () 588(defun idlwave-highlight-linked-completions ()
587 "Highlight all completions for which help is available and attach link. 589 "Highlight all completions for which help is available and attach link.
588Those words in `idlwave-completion-help-links' have links. The 590Those words in `idlwave-completion-help-links' have links. The
589`idlwave-help-link-face' face is used for this." 591`idlwave-help-link' face is used for this."
590 (if idlwave-highlight-help-links-in-completion 592 (if idlwave-highlight-help-links-in-completion
591 (with-current-buffer (get-buffer "*Completions*") 593 (with-current-buffer (get-buffer "*Completions*")
592 (save-excursion 594 (save-excursion
593 (let* ((case-fold-search t) 595 (let* ((case-fold-search t)
594 (props (list 'face 'idlwave-help-link-face)) 596 (props (list 'face 'idlwave-help-link))
595 (info idlwave-completion-help-info) ; global passed in 597 (info idlwave-completion-help-info) ; global passed in
596 (what (nth 0 info)) ; what was completed, or a func 598 (what (nth 0 info)) ; what was completed, or a func
597 (class (nth 3 info)) ; any class 599 (class (nth 3 info)) ; any class
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index 19656238764..04e6a28ee40 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -510,40 +510,44 @@ t Glyph when possible, otherwise face (same effect as 'glyph)."
510(defvar idlwave-shell-use-breakpoint-glyph t 510(defvar idlwave-shell-use-breakpoint-glyph t
511 "Obsolete variable. See `idlwave-shell-mark-breakpoints.") 511 "Obsolete variable. See `idlwave-shell-mark-breakpoints.")
512 512
513(defcustom idlwave-shell-breakpoint-face 'idlwave-shell-bp-face 513(defcustom idlwave-shell-breakpoint-face 'idlwave-shell-bp
514 "*The face for breakpoint lines in the source code. 514 "*The face for breakpoint lines in the source code.
515Allows you to choose the font, color and other properties for 515Allows you to choose the font, color and other properties for
516lines which have a breakpoint. See also `idlwave-shell-mark-breakpoints'." 516lines which have a breakpoint. See also `idlwave-shell-mark-breakpoints'."
517 :group 'idlwave-shell-highlighting-and-faces 517 :group 'idlwave-shell-highlighting-and-faces
518 :type 'symbol) 518 :type 'symbol)
519 519
520(if idlwave-shell-have-new-custom 520(if (not idlwave-shell-have-new-custom)
521 ;; We have the new customize - use it to define a customizable face 521 ;; Just copy the underline face to be on the safe side.
522 (defface idlwave-shell-bp-face 522 (copy-face 'underline 'idlwave-shell-bp)
523 '((((class color)) (:foreground "Black" :background "Pink")) 523 ;; We have the new customize - use it to define a customizable face
524 (t (:underline t))) 524 (defface idlwave-shell-bp
525 "Face for highlighting lines with breakpoints." 525 '((((class color)) (:foreground "Black" :background "Pink"))
526 :group 'idlwave-shell-highlighting-and-faces) 526 (t (:underline t)))
527 ;; Just copy the underline face to be on the safe side. 527 "Face for highlighting lines with breakpoints."
528 (copy-face 'underline 'idlwave-shell-bp-face)) 528 :group 'idlwave-shell-highlighting-and-faces)
529 ;; backward-compatibility alias
530 (put 'idlwave-shell-bp-face 'face-alias 'idlwave-shell-bp))
529 531
530(defcustom idlwave-shell-disabled-breakpoint-face 532(defcustom idlwave-shell-disabled-breakpoint-face
531 'idlwave-shell-disabled-bp-face 533 'idlwave-shell-disabled-bp
532 "*The face for disabled breakpoint lines in the source code. 534 "*The face for disabled breakpoint lines in the source code.
533Allows you to choose the font, color and other properties for 535Allows you to choose the font, color and other properties for
534lines which have a breakpoint. See also `idlwave-shell-mark-breakpoints'." 536lines which have a breakpoint. See also `idlwave-shell-mark-breakpoints'."
535 :group 'idlwave-shell-highlighting-and-faces 537 :group 'idlwave-shell-highlighting-and-faces
536 :type 'symbol) 538 :type 'symbol)
537 539
538(if idlwave-shell-have-new-custom 540(if (not idlwave-shell-have-new-custom)
539 ;; We have the new customize - use it to define a customizable face 541 ;; Just copy the underline face to be on the safe side.
540 (defface idlwave-shell-disabled-bp-face 542 (copy-face 'underline 'idlwave-shell-disabled-bp)
541 '((((class color)) (:foreground "Black" :background "gray")) 543 ;; We have the new customize - use it to define a customizable face
542 (t (:underline t))) 544 (defface idlwave-shell-disabled-bp
543 "Face for highlighting lines with breakpoints." 545 '((((class color)) (:foreground "Black" :background "gray"))
544 :group 'idlwave-shell-highlighting-and-faces) 546 (t (:underline t)))
545 ;; Just copy the underline face to be on the safe side. 547 "Face for highlighting lines with breakpoints."
546 (copy-face 'underline 'idlwave-shell-disabled-bp-face)) 548 :group 'idlwave-shell-highlighting-and-faces)
549 ;; backward-compatibility alias
550 (put 'idlwave-shell-disabled-bp-face 'face-alias 'idlwave-shell-disabled-bp))
547 551
548 552
549(defcustom idlwave-shell-expression-face 'secondary-selection 553(defcustom idlwave-shell-expression-face 'secondary-selection