diff options
| author | Glenn Morris | 2007-11-24 21:40:02 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-24 21:40:02 +0000 |
| commit | 40f79f5b3c95ea15758d6cd58669860fe2d00d2b (patch) | |
| tree | c9c0a39f3e16a830b5f731e97971aca2c1ad77f4 /lisp | |
| parent | c6d48e4781164219396c224c2e969b4a9055da3f (diff) | |
| download | emacs-40f79f5b3c95ea15758d6cd58669860fe2d00d2b.tar.gz emacs-40f79f5b3c95ea15758d6cd58669860fe2d00d2b.zip | |
Remove leading `*' from defcustom doc-strings.
(appt-disp-window): Don't require electric. Remove
minibuffer-avoidance code, since appt-select-lowest-window does that.
(appt-select-lowest-window): Avoid minibuffer.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/appt.el | 32 |
2 files changed, 15 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 207cd2ba639..b8232d98073 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2007-11-24 Glenn Morris <rgm@gnu.org> | 1 | 2007-11-24 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * calendar/appt.el: Remove leading `*' from defcustom doc-strings. | ||
| 4 | (appt-disp-window): Don't require electric. Remove | ||
| 5 | minibuffer-avoidance code, since appt-select-lowest-window does that. | ||
| 6 | (appt-select-lowest-window): Avoid minibuffer. | ||
| 7 | |||
| 3 | * eshell/eshell.el: Remove leading `*' from defcustom doc-strings. | 8 | * eshell/eshell.el: Remove leading `*' from defcustom doc-strings. |
| 4 | (esh-mode): Require it. | 9 | (esh-mode): Require it. |
| 5 | (esh-util): Use require rather than featurep and load. | 10 | (esh-util): Use require rather than featurep and load. |
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el index 94df068b012..0c8b9b19188 100644 --- a/lisp/calendar/appt.el +++ b/lisp/calendar/appt.el | |||
| @@ -82,7 +82,7 @@ | |||
| 82 | 82 | ||
| 83 | ;;;###autoload | 83 | ;;;###autoload |
| 84 | (defcustom appt-issue-message t | 84 | (defcustom appt-issue-message t |
| 85 | "*Non-nil means check for appointments in the diary buffer. | 85 | "Non-nil means check for appointments in the diary buffer. |
| 86 | To be detected, the diary entry must have the format described in the | 86 | To be detected, the diary entry must have the format described in the |
| 87 | documentation of the function `appt-check'." | 87 | documentation of the function `appt-check'." |
| 88 | :type 'boolean | 88 | :type 'boolean |
| @@ -94,19 +94,19 @@ variable `appt-display-format' instead." "22.1") | |||
| 94 | 94 | ||
| 95 | ;;;###autoload | 95 | ;;;###autoload |
| 96 | (defcustom appt-message-warning-time 12 | 96 | (defcustom appt-message-warning-time 12 |
| 97 | "*Time in minutes before an appointment that the warning begins." | 97 | "Time in minutes before an appointment that the warning begins." |
| 98 | :type 'integer | 98 | :type 'integer |
| 99 | :group 'appt) | 99 | :group 'appt) |
| 100 | 100 | ||
| 101 | ;;;###autoload | 101 | ;;;###autoload |
| 102 | (defcustom appt-audible t | 102 | (defcustom appt-audible t |
| 103 | "*Non-nil means beep to indicate appointment." | 103 | "Non-nil means beep to indicate appointment." |
| 104 | :type 'boolean | 104 | :type 'boolean |
| 105 | :group 'appt) | 105 | :group 'appt) |
| 106 | 106 | ||
| 107 | ;;;###autoload | 107 | ;;;###autoload |
| 108 | (defcustom appt-visible t | 108 | (defcustom appt-visible t |
| 109 | "*Non-nil means display appointment message in echo area. | 109 | "Non-nil means display appointment message in echo area. |
| 110 | This variable is only relevant if `appt-msg-window' is nil." | 110 | This variable is only relevant if `appt-msg-window' is nil." |
| 111 | :type 'boolean | 111 | :type 'boolean |
| 112 | :group 'appt) | 112 | :group 'appt) |
| @@ -115,7 +115,7 @@ This variable is only relevant if `appt-msg-window' is nil." | |||
| 115 | 115 | ||
| 116 | ;;;###autoload | 116 | ;;;###autoload |
| 117 | (defcustom appt-msg-window t | 117 | (defcustom appt-msg-window t |
| 118 | "*Non-nil means display appointment message in another window. | 118 | "Non-nil means display appointment message in another window. |
| 119 | If non-nil, this variable overrides `appt-visible'." | 119 | If non-nil, this variable overrides `appt-visible'." |
| 120 | :type 'boolean | 120 | :type 'boolean |
| 121 | :group 'appt) | 121 | :group 'appt) |
| @@ -144,27 +144,27 @@ of the (obsolete) variables `appt-msg-window' and `appt-visible'." | |||
| 144 | 144 | ||
| 145 | ;;;###autoload | 145 | ;;;###autoload |
| 146 | (defcustom appt-display-mode-line t | 146 | (defcustom appt-display-mode-line t |
| 147 | "*Non-nil means display minutes to appointment and time on the mode line. | 147 | "Non-nil means display minutes to appointment and time on the mode line. |
| 148 | This is in addition to any other display of appointment messages." | 148 | This is in addition to any other display of appointment messages." |
| 149 | :type 'boolean | 149 | :type 'boolean |
| 150 | :group 'appt) | 150 | :group 'appt) |
| 151 | 151 | ||
| 152 | ;;;###autoload | 152 | ;;;###autoload |
| 153 | (defcustom appt-display-duration 10 | 153 | (defcustom appt-display-duration 10 |
| 154 | "*The number of seconds an appointment message is displayed. | 154 | "The number of seconds an appointment message is displayed. |
| 155 | Only relevant if reminders are to be displayed in their own window." | 155 | Only relevant if reminders are to be displayed in their own window." |
| 156 | :type 'integer | 156 | :type 'integer |
| 157 | :group 'appt) | 157 | :group 'appt) |
| 158 | 158 | ||
| 159 | ;;;###autoload | 159 | ;;;###autoload |
| 160 | (defcustom appt-display-diary t | 160 | (defcustom appt-display-diary t |
| 161 | "*Non-nil displays the diary when the appointment list is first initialized. | 161 | "Non-nil displays the diary when the appointment list is first initialized. |
| 162 | This will occur at midnight when the appointment list is updated." | 162 | This will occur at midnight when the appointment list is updated." |
| 163 | :type 'boolean | 163 | :type 'boolean |
| 164 | :group 'appt) | 164 | :group 'appt) |
| 165 | 165 | ||
| 166 | (defcustom appt-display-interval 3 | 166 | (defcustom appt-display-interval 3 |
| 167 | "*Number of minutes to wait between checking the appointment list." | 167 | "Number of minutes to wait between checking the appointment list." |
| 168 | :type 'integer | 168 | :type 'integer |
| 169 | :group 'appt) | 169 | :group 'appt) |
| 170 | 170 | ||
| @@ -436,20 +436,8 @@ displayed in a window: | |||
| 436 | "Display appointment message APPT-MSG in a separate buffer. | 436 | "Display appointment message APPT-MSG in a separate buffer. |
| 437 | The appointment is due in MIN-TO-APP (a string) minutes. | 437 | The appointment is due in MIN-TO-APP (a string) minutes. |
| 438 | NEW-TIME is a string giving the date." | 438 | NEW-TIME is a string giving the date." |
| 439 | (require 'electric) | ||
| 440 | |||
| 441 | ;; Make sure we're not in the minibuffer | ||
| 442 | ;; before splitting the window. | ||
| 443 | |||
| 444 | (if (equal (selected-window) (minibuffer-window)) | ||
| 445 | (if (other-window 1) | ||
| 446 | (select-window (other-window 1)) | ||
| 447 | (if (display-multi-frame-p) | ||
| 448 | (select-frame (other-frame 1))))) | ||
| 449 | |||
| 450 | (let ((this-window (selected-window)) | 439 | (let ((this-window (selected-window)) |
| 451 | (appt-disp-buf (set-buffer (get-buffer-create appt-buffer-name)))) | 440 | (appt-disp-buf (set-buffer (get-buffer-create appt-buffer-name)))) |
| 452 | |||
| 453 | (if (cdr (assq 'unsplittable (frame-parameters))) | 441 | (if (cdr (assq 'unsplittable (frame-parameters))) |
| 454 | ;; In an unsplittable frame, use something somewhere else. | 442 | ;; In an unsplittable frame, use something somewhere else. |
| 455 | (display-buffer appt-disp-buf) | 443 | (display-buffer appt-disp-buf) |
| @@ -489,7 +477,7 @@ Usually just deletes the appointment buffer." | |||
| 489 | (let ((next-bottom-edge (nth 3 (window-edges w)))) | 477 | (let ((next-bottom-edge (nth 3 (window-edges w)))) |
| 490 | (when (< bottom-edge next-bottom-edge) | 478 | (when (< bottom-edge next-bottom-edge) |
| 491 | (setq bottom-edge next-bottom-edge | 479 | (setq bottom-edge next-bottom-edge |
| 492 | lowest-window w))))) | 480 | lowest-window w)))) 'nomini) |
| 493 | (select-window lowest-window))) | 481 | (select-window lowest-window))) |
| 494 | 482 | ||
| 495 | (defconst appt-time-regexp | 483 | (defconst appt-time-regexp |