From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7665 Path: news.gmane.org!not-for-mail From: Andreas Seltenreich Newsgroups: gmane.emacs.gnus.user Subject: Re: [help] attachment description default to file name Date: Sat, 15 Jul 2006 15:31:02 +0200 Message-ID: <87r70nngfd.fsf@gate450.dyndns.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152970299 18662 80.91.229.2 (15 Jul 2006 13:31:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2006 13:31:39 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Jul 15 15:31:16 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G1kEi-0001Y4-NZ for gegu-info-gnus-english@m.gmane.org; Sat, 15 Jul 2006 15:31:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1kEi-00059z-6g for gegu-info-gnus-english@m.gmane.org; Sat, 15 Jul 2006 09:31:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G1kEf-00059i-3E for info-gnus-english@gnu.org; Sat, 15 Jul 2006 09:31:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G1kEd-00059V-FG for info-gnus-english@gnu.org; Sat, 15 Jul 2006 09:31:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1kEd-00059S-A6 for info-gnus-english@gnu.org; Sat, 15 Jul 2006 09:31:07 -0400 Original-Received: from [129.13.185.218] (helo=smtp2.rz.uni-karlsruhe.de) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G1kGr-0003Hl-05 for info-gnus-english@gnu.org; Sat, 15 Jul 2006 09:33:25 -0400 Original-Received: from rzstud2.stud.uni-karlsruhe.de (exim@rzstud2.stud.uni-karlsruhe.de [193.196.41.38]) by smtp2.rz.uni-karlsruhe.de with esmtp (Exim 4.50 #1) id 1G1kEa-0007oT-BF; Sat, 15 Jul 2006 15:31:04 +0200 Original-Received: from uwi7 by rzstud2.stud.uni-karlsruhe.de with local (Exim 4.43) id 1G1kEZ-0002NP-UW for info-gnus-english@gnu.org; Sat, 15 Jul 2006 15:31:04 +0200 Original-To: info-gnus-english@gnu.org X-Face: $:F<87a[gD1?#R6S3j21cr1&C&7bd63GHC.tSdskUb}hhwG(ci*=D5kJ<_N+p9q(7-, PnG. Et.Yh (Leon's message of "Wed, 21 Jun 2006 15:14:36 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7665 Archived-At: Leon 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