[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnus: How to simplify file attachments?
From: |
Marius Hofert |
Subject: |
Re: Gnus: How to simplify file attachments? |
Date: |
Mon, 9 Jan 2012 09:09:34 +0100 |
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.
>>
>> Cheers,
>>
>> Marius
>
> 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).
>
> ,----[ leading # removed ]
> | <part filename="/Users/leo/Downloads/paper.pdf" disposition=attachment>
> | </part>
> `----
>
> Check dnd-protocol-alist, see if you have mml-dnd-attach-file in it.
>
> ,----[ 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.
> |
> | 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))
> |
> | Original value was
> | (("^file:///" . dnd-open-local-file)
> | ("^file://" . dnd-open-file)
> | ("^file:" . dnd-open-local-file)
> | ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file))
> |
> | Local in buffer *unsent wide reply to Marius Hofert*; global value is
> | (("^file:///" . dnd-open-local-file)
> | ("^file://" . dnd-open-file)
> | ("^file:" . dnd-open-local-file)
> | ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file))
> `----
- Re: Gnus: How to simplify file attachments?, (continued)
- Re: Gnus: How to simplify file attachments?, Lars Magne Ingebrigtsen, 2012/01/05
- Message not available
- Re: Gnus: How to simplify file attachments?, Lars Magne Ingebrigtsen, 2012/01/06
- Re: Gnus: How to simplify file attachments?, Leo, 2012/01/06
- Re: Gnus: How to simplify file attachments?, Thierry Volpiatto, 2012/01/07
- Re: Gnus: How to simplify file attachments?, Marius Hofert, 2012/01/07
- Re: Gnus: How to simplify file attachments?, Thierry Volpiatto, 2012/01/07
- Re: Gnus: How to simplify file attachments?, Leo, 2012/01/08
- Re: Gnus: How to simplify file attachments?, Sivaram Neelakantan, 2012/01/08
- Re: Gnus: How to simplify file attachments?, Marius Hofert, 2012/01/08
- Re: Gnus: How to simplify file attachments?, Thierry Volpiatto, 2012/01/08
- Re: Gnus: How to simplify file attachments?,
Marius Hofert <=
Re: Gnus: How to simplify file attachments?, Hofert Jan Marius, 2012/01/11
Re: Gnus: How to simplify file attachments?, Uday Reddy, 2012/01/16