[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#1060: 23.0.60; gnus-dired-mode: Invalid function: gnus-setup-message
From: |
Tom Rauchenwald |
Subject: |
bug#1060: 23.0.60; gnus-dired-mode: Invalid function: gnus-setup-message |
Date: |
Fri, 03 Oct 2008 18:41:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Tom Rauchenwald <its.sec@gmx.net> writes:
> emacs -Q
> Visit a directory with dired and turn on gnus-dired-mode
> C-x d RET
> M-x turn-on-gnus-dired-mode RET
> Mark a file, and hit C-c C-m C-a
>
> A message-buffer appears, but the selected file isn't attached and
> Invalid function: gnus-setup-message is shown in the echo-area.
The following patch seems to fix it for me, although i am not sure it is
correct. I figured that the problem is caused because the macro
gnus-setup-message isn't expanded because it is autoloaded, so I
required it at compile-time.
Tom
--- gnus-dired.el.~1.13.~ 2008-05-10 22:57:34.000000000 +0200
+++ gnus-dired.el 2008-10-03 18:21:25.000000000 +0200
@@ -40,6 +40,8 @@
;;; Code:
(require 'dired)
+(eval-when-compile
+ (require 'gnus-msg))
(autoload 'mml-attach-file "mml")
(autoload 'mm-default-file-encoding "mm-decode");; Shift this to `mailcap.el'?
(autoload 'mailcap-extension-to-mime "mailcap")
@@ -53,7 +55,6 @@
;; 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