[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus: How to simplify file attachments?

From: Uday Reddy
Subject: Re: Gnus: How to simplify file attachments?
Date: Mon, 16 Jan 2012 19:02:26 +0000
User-agent: Thunderbird (Windows/20090812)

Hofert Jan Marius wrote:
>  So it seems to be a problem on Mac OS X. 
> Any ideas? 

Yes, the Mac (NextStep) version of Emacs seem to use a different
protocol.  Here is what we do in VM:

1. In the keymap for messaging, we have

    (define-key map [ns-drag-file] 'vm-ns-attach-file)

2. vm-ns-attach-file is defined as:

(defun vm-ns-attach-file ()
  "Insert a drag and drop file as a MIME attachment in a VM
composition buffer.  This is a version of `vm-dnd-attach-file'
that is needed for Mac and NextStep."
  (let ((file (car ns-input-file))
    (unless vm-send-using-mime
      (error (concat "MIME attachments disabled, "
                     "set vm-send-using-mime non-nil to enable.")))
    (when (and file (file-regular-p file))
      (setq ns-input-file (cdr ns-input-file))
      (setq type (or (vm-mime-default-type-from-filename file)
      (vm-attach-file file type))))

This doesn't solve the problem for you in Gnus.  But, something similar
would be needed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]