unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: appt.el fix: don't use prin1-to-string
Date: Wed, 14 Aug 2002 17:13:22 -0600 (MDT)	[thread overview]
Message-ID: <200208142313.g7ENDMG07604@wijiji.santafe.edu> (raw)
In-Reply-To: <8765yewaik.fsf@wesley.springies.com> (message from Alan Shutko on Tue, 13 Aug 2002 20:26:43 -0400)

Thanks.  I'd already written a similar change:

*** appt.el.~1.44.~	Mon Aug 12 13:24:33 2002
--- appt.el	Tue Aug 13 12:21:14 2002
***************
*** 455,461 ****
      (while tmp-msg-list
        (let* ((element (car tmp-msg-list))
               (prompt-string (concat "Delete " 
!                                     (prin1-to-string (car (cdr element))) 
                                      " from list? "))
               (test-input (y-or-n-p prompt-string)))
          (setq tmp-msg-list (cdr tmp-msg-list))
--- 455,463 ----
      (while tmp-msg-list
        (let* ((element (car tmp-msg-list))
               (prompt-string (concat "Delete " 
!                                     (prin1-to-string
! 				     (substring-no-properties
! 				      (car (cdr element)) 0)) 
                                      " from list? "))
               (test-input (y-or-n-p prompt-string)))
          (setq tmp-msg-list (cdr tmp-msg-list))
***************
*** 512,520 ****
  	      (while (and entry-list 
  			  (calendar-date-equal 
  			   (calendar-current-date) (car (car entry-list))))
! 		(let ((time-string (substring (prin1-to-string 
! 					       (cadr (car entry-list))) 1 -1)))
! 
  		  (while (string-match
  			  "\\([0-9]?[0-9]:[0-9][0-9]\\(am\\|pm\\)?\\).*"
  			  time-string)
--- 514,520 ----
  	      (while (and entry-list 
  			  (calendar-date-equal 
  			   (calendar-current-date) (car (car entry-list))))
! 		(let ((time-string (cadr (car entry-list))))
  		  (while (string-match
  			  "\\([0-9]?[0-9]:[0-9][0-9]\\(am\\|pm\\)?\\).*"
  			  time-string)

      parent reply	other threads:[~2002-08-14 23:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-12 21:26 appt.el fix: don't use prin1-to-string Alan Shutko
2002-08-13 22:46 ` Richard Stallman
2002-08-14  0:26   ` Alan Shutko
2002-08-14 14:35     ` Stefan Monnier
2002-08-14 18:44       ` Alan Shutko
2002-08-14 23:13     ` Richard Stallman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200208142313.g7ENDMG07604@wijiji.santafe.edu \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).