aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-13 03:48:35 +0000
committerGlenn Morris2008-03-13 03:48:35 +0000
commit464e82586ed476a92cec0dc3e5af8420073a033b (patch)
tree4ba24f522a41371767dd257464016a8c13d87765
parenta3d3fe6e00dd6a368f7ad60d8086cab7eb10cfcf (diff)
downloademacs-464e82586ed476a92cec0dc3e5af8420073a033b.tar.gz
emacs-464e82586ed476a92cec0dc3e5af8420073a033b.zip
(appt-mode-string): Mark as risky.
(appt-check): Apply mode-line-emphasis face to appt-mode-string.
-rw-r--r--lisp/calendar/appt.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index d081dd2e541..ece9976e411 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -203,6 +203,7 @@ so calling `appt-make-list' again should preserve it.")
203 "String being displayed in the mode line saying you have an appointment. 203 "String being displayed in the mode line saying you have an appointment.
204The actual string includes the amount of time till the appointment. 204The actual string includes the amount of time till the appointment.
205Only used if `appt-display-mode-line' is non-nil.") 205Only used if `appt-display-mode-line' is non-nil.")
206(put 'appt-mode-string 'risky-local-variable t) ; for 'face property
206 207
207(defvar appt-prev-comp-time nil 208(defvar appt-prev-comp-time nil
208 "Time of day (mins since midnight) at which we last checked appointments. 209 "Time of day (mins since midnight) at which we last checked appointments.
@@ -390,7 +391,9 @@ displayed in a window:
390 min-to-app)) 391 min-to-app))
391 (when appt-display-mode-line 392 (when appt-display-mode-line
392 (setq appt-mode-string 393 (setq appt-mode-string
393 (format " App't in %s min." min-to-app))) 394 (concat " " (propertize
395 (format "App't in %s min." min-to-app)
396 'face 'mode-line-emphasis))))
394 ;; When an appointment is reached, delete it from 397 ;; When an appointment is reached, delete it from
395 ;; the list. Reset the count to 0 in case we 398 ;; the list. Reset the count to 0 in case we
396 ;; display another appointment on the next cycle. 399 ;; display another appointment on the next cycle.