From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68089 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: nndrafts folder doesn't display the Drafts menu Date: Tue, 06 Jan 2009 15:28:54 +0900 Organization: Emacsen advocacy group Message-ID: References: <84tz8dbiqe.fsf@incoming.verizon.net> <84hc4d2wjv.fsf@incoming.verizon.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231223438 3129 80.91.229.12 (6 Jan 2009 06:30:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2009 06:30:38 +0000 (UTC) Cc: Steinar Bang , ding@gnus.org To: David Engster Original-X-From: ding-owner+M16534@lists.math.uh.edu Tue Jan 06 07:31:48 2009 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.50) id 1LK5Td-0003cx-Ua for ding-account@gmane.org; Tue, 06 Jan 2009 07:31:46 +0100 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 1LK5Rc-0001fx-DM; Tue, 06 Jan 2009 00:29:40 -0600 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 1LK5RZ-0001fa-Px for ding@lists.math.uh.edu; Tue, 06 Jan 2009 00:29:37 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LK5RW-0005jb-5x for ding@lists.math.uh.edu; Tue, 06 Jan 2009 00:29:37 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LK5Rm-0002wx-00 for ; Tue, 06 Jan 2009 07:29:50 +0100 Original-Received: from localhost ([127.0.0.1]:37331) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1LK5Qr-0006fB-Iq; Tue, 06 Jan 2009 00:28:54 -0600 X-Hashcash: 1:20:090106:dengste@eml.cc::Sphsk/bXx3pbqGqy:00012fo X-Hashcash: 1:20:090106:sb@dod.no::JPQU+UT6A1JkeU2W:000000002MkE X-Hashcash: 1:20:090106:ding@gnus.org::f9R27id2p+WJG9+N:000006dV X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:H84G6wUO1TkuEJzbclKIMS4IBvo= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68089 Archived-At: >>>>> Dave Goldberg : >>> This happened to me once a long time ago (very likely in Oort). As I >>> recall it, I just deleted the drafts folder completely and ran >>> (gnus-start-draft-setup) by hand and somehow things got fixed. >>>>> On Mon, 05 Jan 2009 21:51:04 +0100, Steinar Bang said: >> I did a `C-k' on the folder, saved the .newsrc.eld file, and then >> evaluated (gnus-start-draft-setup) in the *scratch* buffer, and that >> didn't fix things. Ouch! The culprits are me and David, sorry. A workaround that enables the minor mode `gnus-draft-mode' again is to put this form in the ~/.gnus.el file: (defvar gnus-dummy nil) The symbol `gnus-dummy' is set in the draft group as a group parameter as follows: (gnus-dummy . ((gnus-draft-mode))) It means setting the result of evaluating the `(gnus-draft-mode)' form to the variable `gnus-dummy'. In that case, what we want is to evaluate the form, not the result. However, now parameter's operands got to not be evaluated if the parameters are not bound variables because of the following change: 2008-12-24 David Engster * gnus-sum.el (gnus-summary-set-local-parameters): Don't bind parameters that haven't existed as variables as buffer-local variables. See also the thread: http://news.gmane.org/group/gmane.emacs.gnus.general/thread=67886 This also breaks similar usages of group parameters like the one mentioned in the Gnus Info: ,---- (info "(gnus)Group Parameters") | This can also be used as a group-specific hook function. If you | want to hear a beep when you enter a group, you could put | something like `(dummy-variable (ding))' in the parameters of that | group. `dummy-variable' will be set to the (meaningless) result | of the `(ding)' form. `---- David, do you have an idea to fix this?