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: Sun, 8 Jan 2012 16:46:35 +0100 Message-ID: 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 1326037609 15031 80.91.229.12 (8 Jan 2012 15:46:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2012 15:46:49 +0000 (UTC) Cc: Emacs help To: Leo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 08 16:46:46 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 1RjuxJ-0007tI-LN for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jan 2012 16:46:45 +0100 Original-Received: from localhost ([::1]:38228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjuxJ-0000Nz-3r for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jan 2012 10:46:45 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjuxF-0000Nq-AE for help-gnu-emacs@gnu.org; Sun, 08 Jan 2012 10:46:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjuxD-0004Vk-MX for help-gnu-emacs@gnu.org; Sun, 08 Jan 2012 10:46:41 -0500 Original-Received: from edge20.ethz.ch ([82.130.99.26]:38070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjuxD-0004VW-8w for help-gnu-emacs@gnu.org; Sun, 08 Jan 2012 10:46:39 -0500 Original-Received: from CAS20.d.ethz.ch (172.31.51.110) by edge20.ethz.ch (82.130.99.26) with Microsoft SMTP Server (TLS) id 14.1.355.2; Sun, 8 Jan 2012 16:46:35 +0100 Original-Received: from 80-218-246-165.dclient.hispeed.ch (80.218.246.165) by CAS20.d.ethz.ch (172.31.51.110) with Microsoft SMTP Server (TLS) id 14.1.355.2; Sun, 8 Jan 2012 16:46: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.99.26 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:83414 Archived-At: 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 I don't have the first three lines in my dnd-protocol-alist. You can I get them?=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 this is what I have. Cheers, Marius > | 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)) > `----