]> git.eshelyaron.com Git - emacs.git/commitdiff
* calendar/appt.el (appt-check): Change mode-line message at time of the appt.
authorGlenn Morris <rgm@gnu.org>
Fri, 13 May 2011 01:38:31 +0000 (18:38 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 13 May 2011 01:38:31 +0000 (18:38 -0700)
lisp/ChangeLog
lisp/calendar/appt.el

index 8d8b1bf7899ff38a06bf3b91621677f4c91d216a..004be53a3b275d35edb6b9884d8235ac673ee8d2 100644 (file)
@@ -2,6 +2,7 @@
 
        * calendar/appt.el (appt-make-list): Simplify.
        (appt-time-msg-list): Doc fix.
+       (appt-check): Change mode-line message at the time of the appointment.
 
 2011-05-12  Andreas Schwab  <schwab@linux-m68k.org>
 
index d961e43cda21108b4d37e5d59d862de0097e178c..25f3ae0e8ec119089db9b661735f76fcac1686f3 100644 (file)
@@ -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