X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Friece-debug.el;h=cddd944d93e8aa3b8a8f3903c9903f922ef51521;hb=c26881a9188fae2505d281c1db4da3bb3f513b22;hp=b08dc280d4397e4c962dfdb2f792c49b0eccb589;hpb=f4afafd208d3c89b60c3d18674980aa0becec949;p=riece diff --git a/lisp/riece-debug.el b/lisp/riece-debug.el index b08dc28..cddd944 100644 --- a/lisp/riece-debug.el +++ b/lisp/riece-debug.el @@ -28,14 +28,14 @@ (require 'riece-options) (defun riece-debug-1 (message detail) - (let ((time (format-time-string "%Y-%m-%d:%H:%M:%S"))) - (message "riece-debug:%s: %s" time message) + (message "riece-debug: %s" message) (save-excursion (set-buffer riece-debug-buffer) (goto-char (point-max)) - (if detail - (insert "*** " time ": " message "\n" detail "\n") - (insert "*** " time ": " message "\n")))) + (let ((time (format-time-string "%Y-%m-%d:%H:%M:%S"))) + (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.