From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33494 Path: main.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.gnus.general Subject: Re: nndrafts and NT Date: 26 Nov 2000 16:15:25 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <2nlmuzlsy5.fsf@tiger.jia.vnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169590 25453 80.91.224.250 (21 Oct 2002 03:06:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:06:30 +0000 (UTC) Keywords: nndraft,drafts,problem,gnus,function,nndraft-directory,ignore,group Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 462E2D049A for ; Sun, 26 Nov 2000 20:10:14 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id TAB03165; Sun, 26 Nov 2000 19:09:56 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 26 Nov 2000 19:09:01 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id TAA26851 for ; Sun, 26 Nov 2000 19:08:51 -0600 (CST) Original-Received: from kauha.saunalahti.fi (kauha.saunalahti.fi [195.197.53.227]) by mailhost.sclp.com (Postfix) with ESMTP id 91CD1D049A for ; Sun, 26 Nov 2000 20:09:11 -0500 (EST) Original-Received: from poboxes.com (MMCMXIX.hdyn.saunalahti.fi [195.197.45.219]) by kauha.saunalahti.fi (8.10.1/8.10.1) with ESMTP id eAR1CRe03059 for ; Mon, 27 Nov 2000 03:12:29 +0200 (EET) Original-To: Gnus mailing list In-Reply-To: <2nlmuzlsy5.fsf@tiger.jia.vnet> User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 (i386-*-windows98.1998) Original-Lines: 56 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:33494 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33494 * 2000-11-04 ShengHuo ZHU list.emacs-ding * Message-Id: <2nlmuzlsy5.fsf@tiger.jia.vnet> | Jonas Steverud writes: | | > The issue ha been up before but the suggested solutions wasn't a | > problem for me. | > | > C-x C-s in a message, i.e. save to nndraft, works nice - "Wrote | > h:/News/drafts/drafts/3" it says. The file exists and looks nice. | > | > When I try to enter the drafts group (which has a star in front of it, | > i.e. Gnus can't get the number of articles in it) I get: | | Does `M-g' work on the group? What is the value of nnmh-directory | right after you try to enter the drafts group? Since this has been a long persisting problem with Gnus, would someone more knowledgeable with Gnus internals investigate if the problem is with the undefined function that somehow loads as 'ignore to Emacs. I have pinpointed the problem, but I have no idea why it gets set to ignore (sometimes?) Here is the relevant code that "solves" the nndraft problem. Jari ;;; ---------------------------------------------------------------------- ;;; (defadvice gnus-topic-read-group (before my-gnus-fix-nndraft act) "Fix broken nndraft." (when (eq 'ignore (symbol-function 'nndraft-request-group)) (my-gnus-nndraft-fix))) ;;; ---------------------------------------------------------------------- ;;; See nnoo.el::nno-import-1 and nndraft.el ;;; (defun my-gnus-nndraft-fix () "Bug in my gnus that prevent accessing nndraft. Define function `nndaft-request-group'." (interactive) (let* ((function 'nndraft-request-group) (call-function 'nnoo-parent-function) (backend 'nndraft) (this-function 'nnmh-request-group) ) ;; See nndraft.el ;; (defvoo nndraft-directory (nnheader-concat gnus-directory "drafts/")) (unless (stringp nndraft-directory) (setq nndraft-directory (nnheader-concat gnus-directory "drafts/"))) (eval `(deffoo ,function (&rest args) (,call-function ',backend ',this-function args))) ))