aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2003-01-18 15:32:16 +0000
committerJuanma Barranquero2003-01-18 15:32:16 +0000
commit5cc679abf39af50a947ff77542122aa9112bd1d4 (patch)
tree008587213b322665aba211b5585f6998150c0967
parentbc82cdfe1958d6be88df9657e9e311526882e271 (diff)
downloademacs-5cc679abf39af50a947ff77542122aa9112bd1d4.tar.gz
emacs-5cc679abf39af50a947ff77542122aa9112bd1d4.zip
Don't make faces depend on window-system.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/progmodes/cperl-mode.el88
2 files changed, 50 insertions, 48 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d6e2c1ed442..0c4a5902409 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12003-01-18 Vasily Korytov <deskpot@myrealbox.com> (tiny change)
2
3 * progmodes/cperl-mode.el: Don't make faces depend on window-system.
4
12003-01-18 Markus Rost <rost@math.ohio-state.edu> 52003-01-18 Markus Rost <rost@math.ohio-state.edu>
2 6
3 * cus-edit.el (customize-changed-options): Undo last doc change. 7 * cus-edit.el (customize-changed-options): Undo last doc change.
@@ -47,7 +51,7 @@
47 51
482003-01-15 Deepak Goel <deego@gnufans.org> 522003-01-15 Deepak Goel <deego@gnufans.org>
49 53
50 * calc/README: Add new maintainer. 54 * calc/README: Add new maintainer.
51 55
52 * calc/*: Ditto. 56 * calc/*: Ditto.
53 57
@@ -90,7 +94,7 @@
90 94
912003-01-14 Kim F. Storm <storm@cua.dk> 952003-01-14 Kim F. Storm <storm@cua.dk>
92 96
93 * ido.el (ido-read-internal, ido-file-internal) 97 * ido.el (ido-read-internal, ido-file-internal)
94 (ido-copy-current-file-name, ido-wide-find-dirs-or-files): 98 (ido-copy-current-file-name, ido-wide-find-dirs-or-files):
95 Don't use `path' as name of local variables holding a file name. 99 Don't use `path' as name of local variables holding a file name.
96 100
@@ -109,7 +113,7 @@
109 113
1102003-01-14 John Paul Wallington <jpw@shootybangbang.com> 1142003-01-14 John Paul Wallington <jpw@shootybangbang.com>
111 115
112 * apropos.el (apropos): Restore autoload cookie. Fix typo in 116 * apropos.el (apropos): Restore autoload cookie. Fix typo in
113 "error retrieving function documentation" output. 117 "error retrieving function documentation" output.
114 118
1152003-01-14 Kim F. Storm <storm@cua.dk> 1192003-01-14 Kim F. Storm <storm@cua.dk>
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index 49bd228e280..86147a2ca73 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -544,51 +544,49 @@ when syntaxifying a chunk of buffer."
544 (repeat symbol))))) 544 (repeat symbol)))))
545 :group 'cperl-faces) 545 :group 'cperl-faces)
546 546
547(if window-system 547(defvar cperl-dark-background
548 (progn 548 (cperl-choose-color "navy" "os2blue" "darkgreen"))
549 (defvar cperl-dark-background 549(defvar cperl-dark-foreground
550 (cperl-choose-color "navy" "os2blue" "darkgreen")) 550 (cperl-choose-color "orchid1" "orange"))
551 (defvar cperl-dark-foreground 551
552 (cperl-choose-color "orchid1" "orange")) 552(defface cperl-nonoverridable-face
553 553 `((((class grayscale) (background light))
554 (defface cperl-nonoverridable-face 554 (:background "Gray90" :slant italic :underline t))
555 `((((class grayscale) (background light)) 555 (((class grayscale) (background dark))
556 (:background "Gray90" :slant italic :underline t)) 556 (:foreground "Gray80" :slant italic :underline t :weight bold))
557 (((class grayscale) (background dark)) 557 (((class color) (background light))
558 (:foreground "Gray80" :slant italic :underline t :weight bold)) 558 (:foreground "chartreuse3"))
559 (((class color) (background light)) 559 (((class color) (background dark))
560 (:foreground "chartreuse3")) 560 (:foreground ,cperl-dark-foreground))
561 (((class color) (background dark)) 561 (t (:weight bold :underline t)))
562 (:foreground ,cperl-dark-foreground)) 562 "Font Lock mode face used to highlight array names."
563 (t (:weight bold :underline t))) 563 :group 'cperl-faces)
564 "Font Lock mode face used to highlight array names." 564
565 :group 'cperl-faces) 565(defface cperl-array-face
566 566 `((((class grayscale) (background light))
567 (defface cperl-array-face 567 (:background "Gray90" :weight bold))
568 `((((class grayscale) (background light)) 568 (((class grayscale) (background dark))
569 (:background "Gray90" :weight bold)) 569 (:foreground "Gray80" :weight bold))
570 (((class grayscale) (background dark)) 570 (((class color) (background light))
571 (:foreground "Gray80" :weight bold)) 571 (:foreground "Blue" :background "lightyellow2" :weight bold))
572 (((class color) (background light)) 572 (((class color) (background dark))
573 (:foreground "Blue" :background "lightyellow2" :weight bold)) 573 (:foreground "yellow" :background ,cperl-dark-background :weight bold))
574 (((class color) (background dark)) 574 (t (:weight bold)))
575 (:foreground "yellow" :background ,cperl-dark-background :weight bold)) 575 "Font Lock mode face used to highlight array names."
576 (t (:weight bold))) 576 :group 'cperl-faces)
577 "Font Lock mode face used to highlight array names." 577
578 :group 'cperl-faces) 578(defface cperl-hash-face
579 579 `((((class grayscale) (background light))
580 (defface cperl-hash-face 580 (:background "Gray90" :weight bold :slant italic))
581 `((((class grayscale) (background light)) 581 (((class grayscale) (background dark))
582 (:background "Gray90" :weight bold :slant italic)) 582 (:foreground "Gray80" :weight bold :slant italic))
583 (((class grayscale) (background dark)) 583 (((class color) (background light))
584 (:foreground "Gray80" :weight bold :slant italic)) 584 (:foreground "Red" :background "lightyellow2" :weight bold :slant italic))
585 (((class color) (background light)) 585 (((class color) (background dark))
586 (:foreground "Red" :background "lightyellow2" :weight bold :slant italic)) 586 (:foreground "Red" :background ,cperl-dark-background :weight bold :slant italic))
587 (((class color) (background dark)) 587 (t (:weight bold :slant italic)))
588 (:foreground "Red" :background ,cperl-dark-background :weight bold :slant italic)) 588 "Font Lock mode face used to highlight hash names."
589 (t (:weight bold :slant italic))) 589 :group 'cperl-faces)
590 "Font Lock mode face used to highlight hash names."
591 :group 'cperl-faces)))
592 590
593 591
594 592