unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: Glenn Morris <rgm@gnu.org>
Cc: Eythan Weg <eythanweg@gmail.com>, ding@gnus.org, emacs-devel@gnu.org
Subject: Re: attaching a file in dired mode
Date: Tue, 24 Feb 2009 08:41:50 +0900	[thread overview]
Message-ID: <b4m8wnwyb41.fsf@jpl.org> (raw)
In-Reply-To: 9beixphsju.fsf@fencepost.gnu.org

>>>>> Glenn Morris wrote:
> Katsumi Yamaoka wrote:

>>> When I use  gnus-dired-attach while the cursor is on a
>>> file in dired buffer it results in
>>
>>>        Invalid function:   gnus-setup-message

> This is bug 1060.

> http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1060

>> + ;; Load the `gnus-setup-message' macro that `gnus-dired-attach' uses.
>> + (require 'gnus-msg)

> For me, this has the problem described in bug #1060:

> emacs -Q
> C-x d
> M-x turn-on-gnus-dired-mode

> just sits there showing the Gnus logo (though it does seem to work if
> one just kills the logo buffer).

> Oh, but I see you installed a different change. This has the other
> problem described in bug 1060:

> emacs -Q
> C-x d
> M-x turn-on-gnus-dired-mode
> mark file
> C-c C-m C-a

> void-variable gnus-article-reply

> Note one of the goals of FOR-RELEASE is to "minimize Gnus dependencies
> in gnus-dired.el" (see also the comments in gnus-dired: "These are
> used only if the user customizes `gnus-dired-mail-mode' to use Message
> and/or Gnus"). So it would be nice if gnus-dired did not
> unconditionally require other Gnus features.

Oops.  So, what I did was only having fixed the byte code that
was made so as to funcall a macro symbol.  I didn't think that
gnus-dired.el is used without launching Gnus.  But I may not be
wrong at least in `C-c C-m C-a' (gnus-dired-attach).  Why one
wishes to use `C-c C-m C-a' is that one wants to use one's Gnus
configuration for message sending, message archiving, etc.  So,
it is not unreasonable requirement that one has to run Gnus in
advance, is it?  How about making it stop with a warning like
"You must run Gnus first"?

OTOH, `report-emacs-bug', if `mail-user-agent' is set to
`gnus-user-agent', loads many Gnus modules, but doesn't necessarily
require running Gnus.  If `gnus-dired-attach' has to be improved
to get to be like it, it will take time.  I don't feel like doing
it very much, though.

For the other gnus-dired features, `gnus-dired-find-file-mailcap'
and `gnus-dired-print', they have no inevitability to be prefixed
with `gnus-', I think.

Regards,




  reply	other threads:[~2009-02-23 23:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87tz6p1c85.fsf@gmail.com>
2009-02-23  7:12 ` attaching a file in dired mode Katsumi Yamaoka
2009-02-23 19:17   ` Glenn Morris
2009-02-23 23:41     ` Katsumi Yamaoka [this message]
2009-02-24 18:23       ` Glenn Morris
2009-02-25  2:26         ` Katsumi Yamaoka
2009-02-25  3:59           ` Glenn Morris
2009-02-24 14:48   ` Eythan Weg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4m8wnwyb41.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=eythanweg@gmail.com \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).