From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Re: Gnus: How to simplify file attachments? Date: Mon, 9 Jan 2012 09:09:34 +0100 Message-ID: <8E3C5909-7039-4465-8379-8FFB9AB10CB3@math.ethz.ch> References: <1D83305A-6FE0-44A7-A74D-D2681520068F@math.ethz.ch> <4C9CC024-8FB9-4DAD-A795-9CACEE9CCE66@math.ethz.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326096608 3119 80.91.229.12 (9 Jan 2012 08:10:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2012 08:10:08 +0000 (UTC) Cc: Lars Magne Ingebrigtsen , help-gnu-emacs@gnu.org To: Leo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 09 09:10:01 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RkAIq-0005od-9M for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2012 09:10:00 +0100 Original-Received: from localhost ([::1]:50347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkAIm-0004cE-OX for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Jan 2012 03:09:56 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkAIY-0004FL-I7 for help-gnu-emacs@gnu.org; Mon, 09 Jan 2012 03:09:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkAIT-0001SQ-UO for help-gnu-emacs@gnu.org; Mon, 09 Jan 2012 03:09:42 -0500 Original-Received: from edge10.ethz.ch ([82.130.75.186]:9237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkAIT-0001S9-Kn for help-gnu-emacs@gnu.org; Mon, 09 Jan 2012 03:09:37 -0500 Original-Received: from CAS12.d.ethz.ch (172.31.38.212) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.1.355.2; Mon, 9 Jan 2012 09:09:34 +0100 Original-Received: from 80-218-246-165.dclient.hispeed.ch (80.218.246.165) by CAS12.d.ethz.ch (172.31.38.212) with Microsoft SMTP Server (TLS) id 14.1.355.2; Mon, 9 Jan 2012 09:09:35 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Originating-IP: [80.218.246.165] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.130.75.186 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83422 Archived-At: I realized that I can "customize" dnd-protocol-alist. I added the three = lines as in Leo's setup (mml-dnd-attach-file, dnd-open-file, = mml-dnd-attach-file) [I even used the same order]. Still, drag-and-drop = of files to a new message buffer includes the file contents, not the = file as attachment. Do I need to install anything to get this feature? Cheers, Marius On 2012-01-08, at 13:19 , Leo wrote: > On 2012-01-07 23:45 +0800, Marius Hofert wrote: >> Can you explain how, please? >> If I DnD a .pdf to a new message buffer (Gnus v5.13, Emacs 24, Mac OS >> X 10.7.2), the *code* of the .pdf file is inserted, not a link to the >> .pdf file as attachment. To be more precise, a huge amount of code is >> inserted starting with "%PDF-1.5..." (as if you look at the .pdf file >> as .txt). >> Furthermore, DnD of an attachment out of a received email also did = not work under my setup above. I just can't "grab" the .pdf.=20 >>=20 >> Cheers, >>=20 >> Marius >=20 > I just used the mouse to drop a file on to this buffer. Worked > perfectly. I am using emacs-23(Macport) + gnus(from emacs-24). >=20 > ,----[ leading # removed ] > | > | > `---- >=20 > Check dnd-protocol-alist, see if you have mml-dnd-attach-file in it. >=20 > ,----[ C-h v dnd-protocol-alist RET ] > [snipped 18 lines] > | This variable was introduced, or its default value was changed, in > | version 22.1 of Emacs. > |=20 > | Value: (("^file:///" . mml-dnd-attach-file) > | ("^file://" . dnd-open-file) > | ("^file:" . mml-dnd-attach-file) > | ("^file:///" . dnd-open-local-file) > | ("^file://" . dnd-open-file) > | ("^file:" . dnd-open-local-file) > | ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file)) > |=20 > | Original value was=20 > | (("^file:///" . dnd-open-local-file) > | ("^file://" . dnd-open-file) > | ("^file:" . dnd-open-local-file) > | ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file)) > |=20 > | Local in buffer *unsent wide reply to Marius Hofert*; global value = is=20 > | (("^file:///" . dnd-open-local-file) > | ("^file://" . dnd-open-file) > | ("^file:" . dnd-open-local-file) > | ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file)) > `----