From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Drag images from Firefox to org-mode Date: Fri, 18 Oct 2013 11:44:14 -0400 Message-ID: <35dda135c29c438c399484a99f0d1535@mail.rickster.com> References: <87eh7irjvi.fsf@yahoo.fr> <52610C29.3000505@yahoo.fr> <526114B4.6060303@yahoo.fr> <2d5635af9ad6d51badb40e1e19c85572@mail.rickster.com> <87y55qpp44.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXCED-00012y-Ls for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 11:44:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXCE7-0004eg-Mm for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 11:44:41 -0400 Received: from [204.62.15.78] (port=41431 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXCE7-0004eU-Iz for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 11:44:35 -0400 In-Reply-To: <87y55qpp44.fsf@yahoo.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Richard Cc: org mode , Oleh On 2013-10-18 11:36, Nicolas Richard wrote: > Note that using > (let ((coding-system-for-write 'no-conversion)) > (write-region nil nil filename nil nil nil 'confirm)) > instead of > (write-file ...) > seemed to fix the problem for Oleh. got it. BTW, you might want to add the error message cleanup (i can't do a branch/pull request from where i am right now). Here's a diff: --- org-download.el 2013-10-18 11:40:21.879753800 -0400 +++ org-download.el.new 2013-10-18 11:41:45.742415000 -0400 @@ -108,7 +108,8 @@ "Write current buffer to FILENAME and update inline images in BUFFER" (let ((err (plist-get status :error))) (if err - (signal :error (cdr err)))) + (error "\"%s\" %s." url + (downcase (nth 2 (assq (nth 2 err) url-http-codes)))))) (delete-region (point-min) (progn rick