From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Rauchenwald Newsgroups: gmane.emacs.bugs Subject: bug#1060: 23.0.60; gnus-dired-mode: Invalid function: gnus-setup-message Date: Fri, 03 Oct 2008 18:41:48 +0200 Message-ID: <878wt5y6k3.fsf@sec.modprobe.de> References: <87zllpefnb.fsf@sec.modprobe.de> Reply-To: Tom Rauchenwald , 1060@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223053880 26929 80.91.229.12 (3 Oct 2008 17:11:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2008 17:11:20 +0000 (UTC) To: 1060@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 03 19:12:16 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KloBs-0002Kb-Ad for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 19:11:44 +0200 Original-Received: from localhost ([127.0.0.1]:55180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KloAp-0003s7-5W for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 13:10:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KloAD-0003cC-4h for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 13:10:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KloAB-0003bN-Oe for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 13:10:00 -0400 Original-Received: from [199.232.76.173] (port=35065 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KloAB-0003bB-BP for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 13:09:59 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48161) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KloAA-0001xA-QM for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 13:09:59 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m93H9uxQ012060; Fri, 3 Oct 2008 10:09:56 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m93Go3ZV006553; Fri, 3 Oct 2008 09:50:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Tom Rauchenwald Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , Gnus Resent-Date: Fri, 03 Oct 2008 16:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1060 X-Emacs-PR-Package: emacs,gnus X-Emacs-PR-Keywords: Original-Received: via spool by 1060-submit@emacsbugs.donarmstrong.com id=B1060.12230521255292 (code B ref 1060); Fri, 03 Oct 2008 16:50:03 +0000 Original-Received: (at 1060) by emacsbugs.donarmstrong.com; 3 Oct 2008 16:42:05 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m93Gg0VF005286 for <1060@emacsbugs.donarmstrong.com>; Fri, 3 Oct 2008 09:42:02 -0700 Original-Received: (qmail invoked by alias); 03 Oct 2008 16:41:54 -0000 Original-Received: from 77.119.140.178.wireless.dyn.drei.com (EHLO walter) [77.119.140.178] by mail.gmx.net (mp011) with SMTP; 03 Oct 2008 18:41:54 +0200 X-Authenticated: #10706886 X-Provags-ID: V01U2FsdGVkX18xENYG2aAxGGq0CK+f6MYSrJN8QN5OWi7mV4AldZ orVfIB8sjZRKC0 Original-Received: by walter (Postfix, from userid 1000) id 19EC834C86B; Fri, 3 Oct 2008 18:41:48 +0200 (CEST) In-Reply-To: <87zllpefnb.fsf@sec.modprobe.de> (Tom Rauchenwald's message of "Tue, 30 Sep 2008 18:56:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 03 Oct 2008 13:10:00 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21048 Archived-At: Tom Rauchenwald 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