+2005-07-28 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-debug.el: Don't bind unused variable; prepend time to
+ debug message.
+
2005-07-19 Daiki Ueno <ueno@unixuser.org>
* riece-unread.el (riece-guess-channel-from-unread): Return
(require 'riece-options)
(defun riece-debug-1 (message detail)
- (message "riece-debug: %s" message)
+ (let ((time (format-time-string "%Y-%m-%d:%H:%M:%S")))
+ (message "riece-debug:%s: %s" time message)
(save-excursion
(set-buffer riece-debug-buffer)
(goto-char (point-max))
- (let ((point (point)))
- (if detail
- (insert message "\n" detail "\n")
- (insert message "\n")))))
+ (if detail
+ (insert "*** " time ": " message "\n" detail "\n")
+ (insert "*** " time ": " message "\n"))))
(defun riece-debug (message &optional detail)
"Print a one-line debug MESSAGE at the bottom of the frame.