diff options
| author | Miles Bader | 2005-06-10 10:44:01 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-06-10 10:44:01 +0000 |
| commit | ccacbcecfe27fb15f987627cc128816bc94ebd41 (patch) | |
| tree | c61477f1f67e972157c220fe3af35a6f3ffeb461 | |
| parent | 75eb05f6458f324e100ac5eaaca73257e0455bb5 (diff) | |
| download | emacs-ccacbcecfe27fb15f987627cc128816bc94ebd41.tar.gz emacs-ccacbcecfe27fb15f987627cc128816bc94ebd41.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-386
Remove "-face" suffix from diary-button face
2005-06-10 Miles Bader <miles@gnu.org>
* lisp/calendar/diary-lib.el (diary-button): Remove "-face" suffix from
face name.
(diary-button-face): New backward-compatibility alias for renamed face.
(diary-entry): Use renamed diary-button face.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b69d45d6e4f..2167a636680 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2005-06-10 Miles Bader <miles@gnu.org> | 1 | 2005-06-10 Miles Bader <miles@gnu.org> |
| 2 | 2 | ||
| 3 | * calendar/diary-lib.el (diary-button): Remove "-face" suffix from | ||
| 4 | face name. | ||
| 5 | (diary-button-face): New backward-compatibility alias for renamed face. | ||
| 6 | (diary-entry): Use renamed diary-button face. | ||
| 7 | |||
| 3 | * calendar/calendar.el (diary, calendar-today, holiday) | 8 | * calendar/calendar.el (diary, calendar-today, holiday) |
| 4 | (mark-visible-calendar-date): Remove "-face" suffix from face names. | 9 | (mark-visible-calendar-date): Remove "-face" suffix from face names. |
| 5 | (diary-face, calendar-today-face, holiday-face): | 10 | (diary-face, calendar-today-face, holiday-face): |
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index 6aec579c107..a0e9d1f90b7 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -543,15 +543,17 @@ changing the variable `diary-include-string'." | |||
| 543 | (set-window-start window (point-min)))) | 543 | (set-window-start window (point-min)))) |
| 544 | (message "Preparing diary...done")))) | 544 | (message "Preparing diary...done")))) |
| 545 | 545 | ||
| 546 | (defface diary-button-face '((((type pc) (class color)) | 546 | (defface diary-button '((((type pc) (class color)) |
| 547 | (:foreground "lightblue"))) | 547 | (:foreground "lightblue"))) |
| 548 | "Default face used for buttons." | 548 | "Default face used for buttons." |
| 549 | :version "22.1" | 549 | :version "22.1" |
| 550 | :group 'diary) | 550 | :group 'diary) |
| 551 | ;; backward-compatibility alias | ||
| 552 | (put 'diary-button-face 'face-alias 'diary-button) | ||
| 551 | 553 | ||
| 552 | (define-button-type 'diary-entry | 554 | (define-button-type 'diary-entry |
| 553 | 'action #'diary-goto-entry | 555 | 'action #'diary-goto-entry |
| 554 | 'face #'diary-button-face) | 556 | 'face 'diary-button) |
| 555 | 557 | ||
| 556 | (defun diary-goto-entry (button) | 558 | (defun diary-goto-entry (button) |
| 557 | (let ((marker (button-get button 'marker))) | 559 | (let ((marker (button-get button 'marker))) |