From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78850 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: nntp-record-commands is named badly; nnbackend-debug is needed Date: Wed, 18 May 2011 16:01:44 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87hb8r3epz.fsf@lifelogs.com> References: <87oc30cn8d.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1305752549 1151 80.91.229.12 (18 May 2011 21:02:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 May 2011 21:02:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27150@lists.math.uh.edu Wed May 18 23:02:26 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QMnsu-0004fb-NM for ding-account@gmane.org; Wed, 18 May 2011 23:02:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QMnsY-0003qu-7v; Wed, 18 May 2011 16:02:02 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QMnsW-0003qe-F4 for ding@lists.math.uh.edu; Wed, 18 May 2011 16:02:00 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QMnsV-0004ch-1V for ding@lists.math.uh.edu; Wed, 18 May 2011 16:01:59 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QMnsT-0002E9-Kk for ding@gnus.org; Wed, 18 May 2011 23:01:57 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QMnsT-0004OA-3T for ding@gnus.org; Wed, 18 May 2011 23:01:57 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 May 2011 23:01:57 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 May 2011 23:01:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:+mhLcjLStvh9LGSO0KOX2QLJ4/I= X-Spam-Score: -3.7 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78850 Archived-At: On Wed, 18 May 2011 05:33:06 -0500 Ted Zlatanov wrote: TZ> `nntp-record-commands' should be called "nntp-debug" or "nntp-verbose" TZ> similar to the other backends. TZ> In fact all the backends should have a nnbackend-debug nnvoo variable TZ> and respect it uniformly. Right now that's done per backend which leads TZ> to the situation above. But it should also work for mail-sources, how TZ> would that work? TZ> Let me know if this makes sense and what I can do to implement it. How about a `gnus-network-debug' variable that is a list of '(imap nntp) for instance? Here's a working macro. #+begin_src lisp (defvar gnus-network-debug '(nntp)) (defmacro nnoo-debug (token text &rest arguments) `(when (memq ',token gnus-network-debug) (with-current-buffer (get-buffer-create ,(format "*%s-debug*" token)) (insert (format ,text ,@arguments))))) (defmacro nntp-debug (text &rest arguments) `(nnoo-debug nntp ,text ,@arguments)) (defmacro nnimap-debug (text &rest arguments) `(nnoo-debug nnimap ,text ,@arguments)) (nntp-debug "hello\n") #+end_src I think that's much better than the current "hunt for *-debug variables all over the place" setup. Ted