From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10305 Path: main.gmane.org!not-for-mail From: Loren Schall Newsgroups: gmane.emacs.gnus.general Subject: nnmail weirdness Date: 19 Mar 1997 16:58:41 -0700 Sender: schall@saifr00.ateng.az.honeywell.com Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.103) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035150198 23646 80.91.224.250 (20 Oct 2002 21:43:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:43:18 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id QAA21493 for ; Wed, 19 Mar 1997 16:07:51 -0800 Original-Received: from saifr00.ateng.az.honeywell.com (saifr00.ateng.az.Honeywell.COM [129.239.166.12]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Thu, 20 Mar 1997 00:57:24 +0100 Original-Received: from swtech09.ateng.az.honeywell.com (swtech09.ateng.az.Honeywell.COM [129.239.1.79]) by saifr00.ateng.az.honeywell.com (8.6.10/8.6.4) with ESMTP id QAA29996 for ; Wed, 19 Mar 1997 16:59:04 -0700 Original-Received: (schall@localhost) by swtech09.ateng.az.honeywell.com (8.6.10/8.6.4) id QAA17987; Wed, 19 Mar 1997 16:58:45 -0700 Original-To: ding@ifi.uio.no Original-Lines: 65 X-Mailer: Gnus v5.4.26/Emacs 19.34 Xref: main.gmane.org gmane.emacs.gnus.general:10305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10305 Hi, I'm hoping somebody can help me. I'm seeing a peculiar error. At this point I don't think it's directly a Gnus problem, but that's where I'm seeing it. (I begin to suspect efs, but I'm just wildly guessing.) When I do a "g" in the group buffer (ie `gnus-group-get-new-news'), I sometimes get the error message: Wrong type argument: number-or-marker-p, dired-handler-fn I've traced this to the following line in `nnmail-activate'. (and (setq file (ignore-errors (symbol-value (intern (format "%s-active-file" backend))))) (setq file-time (nth 5 (file-attributes file))) (or (not (setq timestamp (condition-case () (symbol-value (intern (format "%s-active-timestamp" backend))) (error 'none)))) (not (consp timestamp)) (equal timestamp '(0 0)) => (> (nth 0 file-time) (nth 0 timestamp)) (and (= (nth 0 file-time) (nth 0 timestamp)) (> (nth 1 file-time) (nth 1 timestamp)))))) (save-excursion (or (eq timestamp 'none) (set (intern (format "%s-active-timestamp" backend)) file-time)) (funcall (intern (format "%s-request-list" backend))))) `timestamp' has the bogus value (in this instance) of `(dired-hander-fn)'. When I step through `nnmail-activate' with Edebug, I see `timestamp' being set from `nnml-active-timestamp'. (I've also seen `nnml-active-timestamp' with a string value, a random filename.) How can I find out who's setting `nnml-active-timestamp'? As far as I can tell `nnmail-active' is the only place that `nnml-active-timestamp' is set. It doesn't seem to happen when I've instrumented `nnmail-activate'. Can I convince Edebug not to stop every time `nnmail-activate' is invoked, only when `nnml-active-timestamp' gets a non-numeric value? How do I set a watchpoint? Any help would be greatly appreciated. On a completely unrelated note, my initial "~/.gnus" predates custom. As I find things I want to change from the default, I've slowly been adding to my Gnus init file. It would seem that the *right* way to do this is to use custom for these customizations and only put things in "~/.gnus" if custom doesn't currently support what I want to change. Is there an easy way to "move" all my `setq's to custom? I would have though that just invoking custom would define the "current values" of all customizations to my current values, but that didn't seem to work the last time I checked. Am I doing something wrong or just thinking funny. Thanks, Lars, for all your work making Gnus the ultimate news reader! -- Loren Schall schall@ateng.az.honeywell.com