diff options
| author | Glenn Morris | 2008-04-02 03:52:36 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-04-02 03:52:36 +0000 |
| commit | debf91fda602a6aa51f15c9709a6e7d739ca8704 (patch) | |
| tree | 3704685e3fa1aa3dca4d3f786016fb711ebb25c1 | |
| parent | ce5b3019bff73f83cd7b171c02ac46db0cbd30e3 (diff) | |
| download | emacs-debf91fda602a6aa51f15c9709a6e7d739ca8704.tar.gz emacs-debf91fda602a6aa51f15c9709a6e7d739ca8704.zip | |
Whitespace only.
| -rw-r--r-- | lisp/calendar/appt.el | 80 | ||||
| -rw-r--r-- | lisp/calendar/cal-china.el | 6 |
2 files changed, 43 insertions, 43 deletions
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el index c1d1c47b3f7..8a3138daec3 100644 --- a/lisp/calendar/appt.el +++ b/lisp/calendar/appt.el | |||
| @@ -64,9 +64,9 @@ | |||
| 64 | ;; You can change the way the appointment window is created/deleted by | 64 | ;; You can change the way the appointment window is created/deleted by |
| 65 | ;; setting the variables | 65 | ;; setting the variables |
| 66 | ;; | 66 | ;; |
| 67 | ;; appt-disp-window-function | 67 | ;; appt-disp-window-function |
| 68 | ;; and | 68 | ;; and |
| 69 | ;; appt-delete-window-function | 69 | ;; appt-delete-window-function |
| 70 | ;; | 70 | ;; |
| 71 | ;; For instance, these variables could be set to functions that display | 71 | ;; For instance, these variables could be set to functions that display |
| 72 | ;; appointments in pop-up frames, which are lowered or iconified after | 72 | ;; appointments in pop-up frames, which are lowered or iconified after |
| @@ -231,8 +231,8 @@ The variable `appt-audible' controls the audible reminder." | |||
| 231 | ;; vars appt-msg-window and appt-visible are dropped. | 231 | ;; vars appt-msg-window and appt-visible are dropped. |
| 232 | (let ((appt-display-format | 232 | (let ((appt-display-format |
| 233 | (if (eq appt-display-format 'ignore) | 233 | (if (eq appt-display-format 'ignore) |
| 234 | (cond (appt-msg-window 'window) | 234 | (cond (appt-msg-window 'window) |
| 235 | (appt-visible 'echo)) | 235 | (appt-visible 'echo)) |
| 236 | appt-display-format))) | 236 | appt-display-format))) |
| 237 | (if appt-audible (beep 1)) | 237 | (if appt-audible (beep 1)) |
| 238 | (cond ((eq appt-display-format 'window) | 238 | (cond ((eq appt-display-format 'window) |
| @@ -273,12 +273,12 @@ The following variables control appointment notification: | |||
| 273 | Controls the format in which reminders are displayed. | 273 | Controls the format in which reminders are displayed. |
| 274 | 274 | ||
| 275 | `appt-audible' | 275 | `appt-audible' |
| 276 | Variable used to determine if reminder is audible. | 276 | Variable used to determine if reminder is audible. |
| 277 | Default is t. | 277 | Default is t. |
| 278 | 278 | ||
| 279 | `appt-message-warning-time' | 279 | `appt-message-warning-time' |
| 280 | Variable used to determine when appointment message | 280 | Variable used to determine when appointment message |
| 281 | should first be displayed. | 281 | should first be displayed. |
| 282 | 282 | ||
| 283 | `appt-display-mode-line' | 283 | `appt-display-mode-line' |
| 284 | If non-nil, a generic message giving the time remaining | 284 | If non-nil, a generic message giving the time remaining |
| @@ -295,31 +295,31 @@ The following variables are only relevant if reminders are being | |||
| 295 | displayed in a window: | 295 | displayed in a window: |
| 296 | 296 | ||
| 297 | `appt-display-duration' | 297 | `appt-display-duration' |
| 298 | The number of seconds an appointment message is displayed. | 298 | The number of seconds an appointment message is displayed. |
| 299 | 299 | ||
| 300 | `appt-disp-window-function' | 300 | `appt-disp-window-function' |
| 301 | Function called to display appointment window. | 301 | Function called to display appointment window. |
| 302 | 302 | ||
| 303 | `appt-delete-window-function' | 303 | `appt-delete-window-function' |
| 304 | Function called to remove appointment window and buffer." | 304 | Function called to remove appointment window and buffer." |
| 305 | (interactive "P") ; so people can force updates | 305 | (interactive "P") ; so people can force updates |
| 306 | (let* ((min-to-app -1) | 306 | (let* ((min-to-app -1) |
| 307 | (prev-appt-mode-string appt-mode-string) | 307 | (prev-appt-mode-string appt-mode-string) |
| 308 | (prev-appt-display-count (or appt-display-count 0)) | 308 | (prev-appt-display-count (or appt-display-count 0)) |
| 309 | ;; Non-nil means do a full check for pending appointments and | 309 | ;; Non-nil means do a full check for pending appointments and |
| 310 | ;; display in whatever ways the user has selected. When no | 310 | ;; display in whatever ways the user has selected. When no |
| 311 | ;; appointment is being displayed, we always do a full check. | 311 | ;; appointment is being displayed, we always do a full check. |
| 312 | (full-check | 312 | (full-check |
| 313 | (or (not appt-now-displayed) | 313 | (or (not appt-now-displayed) |
| 314 | ;; This is true every appt-display-interval minutes. | 314 | ;; This is true every appt-display-interval minutes. |
| 315 | (zerop (mod prev-appt-display-count appt-display-interval)))) | 315 | (zerop (mod prev-appt-display-count appt-display-interval)))) |
| 316 | ;; Non-nil means only update the interval displayed in the mode line. | 316 | ;; Non-nil means only update the interval displayed in the mode line. |
| 317 | (mode-line-only (unless full-check appt-now-displayed)) | 317 | (mode-line-only (unless full-check appt-now-displayed)) |
| 318 | now cur-comp-time appt-comp-time) | 318 | now cur-comp-time appt-comp-time) |
| 319 | (when (or full-check mode-line-only) | 319 | (when (or full-check mode-line-only) |
| 320 | (save-excursion | 320 | (save-excursion |
| 321 | ;; Convert current time to minutes after midnight (12.01am = 1). | 321 | ;; Convert current time to minutes after midnight (12.01am = 1). |
| 322 | (setq now (decode-time) | 322 | (setq now (decode-time) |
| 323 | cur-comp-time (+ (* 60 (nth 2 now)) (nth 1 now))) | 323 | cur-comp-time (+ (* 60 (nth 2 now)) (nth 1 now))) |
| 324 | ;; At first check in any day, update appointments to today's list. | 324 | ;; At first check in any day, update appointments to today's list. |
| 325 | (if (or force ; eg initialize, diary save | 325 | (if (or force ; eg initialize, diary save |
| @@ -418,12 +418,12 @@ message APPT-MSG in a separate buffer." | |||
| 418 | (let ((this-window (selected-window)) | 418 | (let ((this-window (selected-window)) |
| 419 | (appt-disp-buf (set-buffer (get-buffer-create appt-buffer-name)))) | 419 | (appt-disp-buf (set-buffer (get-buffer-create appt-buffer-name)))) |
| 420 | (if (cdr (assq 'unsplittable (frame-parameters))) | 420 | (if (cdr (assq 'unsplittable (frame-parameters))) |
| 421 | ;; In an unsplittable frame, use something somewhere else. | 421 | ;; In an unsplittable frame, use something somewhere else. |
| 422 | (display-buffer appt-disp-buf) | 422 | (display-buffer appt-disp-buf) |
| 423 | (unless (or (special-display-p (buffer-name appt-disp-buf)) | 423 | (unless (or (special-display-p (buffer-name appt-disp-buf)) |
| 424 | (same-window-p (buffer-name appt-disp-buf))) | 424 | (same-window-p (buffer-name appt-disp-buf))) |
| 425 | ;; By default, split the bottom window and use the lower part. | 425 | ;; By default, split the bottom window and use the lower part. |
| 426 | (appt-select-lowest-window) | 426 | (appt-select-lowest-window) |
| 427 | ;; Split the window, unless it's too small to do so. | 427 | ;; Split the window, unless it's too small to do so. |
| 428 | (when (>= (window-height) (* 2 window-min-height)) | 428 | (when (>= (window-height) (* 2 window-min-height)) |
| 429 | (select-window (split-window)))) | 429 | (select-window (split-window)))) |
| @@ -450,22 +450,22 @@ message APPT-MSG in a separate buffer." | |||
| 450 | Usually just deletes the appointment buffer." | 450 | Usually just deletes the appointment buffer." |
| 451 | (let ((window (get-buffer-window appt-buffer-name t))) | 451 | (let ((window (get-buffer-window appt-buffer-name t))) |
| 452 | (and window | 452 | (and window |
| 453 | (or (eq window (frame-root-window (window-frame window))) | 453 | (or (eq window (frame-root-window (window-frame window))) |
| 454 | (delete-window window)))) | 454 | (delete-window window)))) |
| 455 | (kill-buffer appt-buffer-name) | 455 | (kill-buffer appt-buffer-name) |
| 456 | (if appt-audible | 456 | (if appt-audible |
| 457 | (beep 1))) | 457 | (beep 1))) |
| 458 | 458 | ||
| 459 | (defun appt-select-lowest-window () | 459 | (defun appt-select-lowest-window () |
| 460 | "Select the lowest window on the frame." | 460 | "Select the lowest window on the frame." |
| 461 | (let ((lowest-window (selected-window)) | 461 | (let ((lowest-window (selected-window)) |
| 462 | (bottom-edge (nth 3 (window-edges))) | 462 | (bottom-edge (nth 3 (window-edges))) |
| 463 | next-bottom-edge) | 463 | next-bottom-edge) |
| 464 | (walk-windows (lambda (w) | 464 | (walk-windows (lambda (w) |
| 465 | (when (< bottom-edge (setq next-bottom-edge | 465 | (when (< bottom-edge (setq next-bottom-edge |
| 466 | (nth 3 (window-edges w)))) | 466 | (nth 3 (window-edges w)))) |
| 467 | (setq bottom-edge next-bottom-edge | 467 | (setq bottom-edge next-bottom-edge |
| 468 | lowest-window w))) 'nomini) | 468 | lowest-window w))) 'nomini) |
| 469 | (select-window lowest-window))) | 469 | (select-window lowest-window))) |
| 470 | 470 | ||
| 471 | (defconst appt-time-regexp | 471 | (defconst appt-time-regexp |
| @@ -610,8 +610,8 @@ hour and minute parts." | |||
| 610 | 0))) | 610 | 0))) |
| 611 | ;; Convert the time appointment time into 24 hour time. | 611 | ;; Convert the time appointment time into 24 hour time. |
| 612 | (cond ((and (string-match "pm" time2conv) (< hr 12)) | 612 | (cond ((and (string-match "pm" time2conv) (< hr 12)) |
| 613 | (setq hr (+ 12 hr))) | 613 | (setq hr (+ 12 hr))) |
| 614 | ((and (string-match "am" time2conv) (= hr 12)) | 614 | ((and (string-match "am" time2conv) (= hr 12)) |
| 615 | (setq hr 0))) | 615 | (setq hr 0))) |
| 616 | ;; Convert the actual time into minutes. | 616 | ;; Convert the actual time into minutes. |
| 617 | (+ (* hr 60) min))) | 617 | (+ (* hr 60) min))) |
| @@ -651,7 +651,7 @@ This function is intended for use with `write-file-functions'." | |||
| 651 | 651 | ||
| 652 | ;;;###autoload | 652 | ;;;###autoload |
| 653 | (defun appt-activate (&optional arg) | 653 | (defun appt-activate (&optional arg) |
| 654 | "Toggle checking of appointments. | 654 | "Toggle checking of appointments. |
| 655 | With optional numeric argument ARG, turn appointment checking on if | 655 | With optional numeric argument ARG, turn appointment checking on if |
| 656 | ARG is positive, otherwise off." | 656 | ARG is positive, otherwise off." |
| 657 | (interactive "P") | 657 | (interactive "P") |
diff --git a/lisp/calendar/cal-china.el b/lisp/calendar/cal-china.el index eb07e41477d..ea4c1e92ad4 100644 --- a/lisp/calendar/cal-china.el +++ b/lisp/calendar/cal-china.el | |||
| @@ -360,9 +360,9 @@ Computes values for 10 years either side of YEAR." | |||
| 360 | (save-excursion | 360 | (save-excursion |
| 361 | (insert "'(") | 361 | (insert "'(") |
| 362 | (dotimes (n 21) | 362 | (dotimes (n 21) |
| 363 | (princ (cons year (compute-chinese-year year)) (current-buffer)) | 363 | (princ (cons year (compute-chinese-year year)) (current-buffer)) |
| 364 | (insert (if (= n 20) ")" "\n")) | 364 | (insert (if (= n 20) ")" "\n")) |
| 365 | (setq year (1+ year))) | 365 | (setq year (1+ year))) |
| 366 | (setq end (point))) | 366 | (setq end (point))) |
| 367 | (save-excursion | 367 | (save-excursion |
| 368 | ;; fill-column -/+ 5. | 368 | ;; fill-column -/+ 5. |