From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Sending attachments Date: Tue, 07 Jul 2009 20:16:15 -0400 Message-ID: References: <87k52rzyn1.fsf@benthic.rattlesnake.com> <873a9fw6dt.fsf@catnip.gol.com> <87y6r7yp1y.fsf@stupidchicken.com> <87ljn1dcc4.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1247012225 17444 80.91.229.12 (8 Jul 2009 00:17:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 00:17:05 +0000 (UTC) Cc: cyd@stupidchicken.com, miles@gnu.org, ams@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 08 02:16:58 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MOKqH-0000OR-Eb for ged-emacs-devel@m.gmane.org; Wed, 08 Jul 2009 02:16:57 +0200 Original-Received: from localhost ([127.0.0.1]:57526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOKqG-0003yt-PS for ged-emacs-devel@m.gmane.org; Tue, 07 Jul 2009 20:16:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOKpj-0003nT-GT for emacs-devel@gnu.org; Tue, 07 Jul 2009 20:16:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOKpf-0003kc-SQ for emacs-devel@gnu.org; Tue, 07 Jul 2009 20:16:23 -0400 Original-Received: from [199.232.76.173] (port=49465 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOKpf-0003kW-NQ for emacs-devel@gnu.org; Tue, 07 Jul 2009 20:16:19 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:45107) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOKpf-0008AI-JE for emacs-devel@gnu.org; Tue, 07 Jul 2009 20:16:19 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MOKpb-0002Os-Sp; Tue, 07 Jul 2009 20:16:16 -0400 In-reply-to: (message from Andreas Schwab on Tue, 07 Jul 2009 14:19:29 +0200) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:112153 Archived-At: > Etach has a convenient interface M-x attach which attaches a file in > the message in the current buffer. As does MML (mml-attach-file). It isn't in the emacs-mime manual so I did not know about it. I tried it just now. It asked me a lot of questions and then inserted this text. <#part type="text/x-sh" filename="~/foo.sh" disposition=inline description=foo> <#/part> I suppose this is MML and needs to get converted later. However, when I sent the message with C-c C-c, it did not convert. I don't see that it set up any hook to do so. After a lot of searching thru that manual I found the function mml-to-mime. If mml-to-mime were put on a hook so that C-c C-c would call it, this feature would be usable. A suitable front-end to mml-attach-file could avoid asking all the annoying questions. It would only be necessary to document it. However, that hook could also cause trouble, since it might trigger by accident when users did not intend it. Another drawback, compared with etach-detach, is that you don't see what is really going to appear in the message.