From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: Re: org-download.el Date: Mon, 19 Jan 2015 09:28:22 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD7hA-0007zb-Tw for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 03:28:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YD7h9-00071x-RT for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 03:28:24 -0500 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:47857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD7h9-00071X-LQ for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 03:28:23 -0500 Received: by mail-we0-f169.google.com with SMTP id p10so6482806wes.0 for ; Mon, 19 Jan 2015 00:28:23 -0800 (PST) In-Reply-To: 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: Chao Lu Cc: emacs-orgmode > 2. As I'm testing now, I can get a "Wrong type argument: > number-or-marker-p, nil" error if the org-mode file in question is > empty or the cursor is before the first heading. Is this the case for > you? > I'll fix this case soon anyway. > -- Not really, I made a test.org then insert some heading, then tried > (org-download-yank) with the web address on top of kill-ring, which did not > trig the download events as well. It is important that the point should be not before the first heading. Is this the case? Also, are you using the Github version? I haven't yet propagated the changes to the org-contrib version. > 3. If this doesn't work, try the following simplified function: > > (defun org-download-yank-1 () > (interactive) > (let ((filename "./foo.png")) > (org-download--image > "https://www.google.nl/images/srpr/logo11w.png" > filename) > (insert (format "[[%s]]" filename)) > (org-display-inline-images))) > > -- This one works! The google logo gets into my test.org buffer, which is a > good signal~ OK, this means that at least `org-download-yank` can be fixed very soon. And, as I recall, the dnd works for some OSX users. Let's not bother the nice org-people and continue the discussion here: https://github.com/abo-abo/org-download/issues/11 regards, Oleh