summaryrefslogtreecommitdiff
path: root/lisp/calendar/appt.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2011-05-12 18:38:31 -0700
committerGlenn Morris <rgm@gnu.org>2011-05-12 18:38:31 -0700
commita54640143dc093c1d3572f344b231da2d4508c8f (patch)
treefcc44d051124b7336513634dafbf66ae0cab5b36 /lisp/calendar/appt.el
parent4accbca6e956418ee0a6535cd25a03ed1b8d441f (diff)
downloademacs-a54640143dc093c1d3572f344b231da2d4508c8f.tar.gz
* calendar/appt.el (appt-check): Change mode-line message at time of the appt.
Diffstat (limited to 'lisp/calendar/appt.el')
-rw-r--r--lisp/calendar/appt.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index d961e43cda2..25f3ae0e8ec 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -342,7 +342,9 @@ displayed in a window:
(when appt-display-mode-line
(setq appt-mode-string
(concat " " (propertize
- (format "App't in %s min." min-to-app)
+ (format "App't %s"
+ (if (zerop min-to-app) "NOW"
+ (format "in %s min." min-to-app)))
'face 'mode-line-emphasis))))
;; When an appointment is reached, delete it from the
;; list. Reset the count to 0 in case we display another