aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-08-15 20:18:42 +0000
committerRichard M. Stallman2002-08-15 20:18:42 +0000
commitbf9a91d015616af8115ce4d73e21c8e389624b63 (patch)
tree7115faa174bf0c9c434995b8e1883c4f40fd4230
parent277e0f9d8f0829cbffcb1a6c63ae35c8bb68d93e (diff)
downloademacs-bf9a91d015616af8115ce4d73e21c8e389624b63.tar.gz
emacs-bf9a91d015616af8115ce4d73e21c8e389624b63.zip
(appt-delete): Use substring-no-properties.
(appt-make-list): Don't use prin1-to-string; use the string unchanged.
-rw-r--r--lisp/calendar/appt.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el
index dbf34107829..95eaeba07ba 100644
--- a/lisp/calendar/appt.el
+++ b/lisp/calendar/appt.el
@@ -455,7 +455,12 @@ The time should be in either 24 hour format or am/pm format."
455 (while tmp-msg-list 455 (while tmp-msg-list
456 (let* ((element (car tmp-msg-list)) 456 (let* ((element (car tmp-msg-list))
457 (prompt-string (concat "Delete " 457 (prompt-string (concat "Delete "
458 (prin1-to-string (car (cdr element))) 458 ;; We want to quote any doublequotes
459 ;; in the string, as well as put
460 ;; doublequotes around it.
461 (prin1-to-string
462 (substring-no-properties
463 (car (cdr element)) 0))
459 " from list? ")) 464 " from list? "))
460 (test-input (y-or-n-p prompt-string))) 465 (test-input (y-or-n-p prompt-string)))
461 (setq tmp-msg-list (cdr tmp-msg-list)) 466 (setq tmp-msg-list (cdr tmp-msg-list))
@@ -512,9 +517,7 @@ They specify the range of dates that the diary is being processed for."
512 (while (and entry-list 517 (while (and entry-list
513 (calendar-date-equal 518 (calendar-date-equal
514 (calendar-current-date) (car (car entry-list)))) 519 (calendar-current-date) (car (car entry-list))))
515 (let ((time-string (substring (prin1-to-string 520 (let ((time-string (cadr (car entry-list))))
516 (cadr (car entry-list))) 1 -1)))
517
518 (while (string-match 521 (while (string-match
519 "\\([0-9]?[0-9]:[0-9][0-9]\\(am\\|pm\\)?\\).*" 522 "\\([0-9]?[0-9]:[0-9][0-9]\\(am\\|pm\\)?\\).*"
520 time-string) 523 time-string)