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:03:01 -0400 Message-ID: <2d5635af9ad6d51badb40e1e19c85572@mail.rickster.com> References: <87eh7irjvi.fsf@yahoo.fr> <52610C29.3000505@yahoo.fr> <526114B4.6060303@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXBZy-00062A-GQ for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 11:03:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXBZt-0007iO-Oh for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 11:03:06 -0400 Received: from [204.62.15.78] (port=39920 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXBZt-0007i8-LP for emacs-orgmode@gnu.org; Fri, 18 Oct 2013 11:03:01 -0400 In-Reply-To: <526114B4.6060303@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 07:00, Nicolas Richard wrote: > [re-adding emacs-orgmode@gnu.org to cc, I don't know when it got lost] >=20 > Le 18/10/2013 12:44, Oleh a =C3=A9crit : > I attach the downloaded google logo. I missed an email here... can you send me the url to the image you are having problems with? I just tried the google png on the home page (logo11w.png), and have no problems. Also, please try the updated version of fetch-image (in another thread, duplicated below). FYI, I am use Emacs. 24.3 with the included url.el. rick #+BEGIN_SRC emacs-lisp (defun fetch-image (url &optional destdir) (url-retrieve url (lambda (status url destdir) (let ((err (plist-get status :error))) (if err (error "\"%s\" %s." url (downcase (nth 2 (assq (nth 2 err) url-http-codes)))))) (delete-region (point-min) (progn (re-search-forward "^$" nil 'move) (1+ (point)))) (write-file (expand-file-name (file-name-nondirectory url) destdir)) (when (display-graphic-p) (pop-to-buffer (current-buffer)))) `(,url ,destdir) nil t)) #+END_SRC