GNU bug report logs -
#1060
23.0.60; gnus-dired-mode: Invalid function: gnus-setup-message
Previous Next
Reported by: Tom Rauchenwald <its.sec <at> gmx.net>
Date: Tue, 30 Sep 2008 17:05:05 UTC
Severity: normal
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Tom Rauchenwald <its.sec <at> 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
This bug report was last modified 15 years and 189 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.