From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: Re: Drag images from Firefox to org-mode Date: Fri, 18 Oct 2013 07:29:43 +0200 Message-ID: <87k3hbqh88.fsf@yahoo.fr> References: <871u3krrt3.fsf@yahoo.fr> <87r4bkq7g7.fsf@yahoo.fr> <8bb344a96ebde88ceca14f1b523bd5a8@mail.rickster.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX2cl-0002lQ-Gw for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 01:29:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VX2cf-0003sf-AC for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 01:29:23 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:55683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX2cf-0003s1-3u for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 01:29:17 -0400 In-Reply-To: <8bb344a96ebde88ceca14f1b523bd5a8@mail.rickster.com> (Rick Frankel's message of "Thu, 17 Oct 2013 12:51:52 -0400") 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: Rick Frankel Cc: emacs-orgmode@gnu.org Rick Frankel writes: > One small problem, should be =(1+ (point))=, as the above leaves a > blank newline at the head of the jpg, making it invalid. Oops, yes [Initially I had (search-forward "\n\n"), which worked fine,... then changed my mind and didn't test. Silly me.] Your code downloaded two images easily, but > (signal :error (cdr err)))) signals a weird error for me (something like: "error in process filter: if: peculiar error: http, 404"). I suggest: (error "Error fetching URL %s: %s" url (cdr err)) -- Nico.