[gnus git] branch master updated: m0-5-259-gd90f243 =1= gnus-int.el (gnus-backend-trace): Honour gnus-backend-trace

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  d90f243bd6e2f1e66a6a224b60247d0e42d855a6 (commit)
      from  726fe2fc681a7ac96fbb2eddaf86f9ac91fcf36b (commit)


- Log -----------------------------------------------------------------
commit d90f243bd6e2f1e66a6a224b60247d0e42d855a6
Author: Christopher Schmidt <[email protected]>
Date:   Wed Jan 30 22:45:20 2013 +0000

    gnus-int.el (gnus-backend-trace): Honour gnus-backend-trace

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5449502..66d0fc9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
 2013-01-30  Christopher Schmidt  <[email protected]>
 
+	* gnus-int.el (gnus-backend-trace-elapsed): New variable.
+	(gnus-backend-trace): Honour gnus-backend-trace.
+
 	* mml.el (mml-insert-part): Insert closing tag.
 
 	* mm-decode.el (mm-save-part): Handle invalid read-file-name results.
diff --git a/lisp/gnus-int.el b/lisp/gnus-int.el
index 81e0252..2378b59 100644
--- a/lisp/gnus-int.el
+++ b/lisp/gnus-int.el
@@ -248,18 +248,20 @@ If it is down, start it up (again)."
       'denied))
 
 (defvar gnus-backend-trace nil)
+(defvar gnus-backend-trace-elapsed nil)
 
 (defun gnus-backend-trace (type form)
+  (when gnus-backend-trace
   (with-current-buffer (get-buffer-create "*gnus trace*")
     (buffer-disable-undo)
     (goto-char (point-max))
     (insert (format-time-string "%H:%M:%S")
 	    (format " %.2fs %s %S\n"
-		    (if (numberp gnus-backend-trace)
-			(- (float-time) gnus-backend-trace)
+		      (if (numberp gnus-backend-trace-elapsed)
+			  (- (float-time) gnus-backend-trace-elapsed)
 		      0)
 		    type form))
-    (setq gnus-backend-trace (float-time))))
+      (setq gnus-backend-trace-elapsed (float-time)))))
 
 (defun gnus-open-server (gnus-command-method)
   "Open a connection to GNUS-COMMAND-METHOD."

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog   |    3 +++
 lisp/gnus-int.el |   22 ++++++++++++----------
 2 files changed, 15 insertions(+), 10 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.