diff options
| author | Glenn Morris | 2008-03-26 03:12:48 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-26 03:12:48 +0000 |
| commit | d2e009298d7df51b8dd0855848f16187eb886d07 (patch) | |
| tree | 1bceeb0b30589a7661f26f0e64416f34c28fc7ac | |
| parent | 73f7eb5970f108a508827ac6fab97cbda6a0d43a (diff) | |
| download | emacs-d2e009298d7df51b8dd0855848f16187eb886d07.tar.gz emacs-d2e009298d7df51b8dd0855848f16187eb886d07.zip | |
(calendar-after-frame-setup-hook): New name for
calendar-after-frame-setup-hooks. Update callers, make old name an
obsolete alias. Doc fix.
(calendar-frame-1): Doc fix.
| -rw-r--r-- | lisp/calendar/cal-x.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/calendar/cal-x.el b/lisp/calendar/cal-x.el index 653ce0e3caa..c87ecb9ce29 100644 --- a/lisp/calendar/cal-x.el +++ b/lisp/calendar/cal-x.el | |||
| @@ -68,12 +68,14 @@ Relevant if `calendar-setup' has the value `one-frame'." | |||
| 68 | (vertical-scroll-bars boolean)) | 68 | (vertical-scroll-bars boolean)) |
| 69 | :group 'calendar) | 69 | :group 'calendar) |
| 70 | 70 | ||
| 71 | (defcustom calendar-after-frame-setup-hooks nil | 71 | (defcustom calendar-after-frame-setup-hook nil |
| 72 | "Hooks to be run just after setting up a calendar frame. | 72 | "List of functions to be run after creating a calendar and/or diary frame." |
| 73 | Can be used to change frame parameters, such as font, color, location, etc." | ||
| 74 | :type 'hook | 73 | :type 'hook |
| 75 | :group 'calendar-hooks) | 74 | :group 'calendar-hooks) |
| 76 | 75 | ||
| 76 | (define-obsolete-variable-alias 'calendar-after-frame-setup-hooks | ||
| 77 | 'calendar-after-frame-setup-hook "23.1") | ||
| 78 | |||
| 77 | ;;; End of user options. | 79 | ;;; End of user options. |
| 78 | 80 | ||
| 79 | (defvar calendar-frame nil | 81 | (defvar calendar-frame nil |
| @@ -83,8 +85,9 @@ Can be used to change frame parameters, such as font, color, location, etc." | |||
| 83 | "Frame in which the diary was last displayed.") | 85 | "Frame in which the diary was last displayed.") |
| 84 | 86 | ||
| 85 | (defun calendar-frame-1 (frame) | 87 | (defun calendar-frame-1 (frame) |
| 86 | "Subroutine used by `calendar-frame-setup'." | 88 | "Subroutine used by `calendar-frame-setup'. |
| 87 | (run-hooks 'calendar-after-frame-setup-hooks) | 89 | Runs `calendar-after-frame-setup-hook', selects frame, iconifies if needed." |
| 90 | (run-hooks 'calendar-after-frame-setup-hook) | ||
| 88 | (select-frame frame) | 91 | (select-frame frame) |
| 89 | (if (eq 'icon (cdr (assoc 'visibility (frame-parameters frame)))) | 92 | (if (eq 'icon (cdr (assoc 'visibility (frame-parameters frame)))) |
| 90 | (iconify-or-deiconify-frame))) | 93 | (iconify-or-deiconify-frame))) |