From mboxrd@z Thu Jan 1 00:00:00 1970 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: Mon, 23 Feb 2009 16:12:33 +0900 Organization: Emacsen advocacy group Message-ID: References: <87tz6p1c85.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235373183 4076 80.91.229.12 (23 Feb 2009 07:13:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2009 07:13:03 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org To: Eythan Weg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 23 08:14:19 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 1LbV18-0006DV-Ro for ged-emacs-devel@m.gmane.org; Mon, 23 Feb 2009 08:14:19 +0100 Original-Received: from localhost ([127.0.0.1]:57769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbUzn-0001SY-Ib for ged-emacs-devel@m.gmane.org; Mon, 23 Feb 2009 02:12:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LbUzi-0001S3-CZ for emacs-devel@gnu.org; Mon, 23 Feb 2009 02:12:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LbUzg-0001Rj-LP for emacs-devel@gnu.org; Mon, 23 Feb 2009 02:12:49 -0500 Original-Received: from [199.232.76.173] (port=34974 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LbUzg-0001Rg-Gd for emacs-devel@gnu.org; Mon, 23 Feb 2009 02:12:48 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]:47776) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LbUzg-0004Tv-5g for emacs-devel@gnu.org; Mon, 23 Feb 2009 02:12:48 -0500 Original-Received: from localhost ([127.0.0.1]:60379) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1LbUzZ-0002FI-2B; Mon, 23 Feb 2009 01:12:41 -0600 X-Hashcash: 1:20:090223:eythanweg@gmail.com::9xpNUy4LKgr6lNWf:0000000000000000000000000000000000000000000qyN X-Hashcash: 1:20:090223:ding@gnus.org::mjctZxdChVvR33K3:00007M0S X-Hashcash: 1:20:090223:emacs-devel@gnu.org::/LXYP5gqeGCh85iX:0000000000000000000000000000000000000000000rvS 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:2/HKA65yTZTPF0uzusWHHed/ukk= 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:109297 gmane.emacs.gnus.general:68326 Archived-At: >>>>> Eythan Weg wrote: > Hi, > When I use gnus-dired-attach while the cursor is on a > file in dired buffer it results in > Invalid function: gnus-setup-message > Attaching a file works correctly when a mail > buffer exists. > What should be expected? > I use gnus in a recent cvs emacs > Thanks, Eythan This happens with Gnus bundled with Emacs. `gnus-setup-message' is a macro that should be provided when compiling gnus-dired.el, however I realized it is not loaded when compiling gnus-dired.el along with Emacs (no problem when performing `make' on No Gnus). I've fixed it in the Emacs trunk as follows: --8<---------------cut here---------------start------------->8--- *** gnus-dired.el~ Mon Jan 5 03:21:57 2009 --- gnus-dired.el Mon Feb 23 06:58:34 2009 *************** *** 53,61 **** ;; Autoloads to avoid byte-compiler warnings. These are used only if the user ;; customizes `gnus-dired-mail-mode' to use Message and/or Gnus. (autoload 'message-buffers "message") - (autoload 'gnus-setup-message "gnus-msg") (autoload 'gnus-print-buffer "gnus-sum") (defvar gnus-dired-mode nil "Minor mode for intersections of MIME mail composition and dired.") --- 53,63 ---- ;; Autoloads to avoid byte-compiler warnings. These are used only if the user ;; customizes `gnus-dired-mail-mode' to use Message and/or Gnus. (autoload 'message-buffers "message") (autoload 'gnus-print-buffer "gnus-sum") + ;; Load the `gnus-setup-message' macro that `gnus-dired-attach' uses. + (require 'gnus-msg) + (defvar gnus-dired-mode nil "Minor mode for intersections of MIME mail composition and dired.") --8<---------------cut here---------------end--------------->8--- Note: using `eval-when-compile' generates useless warnings. Regards,