Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Andreas Seltenreich <seltenreich@gmx.de>
Subject: Re: [help] attachment description default to file name
Date: Sat, 15 Jul 2006 15:31:02 +0200	[thread overview]
Message-ID: <87r70nngfd.fsf@gate450.dyndns.org> (raw)
In-Reply-To: <m264iufveb.fsf@sl392.st-edmunds.cam.ac.uk> (Leon's message of "Wed, 21 Jun 2006 15:14:36 +0100")

Leon <sdl.web@gmail.com> writes:

> When attaching a file, there is a "one line description:"? How can I
> set it default to the file name? I find it useful because when I
> download the attachment from webmail interface the description is the
> file name to save.

You could write a function that wraps around mml-attach-file and use
that instead. E.g. (untested):

--8<---------------cut here---------------start------------->8---
(defun my-attach-file (file &optional type description disposition)
  (interactive
   (let* ((file (mml-minibuffer-read-file "Attach file: "))
	  (type (mml-minibuffer-read-type file))
	  (description
	   (read-string
	    (format "One line description (default %s): " file) nil nil file))
	  (disposition (mml-minibuffer-read-disposition type)))
	  (list file type description disposition)))
  (mml-attach-file file type description disposition))
--8<---------------cut here---------------end--------------->8---

regards,
andreas

  reply	other threads:[~2006-07-15 13:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-21 14:14 Leon
2006-07-15 13:31 ` Andreas Seltenreich [this message]
2006-07-15 14:30   ` Leon

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=87r70nngfd.fsf@gate450.dyndns.org \
    --to=seltenreich@gmx.de \
    /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).