Gnus development mailing list
 help / color / mirror / Atom feed
From: david.goldberg6@verizon.net (Dave Goldberg)
To: ding@gnus.org
Subject: Re: gnus-dired-attach, optionally type?
Date: Sun, 16 Jun 2013 00:35:26 -0400	[thread overview]
Message-ID: <84txkyllkh.fsf@davestoy.homelinux.org> (raw)
In-Reply-To: <87ehc49wdd.fsf@mat.ucm.es> (Uwe Brauer's message of "Sat, 15 Jun	2013 00:10:38 +0200")

> [...]
> Then it works as I expect, however the interactive call of that function
> is too complicated for me, usually I would do a

> (defun my-dired-attach (&optional arg)
>   (interactive "P")
>    (if arg
>    (New code)
>    (old code)))

It looks like you are writing a modified version of gnus-dired-attach, along with the above wrapper.  If that's correct then I think this will work.  I haven't tested with this specific case, but it's worked for others:

(defun my-dired-attach (&optional arg)
  (interactive "P")
  (if arg
      (call-interactively 'modified-gnus-dired-attach)
    (call-interactively 'gnus-dired-attach)))

I think you can do something similar with defadvice but I haven't used that.

-- 
Dave Goldberg
david.goldberg6@verizon.net



  reply	other threads:[~2013-06-16  4:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-14 12:13 Uwe Brauer
2013-06-14 14:49 ` Eric S Fraga
2013-06-14 20:57   ` Uwe Brauer
2013-06-14 22:10   ` Uwe Brauer
2013-06-16  4:35     ` Dave Goldberg [this message]
2013-06-16  7:50       ` Uwe Brauer

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

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

  git send-email \
    --in-reply-to=84txkyllkh.fsf@davestoy.homelinux.org \
    --to=david.goldberg6@verizon.net \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).