aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2005-06-10 08:58:53 +0000
committerMiles Bader2005-06-10 08:58:53 +0000
commita335c06e06a305a5abeac1eb3a89f9ec53aa3021 (patch)
tree6c486f2c4028c035e1bd4c7095f4d37613ac61de
parenta01853d708e066ebed3557f3fcd005b265e164a8 (diff)
downloademacs-a335c06e06a305a5abeac1eb3a89f9ec53aa3021.tar.gz
emacs-a335c06e06a305a5abeac1eb3a89f9ec53aa3021.zip
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-378
Remove "-face" suffix from and downcase info faces 2005-06-10 Miles Bader <miles@gnu.org> * lisp/info.el (info-title-1, info-title-2, info-title-3) (info-title-4): Remove "-face" suffix from and downcase face names. (Info-title-1-face, Info-title-2-face, Info-title-3-face) (Info-title-4-face): New backward-compatibility aliases for renamed faces. (Info-fontify-node): Use renamed info faces.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/info.el38
2 files changed, 30 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e1034b4bfc3..f9868fd85ff 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,12 @@
12005-06-10 Miles Bader <miles@gnu.org> 12005-06-10 Miles Bader <miles@gnu.org>
2 2
3 * info.el (info-title-1, info-title-2, info-title-3)
4 (info-title-4): Remove "-face" suffix from and downcase face names.
5 (Info-title-1-face, Info-title-2-face, Info-title-3-face)
6 (Info-title-4-face):
7 New backward-compatibility aliases for renamed faces.
8 (Info-fontify-node): Use renamed info faces.
9
3 * hilit-chg.el (highlight-changes, highlight-changes-delete): 10 * hilit-chg.el (highlight-changes, highlight-changes-delete):
4 Remove "-face" suffix from face names. 11 Remove "-face" suffix from face names.
5 (highlight-changes-face, highlight-changes-delete-face): 12 (highlight-changes-face, highlight-changes-delete-face):
diff --git a/lisp/info.el b/lisp/info.el
index 4c6a0ea027d..b34fd013df3 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -3524,29 +3524,37 @@ the variable `Info-file-list-for-emacs'."
3524 (t 3524 (t
3525 (Info-goto-emacs-command-node command))))) 3525 (Info-goto-emacs-command-node command)))))
3526 3526
3527(defface Info-title-1-face 3527(defface info-title-1
3528 '((((type tty pc) (class color)) :foreground "green" :weight bold) 3528 '((((type tty pc) (class color)) :foreground "green" :weight bold)
3529 (t :height 1.2 :inherit Info-title-2-face)) 3529 (t :height 1.2 :inherit info-title-2))
3530 "Face for Info titles at level 1." 3530 "Face for info titles at level 1."
3531 :group 'info) 3531 :group 'info)
3532;; backward-compatibility alias
3533(put 'Info-title-1-face 'face-alias 'info-title-1)
3532 3534
3533(defface Info-title-2-face 3535(defface info-title-2
3534 '((((type tty pc) (class color)) :foreground "lightblue" :weight bold) 3536 '((((type tty pc) (class color)) :foreground "lightblue" :weight bold)
3535 (t :height 1.2 :inherit Info-title-3-face)) 3537 (t :height 1.2 :inherit info-title-3))
3536 "Face for Info titles at level 2." 3538 "Face for info titles at level 2."
3537 :group 'info) 3539 :group 'info)
3540;; backward-compatibility alias
3541(put 'Info-title-2-face 'face-alias 'info-title-2)
3538 3542
3539(defface Info-title-3-face 3543(defface info-title-3
3540 '((((type tty pc) (class color)) :weight bold) 3544 '((((type tty pc) (class color)) :weight bold)
3541 (t :height 1.2 :inherit Info-title-4-face)) 3545 (t :height 1.2 :inherit info-title-4))
3542 "Face for Info titles at level 3." 3546 "Face for info titles at level 3."
3543 :group 'info) 3547 :group 'info)
3548;; backward-compatibility alias
3549(put 'Info-title-3-face 'face-alias 'info-title-3)
3544 3550
3545(defface Info-title-4-face 3551(defface info-title-4
3546 '((((type tty pc) (class color)) :weight bold) 3552 '((((type tty pc) (class color)) :weight bold)
3547 (t :weight bold :inherit variable-pitch)) 3553 (t :weight bold :inherit variable-pitch))
3548 "Face for Info titles at level 4." 3554 "Face for info titles at level 4."
3549 :group 'info) 3555 :group 'info)
3556;; backward-compatibility alias
3557(put 'Info-title-4-face 'face-alias 'info-title-4)
3550 3558
3551(defface info-menu-header 3559(defface info-menu-header
3552 '((((type tty pc)) 3560 '((((type tty pc))
@@ -3686,10 +3694,10 @@ Preserve text properties."
3686 nil t) 3694 nil t)
3687 (let* ((c (preceding-char)) 3695 (let* ((c (preceding-char))
3688 (face 3696 (face
3689 (cond ((= c ?*) 'Info-title-1-face) 3697 (cond ((= c ?*) 'info-title-1)
3690 ((= c ?=) 'Info-title-2-face) 3698 ((= c ?=) 'info-title-2)
3691 ((= c ?-) 'Info-title-3-face) 3699 ((= c ?-) 'info-title-3)
3692 (t 'Info-title-4-face)))) 3700 (t 'info-title-4))))
3693 (put-text-property (match-beginning 1) (match-end 1) 3701 (put-text-property (match-beginning 1) (match-end 1)
3694 'font-lock-face face)) 3702 'font-lock-face face))
3695 ;; This is a serious problem for trying to handle multiple 3703 ;; This is a serious problem for trying to handle multiple