aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/calendar/appt.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index ebdafb438e3..a7d13cff9a1 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -510,9 +510,13 @@ The time should be in either 24 hour format or am/pm format.
510Optional argument WARNTIME is an integer (or string) giving the number 510Optional argument WARNTIME is an integer (or string) giving the number
511of minutes before the appointment at which to start warning. 511of minutes before the appointment at which to start warning.
512The default is `appt-message-warning-time'." 512The default is `appt-message-warning-time'."
513 (interactive "sTime (hh:mm[am/pm]): \nsMessage: \n\ 513 (interactive (list (let ((time (read-string "Time (hh:mm[am/pm]): ")))
514sMinutes before the appointment to start warning: ") 514 (unless (string-match-p appt-time-regexp time)
515 (unless (string-match appt-time-regexp time) 515 (user-error "Unacceptable time-string"))
516 time)
517 (read-string "Message: ")
518 (read-string "Minutes before the appointment to start warning: ")))
519 (unless (string-match-p appt-time-regexp time)
516 (user-error "Unacceptable time-string")) 520 (user-error "Unacceptable time-string"))
517 (and (stringp warntime) 521 (and (stringp warntime)
518 (setq warntime (unless (string-equal warntime "") 522 (setq warntime (unless (string-equal warntime "")