changeset 65591:a65f8ec418fc

message format spec fixes, commit # 10
author Deepak Goel <deego@gnufans.org>
date Sun, 18 Sep 2005 12:41:39 +0000
parents c45ae2a74f0f
children 1038e6fc7f28
files lisp/calendar/icalendar.el lisp/calendar/timeclock.el
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/icalendar.el	Sun Sep 18 12:40:26 2005 +0000
+++ b/lisp/calendar/icalendar.el	Sun Sep 18 12:41:39 2005 +0000
@@ -1532,7 +1532,7 @@
          (setq found-error t)
          (setq error-string (format "%s\n%s\nCannot handle this event: %s"
                                     error-val error-string e))
-         (message error-string))))
+         (message "%s" error-string))))
     (if found-error
         (save-current-buffer
           (set-buffer (get-buffer-create "*icalendar-errors*"))
--- a/lisp/calendar/timeclock.el	Sun Sep 18 12:40:26 2005 +0000
+++ b/lisp/calendar/timeclock.el	Sun Sep 18 12:41:39 2005 +0000
@@ -441,7 +441,7 @@
 		      "remaining" "over")
 		  (timeclock-when-to-leave-string show-seconds today-only)))
     (if (interactive-p)
-	(message status)
+	(message "%s" status)
       status)))
 
 ;;;###autoload
@@ -512,7 +512,7 @@
 		 (timeclock-workday-remaining today-only)
 		 show-seconds t)))
     (if (interactive-p)
-	(message string)
+	(message "%s" string)
       string)))
 
 (defsubst timeclock-workday-elapsed ()
@@ -534,7 +534,7 @@
   (let ((string (timeclock-seconds-to-string (timeclock-workday-elapsed)
 					     show-seconds)))
     (if (interactive-p)
-	(message string)
+	(message "%s" string)
       string)))
 
 (defsubst timeclock-time-to-seconds (time)
@@ -579,7 +579,7 @@
 	      (format-time-string "%-I:%M:%S %p" then)
 	    (format-time-string "%-I:%M %p" then))))
     (if (interactive-p)
-	(message string)
+	(message "%s" string)
       string)))
 
 ;;; Internal Functions: