From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68330 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: attaching a file in dired mode Date: Tue, 24 Feb 2009 08:41:50 +0900 Organization: Emacsen advocacy group Message-ID: References: <87tz6p1c85.fsf@gmail.com> <9beixphsju.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235432544 30577 80.91.229.12 (23 Feb 2009 23:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2009 23:42:24 +0000 (UTC) Cc: Eythan Weg , ding@gnus.org, emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 24 00:43:39 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LbkSY-0005X8-8o for ged-emacs-devel@m.gmane.org; Tue, 24 Feb 2009 00:43:38 +0100 Original-Received: from localhost ([127.0.0.1]:48133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbkRD-000471-Ng for ged-emacs-devel@m.gmane.org; Mon, 23 Feb 2009 18:42:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbkR8-00044G-4x for emacs-devel@gnu.org; Mon, 23 Feb 2009 18:42:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbkR7-00043s-5n for emacs-devel@gnu.org; Mon, 23 Feb 2009 18:42:09 -0500 Original-Received: from [199.232.76.173] (port=36756 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbkR7-00043p-24 for emacs-devel@gnu.org; Mon, 23 Feb 2009 18:42:09 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]:38843) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbkR4-000827-8f; Mon, 23 Feb 2009 18:42:06 -0500 Original-Received: from localhost ([127.0.0.1]:55424) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1LbkQy-0000Qr-FN; Mon, 23 Feb 2009 17:42:00 -0600 X-Hashcash: 1:20:090223:rgm@gnu.org::sgixyPjNfATm+3uD:000000A/wh X-Hashcash: 1:20:090223:eythanweg@gmail.com::bRdSWMNe/3Zm7CEf:000000000000000000000000000000000000000000029v X-Hashcash: 1:20:090223:ding@gnus.org::wdBKFgYMvVgiySHi:000009b3 X-Hashcash: 1:20:090223:emacs-devel@gnu.org::q8FpoPkLtUOqUgx9:0000000000000000000000000000000000000000004JD0 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.90 (gnu/linux) Cancel-Lock: sha1:SqW9uunwRGXQdQ7yofLwsL2VLjs= 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 - gnu.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-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109303 gmane.emacs.gnus.general:68330 Archived-At: >>>>> Glenn Morris wrote: > Katsumi Yamaoka wrote: >>> When I use gnus-dired-attach while the cursor is on a >>> file in dired buffer it results in >> >>> Invalid function: gnus-setup-message > This is bug 1060. > http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1060 >> + ;; Load the `gnus-setup-message' macro that `gnus-dired-attach' uses. >> + (require 'gnus-msg) > For me, this has the problem described in bug #1060: > emacs -Q > C-x d > M-x turn-on-gnus-dired-mode > just sits there showing the Gnus logo (though it does seem to work if > one just kills the logo buffer). > Oh, but I see you installed a different change. This has the other > problem described in bug 1060: > emacs -Q > C-x d > M-x turn-on-gnus-dired-mode > mark file > C-c C-m C-a > void-variable gnus-article-reply > Note one of the goals of FOR-RELEASE is to "minimize Gnus dependencies > in gnus-dired.el" (see also the comments in gnus-dired: "These are > used only if the user customizes `gnus-dired-mail-mode' to use Message > and/or Gnus"). So it would be nice if gnus-dired did not > unconditionally require other Gnus features. Oops. So, what I did was only having fixed the byte code that was made so as to funcall a macro symbol. I didn't think that gnus-dired.el is used without launching Gnus. But I may not be wrong at least in `C-c C-m C-a' (gnus-dired-attach). Why one wishes to use `C-c C-m C-a' is that one wants to use one's Gnus configuration for message sending, message archiving, etc. So, it is not unreasonable requirement that one has to run Gnus in advance, is it? How about making it stop with a warning like "You must run Gnus first"? OTOH, `report-emacs-bug', if `mail-user-agent' is set to `gnus-user-agent', loads many Gnus modules, but doesn't necessarily require running Gnus. If `gnus-dired-attach' has to be improved to get to be like it, it will take time. I don't feel like doing it very much, though. For the other gnus-dired features, `gnus-dired-find-file-mailcap' and `gnus-dired-print', they have no inevitability to be prefixed with `gnus-', I think. Regards,