]> git.eshelyaron.com Git - emacs.git/commitdiff
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-385
authorMiles Bader <miles@gnu.org>
Fri, 10 Jun 2005 10:43:42 +0000 (10:43 +0000)
committerMiles Bader <miles@gnu.org>
Fri, 10 Jun 2005 10:43:42 +0000 (10:43 +0000)
Remove "-face" suffix from calendar faces

2005-06-10  Miles Bader  <miles@gnu.org>

   * lisp/calendar/calendar.el (diary, calendar-today, holiday)
   (mark-visible-calendar-date): Remove "-face" suffix from face names.
   (diary-face, calendar-today-face, holiday-face):
   New backward-compatibility aliases for renamed faces.
   (eval-after-load "facemenu", diary-entry-marker)
   (calendar-today-marker, calendar-holiday-marker, diary-face):
   Use renamed calendar faces.

lisp/ChangeLog
lisp/calendar/calendar.el

index 7b1223f6762bced980a0b47ce2ac43960a37d040..b69d45d6e4f5a52fc71e2bd68b521c12c5d67472 100644 (file)
@@ -1,5 +1,13 @@
 2005-06-10  Miles Bader  <miles@gnu.org>
 
+       * calendar/calendar.el (diary, calendar-today, holiday)
+       (mark-visible-calendar-date): Remove "-face" suffix from face names.
+       (diary-face, calendar-today-face, holiday-face):
+       New backward-compatibility aliases for renamed faces.
+       (eval-after-load "facemenu", diary-entry-marker)
+       (calendar-today-marker, calendar-holiday-marker, diary-face):
+       Use renamed calendar faces.
+
        * compare-w.el (compare-windows): Remove "-face" suffix from face name.
        (compare-windows-face): New backward-compatibility alias for
        renamed face.
index fdf565c7923bd85a3f5be36d00ac9b34e1ac7163..9731d5354477284cd91b42714993b9799efdf232 100644 (file)
@@ -206,9 +206,9 @@ If nil, make an icon of the frame.  If non-nil, delete the frame."
   :type 'boolean
   :group 'view)
 
-(defvar diary-face 'diary-face
+(defvar diary-face 'diary
   "Face name to use for diary entries.")
-(defface diary-face
+(defface diary
   '((((min-colors 88) (class color) (background light))
      :foreground "red1")
     (((class color) (background light))
@@ -221,13 +221,17 @@ If nil, make an icon of the frame.  If non-nil, delete the frame."
      :weight bold))
   "Face for highlighting diary entries."
   :group 'diary)
+;; backward-compatibility alias
+(put 'diary-face 'face-alias 'diary)
 
-(defface calendar-today-face
+(defface calendar-today
   '((t (:underline t)))
   "Face for indicating today's date."
   :group 'diary)
+;; backward-compatibility alias
+(put 'calendar-today-face 'face-alias 'calendar-today)
 
-(defface holiday-face
+(defface holiday
   '((((class color) (background light))
      :background "pink")
     (((class color) (background dark))
@@ -236,17 +240,19 @@ If nil, make an icon of the frame.  If non-nil, delete the frame."
      :inverse-video t))
   "Face for indicating dates that have holidays."
   :group 'diary)
+;; backward-compatibility alias
+(put 'holiday-face 'face-alias 'holiday)
 
 (eval-after-load "facemenu"
   '(progn
-     (add-to-list 'facemenu-unlisted-faces 'diary-face)
-     (add-to-list 'facemenu-unlisted-faces 'calendar-today-face)
-     (add-to-list 'facemenu-unlisted-faces 'holiday-face)))
+     (add-to-list 'facemenu-unlisted-faces 'diary)
+     (add-to-list 'facemenu-unlisted-faces 'calendar-today)
+     (add-to-list 'facemenu-unlisted-faces 'holiday)))
 
 (defcustom diary-entry-marker
   (if (not (display-color-p))
       "+"
-    'diary-face)
+    'diary)
   "*How to mark dates that have diary entries.
 The value can be either a single-character string or a face."
   :type '(choice string face)
@@ -255,7 +261,7 @@ The value can be either a single-character string or a face."
 (defcustom calendar-today-marker
   (if (not (display-color-p))
       "="
-    'calendar-today-face)
+    'calendar-today)
   "*How to mark today's date in the calendar.
 The value can be either a single-character string or a face.
 Marking today's date is done only if you set up `today-visible-calendar-hook'
@@ -266,7 +272,7 @@ to request that."
 (defcustom calendar-holiday-marker
   (if (not (display-color-p))
       "*"
-    'holiday-face)
+    'holiday)
   "*How to mark notable dates in the calendar.
 The value can be either a single-character string or a face."
   :type '(choice string face)
@@ -2943,7 +2949,7 @@ MARK defaults to `diary-entry-marker'."
                   (forward-char -2))
               (let                      ; attr list
                   ((temp-face
-                    (make-symbol (apply 'concat "temp-face-"
+                    (make-symbol (apply 'concat "temp-"
                                         (mapcar '(lambda (sym)
                                                    (cond ((symbolp sym) (symbol-name sym))
                                                          ((numberp sym) (int-to-string sym))