emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: attaching a file in dired mode


From: Katsumi Yamaoka
Subject: Re: attaching a file in dired mode
Date: Mon, 23 Feb 2009 16:12:33 +0900
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux)

>>>>> 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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]