From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Lu Subject: org-download.el Date: Tue, 13 Jan 2015 02:49:16 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044282ac165d8f050c83dcd1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAwE3-0002sF-Ut for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 02:49:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAwE1-00047w-Of for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 02:49:19 -0500 Received: from mail-we0-x243.google.com ([2a00:1450:400c:c03::243]:45524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAwE1-00047q-I1 for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 02:49:17 -0500 Received: by mail-we0-f195.google.com with SMTP id q59so426258wes.2 for ; Mon, 12 Jan 2015 23:49:16 -0800 (PST) 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: emacs-orgmode@gnu.org --f46d044282ac165d8f050c83dcd1 Content-Type: text/plain; charset=UTF-8 Dear all, Does anyone get org-download.el to work under Mac OSX? I'm struggling to get it work, but it seems to help a lot, empowering org to handle images a lot easier. I believe I've installed org-download.el correctly, but when I'm dragging and drop the image into an org buffer, all I get is the link address inserted into the buffer, no downloading events trigger. I double checked a few things before coming here: - My system has both curl and download. - I've set the download image dir to ~/Downloads/Foo - The value of dnd-protocol-alist contains ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . org-download-dnd) The emacs I'm using is "GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org" Is there any thought what I should check? Best, Chao --f46d044282ac165d8f050c83dcd1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear all,

Does anyone get= org-download.el to work under Mac OSX? I'm struggling to get it work, = but it seems to help a lot, empowering org to handle images a lot easier.
I believe I've installed org-download.el correctly, bu= t when I'm dragging and drop the image into an org buffer, all I get is= the link address inserted into the buffer, no downloading events trigger.<= br>
I double checked a few things before coming here:
- My system has both curl and download.
- I've set= the download image dir to ~/Downloads/Foo
- The value of dnd= -protocol-alist contains ("^\\(https?\\|ftp\\|file\\|nfs\\)://" .= org-download-dnd)

The emacs I'm using is "= ;GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03= -13 on bob.porkrind.org"
Is there any thought what I should check?

Best,
Chao
--f46d044282ac165d8f050c83dcd1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "briangpowell ." Subject: Re: org-download.el Date: Tue, 13 Jan 2015 03:47:43 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1137c9381deab6050c84adf0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAx8c-0006N3-2f for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 03:47:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAx8a-0007AO-Av for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 03:47:46 -0500 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:59875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAx8a-0007AE-5K for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 03:47:44 -0500 Received: by mail-ob0-f175.google.com with SMTP id wp4so1457086obc.6 for ; Tue, 13 Jan 2015 00:47:43 -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 , Brian Powell Cc: emacs-orgmode --001a1137c9381deab6050c84adf0 Content-Type: text/plain; charset=UTF-8 * https://github.com/abo-abo/org-download/blob/master/org-download.el has: ... (defcustom org-download-backend t "Method to use for downloading." :type '(choice (const :tag "wget" "wget \"%s\" -O \"%s\"") (const :tag "curl" "curl \"%s\" -o \"%s\"") (const :tag "url-retrieve" t)) :group 'org-download) ... ** My guess: You don't have "wget" and/or "curl" on your Mac? On Tue, Jan 13, 2015 at 2:49 AM, Chao Lu wrote: > Dear all, > > Does anyone get org-download.el to work under Mac OSX? I'm struggling to > get it work, but it seems to help a lot, empowering org to handle images a > lot easier. > > I believe I've installed org-download.el correctly, but when I'm dragging > and drop the image into an org buffer, all I get is the link address > inserted into the buffer, no downloading events trigger. > > I double checked a few things before coming here: > - My system has both curl and download. > - I've set the download image dir to ~/Downloads/Foo > - The value of dnd-protocol-alist contains > ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . org-download-dnd) > > The emacs I'm using is "GNU Emacs 24.3.1 (x86_64-apple-darwin, NS > apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org" > > Is there any thought what I should check? > > Best, > > Chao > --001a1137c9381deab6050c84adf0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
* https://github.com/abo-abo/org-download/blob/master= /org-download.el has:

...
(defcustom = org-download-backend t
=C2=A0 "Method to use for downloading= ."
=C2=A0 :type '(choice
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (const :tag "wget" "wget \"%s\" -O \= "%s\"")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (const = :tag "curl" "curl \"%s\" -o \"%s\""= )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (const :tag "url-retrie= ve" t))
=C2=A0 :group 'org-download)
...
=

** My guess: You don't have "wget" = and/or "curl" on your Mac?


On Tue, Jan 13, 2015 at 2:4= 9 AM, Chao Lu <loochao.list@gmail.com> wrote:
Dear all,
=
Does anyone get org-download.el to work under Mac OSX? I'm st= ruggling to get it work, but it seems to help a lot, empowering org to hand= le images a lot easier.

I believe I've installed org-= download.el correctly, but when I'm dragging and drop the image into an= org buffer, all I get is the link address inserted into the buffer, no dow= nloading events trigger.

I double checked a few things be= fore coming here:
- My system has both curl and download.
=
- I've set the download image dir to ~/Downloads/Foo
- The value of dnd-protocol-alist contains ("^\\(https?\\|ftp\\= |file\\|nfs\\)://" . org-download-dnd)

The ema= cs I'm using is "GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-a= ppkit-1038.36) of 2013-03-13 on bob.porkrind.org"

Is there any thought wh= at I should check?

Best,

Chao

--001a1137c9381deab6050c84adf0-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: org-download.el Date: Tue, 13 Jan 2015 09:58:52 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAxJR-0006EC-TS for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 03:58:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAxJO-0003Oi-Lk for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 03:58:57 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAxJO-0003Oc-Fk for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 03:58:54 -0500 Received: by mail-wi0-f169.google.com with SMTP id n3so3563154wiv.0 for ; Tue, 13 Jan 2015 00:58:53 -0800 (PST) In-Reply-To: (briangpowell .'s message of "Tue, 13 Jan 2015 03:47:43 -0500") 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: "briangpowell ." Cc: emacs-orgmode , Chao Lu --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable "briangpowell ." writes: > * https://github.com/abo-abo/org-download/blob/master/org-download.el has: > > ... > (defcustom org-download-backend t > "Method to use for downloading." > :type '(choice > (const :tag "wget" "wget \"%s\" -O \"%s\"") > (const :tag "curl" "curl \"%s\" -o \"%s\"") > (const :tag "url-retrieve" t)) > :group 'org-download) > ... > > ** My guess: You don't have "wget" and/or "curl" on your Mac? either that, or they are not in the path used in emacs (are they installed via e.. homebrew?). Depending on how you set the paths, the emacs process might have different paths. Cheers, Rainer > > > On Tue, Jan 13, 2015 at 2:49 AM, Chao Lu wrote: > >> Dear all, >> >> Does anyone get org-download.el to work under Mac OSX? I'm struggling to >> get it work, but it seems to help a lot, empowering org to handle images= a >> lot easier. >> >> I believe I've installed org-download.el correctly, but when I'm dragging >> and drop the image into an org buffer, all I get is the link address >> inserted into the buffer, no downloading events trigger. >> >> I double checked a few things before coming here: >> - My system has both curl and download. >> - I've set the download image dir to ~/Downloads/Foo >> - The value of dnd-protocol-alist contains >> ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . org-download-dnd) >> >> The emacs I'm using is "GNU Emacs 24.3.1 (x86_64-apple-darwin, NS >> apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org" >> >> Is there any thought what I should check? >> >> Best, >> >> Chao >> =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUtN5NAAoJENvXNx4PUvmC1DYIALnHA2Njds6RAcUbO4vYzYjY BzlOoF5jF48MjI0Rdogu0BsLYCnIs0ICRmN3M+rE6hRHDhAr8Y4fdhChXwyR9H0n Y5rc6jeRtzsS1bdZEJhXlLtI9dY9CPY6EXHkfPdcalFb4ISsdy4sZlMOI+ooXuqn fNxxpVYh12ufi56ebvEZ/v/R55CDNWd0E1lvvTreoKmowVIsOMuJjCJouLpw6oZq jfvfevLh6DH5X/G6AfWAzH41i0ZlzClMV2XIyiQT8V41Xvm5mLMZLDZ1SZ74mxmt 8Kl6ssrIay63NnEeMoG4qkRPV3twM+qA2Tn5UM5k0EHmtuzqK2Cex6e5H7iV0Ek= =xDU/ -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Lu Subject: Re: org-download.el Date: Tue, 13 Jan 2015 11:47:43 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c37dd8be15ce050c8b61ab Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB4d7-0006Q1-SX for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 11:47:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YB4d6-0006Sg-Et for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 11:47:45 -0500 Received: from mail-wg0-x244.google.com ([2a00:1450:400c:c00::244]:64572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YB4d6-0006SR-33 for emacs-orgmode@gnu.org; Tue, 13 Jan 2015 11:47:44 -0500 Received: by mail-wg0-f68.google.com with SMTP id y19so1009874wgg.3 for ; Tue, 13 Jan 2015 08:47:43 -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: Rainer M Krug Cc: emacs-orgmode --001a11c37dd8be15ce050c8b61ab Content-Type: text/plain; charset=UTF-8 Thanks for the advice, but I've wget and curl installed through Mac ports. $ which crul => /usr/texbin/curl $ which wget => /usr/texbin/wget And the value of my exec-path is: ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/Applications/Documents/Emacs.app/Contents/MacOS/libexec" "/Applications/Documents/Emacs.app/Contents/MacOS/bin" "/Applications/Mathematics/MATLAB_R2014a.app/bin" "/Applications/Documents/Emacs.app/Contents/MacOS/bin" "*/usr/texbin*" "/opt/local/bin" "/usr/local/bin") which has included /usr/texbin Any thoughts? Thanks. On Tue, Jan 13, 2015 at 3:58 AM, Rainer M Krug wrote: > "briangpowell ." writes: > > > * https://github.com/abo-abo/org-download/blob/master/org-download.el > has: > > > > ... > > (defcustom org-download-backend t > > "Method to use for downloading." > > :type '(choice > > (const :tag "wget" "wget \"%s\" -O \"%s\"") > > (const :tag "curl" "curl \"%s\" -o \"%s\"") > > (const :tag "url-retrieve" t)) > > :group 'org-download) > > ... > > > > ** My guess: You don't have "wget" and/or "curl" on your Mac? > > either that, or they are not in the path used in emacs (are they > installed via e.. homebrew?). > > Depending on how you set the paths, the emacs process might have > different paths. > > Cheers, > > Rainer > > > > > > > On Tue, Jan 13, 2015 at 2:49 AM, Chao Lu wrote: > > > >> Dear all, > >> > >> Does anyone get org-download.el to work under Mac OSX? I'm struggling to > >> get it work, but it seems to help a lot, empowering org to handle > images a > >> lot easier. > >> > >> I believe I've installed org-download.el correctly, but when I'm > dragging > >> and drop the image into an org buffer, all I get is the link address > >> inserted into the buffer, no downloading events trigger. > >> > >> I double checked a few things before coming here: > >> - My system has both curl and download. > >> - I've set the download image dir to ~/Downloads/Foo > >> - The value of dnd-protocol-alist contains > >> ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . org-download-dnd) > >> > >> The emacs I'm using is "GNU Emacs 24.3.1 (x86_64-apple-darwin, NS > >> apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org" > >> > >> Is there any thought what I should check? > >> > >> Best, > >> > >> Chao > >> > > -- > Rainer M. Krug > email: Rainerkrugsde > PGP: 0x0F52F982 > --001a11c37dd8be15ce050c8b61ab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for the advice, but I've wget an= d curl installed through Mac ports.

$ which crul=C2=A0=C2=A0= =C2=A0 =3D> /usr/texbin/curl
$ which wget=C2=A0 =3D> /usr/te= xbin/wget

And the value of my exec-path is:
("/us= r/bin" "/bin" "/usr/sbin" "/sbin" "= /Applications/Documents/Emacs.app/Contents/MacOS/libexec" "/Appli= cations/Documents/Emacs.app/Contents/MacOS/bin" "/Applications/Ma= thematics/MATLAB_R2014a.app/bin" "/Applications/Documents/Emacs.a= pp/Contents/MacOS/bin" "/usr/texbin" "/opt/local= /bin" "/usr/local/bin")

which has included= /usr/texbin

Any thoughts?=C2=A0 Thanks.
<= div class=3D"gmail_extra">
On Tue, Jan 13, 20= 15 at 3:58 AM, Rainer M Krug <Rainer@krugs.de> wrote:
"briangpowell ." <<= a href=3D"mailto:briangpowellms@gmail.com">briangpowellms@gmail.com>= writes:

> * https://github.com/abo-abo/org-download/blob/= master/org-download.el has:
>
> ...
> (defcustom org-download-backend t
>=C2=A0 =C2=A0"Method to use for downloading."
>=C2=A0 =C2=A0:type '(choice
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(const :tag "wget" &= quot;wget \"%s\" -O \"%s\"")
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(const :tag "curl" &= quot;curl \"%s\" -o \"%s\"")
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(const :tag "url-retrieve= " t))
>=C2=A0 =C2=A0:group 'org-download)
> ...
>
> ** My guess: You don't have "wget" and/or "curl&quo= t; on your Mac?

either that, or they are not in the path used in emacs (are they
installed via e.. homebrew?).

Depending on how you set the paths, the emacs process might have
different paths.

Cheers,

Rainer

>
>
> On Tue, Jan 13, 2015 at 2:49 AM, Chao Lu <loochao.list@gmail.com> wrote:
>
>> Dear all,
>>
>> Does anyone get org-download.el to work under Mac OSX? I'm str= uggling to
>> get it work, but it seems to help a lot, empowering org to handle = images a
>> lot easier.
>>
>> I believe I've installed org-download.el correctly, but when I= 'm dragging
>> and drop the image into an org buffer, all I get is the link addre= ss
>> inserted into the buffer, no downloading events trigger.
>>
>> I double checked a few things before coming here:
>> - My system has both curl and download.
>> - I've set the download image dir to ~/Downloads/Foo
>> - The value of dnd-protocol-alist contains
>> ("^\\(https?\\|ftp\\|file\\|nfs\\)://" . org-download-dn= d)
>>
>> The emacs I'm using is "GNU Emacs 24.3.1 (x86_64-apple-da= rwin, NS
>> apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org"
>>
>> Is there any thought what I should check?
>>
>> Best,
>>
>> Chao
>>

--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

--001a11c37dd8be15ce050c8b61ab-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: Re: org-download.el Date: Thu, 15 Jan 2015 13:11:55 +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]:58818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBjHK-0007pj-Ue for emacs-orgmode@gnu.org; Thu, 15 Jan 2015 07:11:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBjHJ-0007J8-UO for emacs-orgmode@gnu.org; Thu, 15 Jan 2015 07:11:58 -0500 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:47898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBjHJ-0007J2-NG for emacs-orgmode@gnu.org; Thu, 15 Jan 2015 07:11:57 -0500 Received: by mail-wi0-f182.google.com with SMTP id h11so17292451wiw.3 for ; Thu, 15 Jan 2015 04:11:56 -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@gnu.org Hello, > Does anyone get org-download.el to work under Mac OSX? I'm struggling to get > it work, but it seems to help a lot, empowering org to handle images a lot > easier. > > I believe I've installed org-download.el correctly, but when I'm dragging > and drop the image into an org buffer, all I get is the link address > inserted into the buffer, no downloading events trigger. I'm the org-download author. I've mentioned these things on the tracker, but there's no harm to posting here additionally. I don't have OSX, so I can't test it. However, it should work in theory, since all tools used are portable. Try using `org-download-yank' first: this one does everything except drag-and-drop. Just right click and copy the image url in the browser, and call `org-download-yank' in Emacs. If it doesn't work, the issue is with dnd, otherwise it's with the downloading itself. The default `org-download-backend 'uses `url-retrieve', which is a part of Emacs, so if it doesn't work then it's an Emacs bug. regards, Oleh From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Lu Subject: Re: org-download.el Date: Sun, 18 Jan 2015 05:04:03 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c37dd85455dd050cea5394 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCmiE-0008OY-3j for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 05:04:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCmiC-0002Ox-VU for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 05:04:06 -0500 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:53110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCmiC-0002Ob-KQ for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 05:04:04 -0500 Received: by mail-wg0-f41.google.com with SMTP id a1so5067889wgh.0 for ; Sun, 18 Jan 2015 02:04:03 -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: Oleh Cc: emacs-orgmode --001a11c37dd85455dd050cea5394 Content-Type: text/plain; charset=UTF-8 Hi Oleh, Thanks for the detailed instruction. I just checked following your advice, by copying the address of the image (and by looking at the browser-ring, I can make sure the address has been there), then M-x org-download-yank, returns error: "if: Wrong type argument: number-or-marker-p, nil". Also I tried (org-download-yank "the-address-to-the-image"), which does not work either. Do you have any insight? Thanks. Best, Chao On Thu, Jan 15, 2015 at 7:11 AM, Oleh wrote: > Hello, > > > Does anyone get org-download.el to work under Mac OSX? I'm struggling to > get > > it work, but it seems to help a lot, empowering org to handle images a > lot > > easier. > > > > I believe I've installed org-download.el correctly, but when I'm dragging > > and drop the image into an org buffer, all I get is the link address > > inserted into the buffer, no downloading events trigger. > > I'm the org-download author. I've mentioned these things on the tracker, > but there's no harm to posting here additionally. > > I don't have OSX, so I can't test it. However, it should work in > theory, since all tools used are portable. > > Try using `org-download-yank' first: this one does everything except > drag-and-drop. Just right click and copy the image url in the browser, > and call `org-download-yank' in Emacs. If it doesn't work, the issue is > with dnd, otherwise it's with the downloading itself. > > The default `org-download-backend 'uses `url-retrieve', which is a part of > Emacs, so if it doesn't work then it's an Emacs bug. > > regards, > Oleh > --001a11c37dd85455dd050cea5394 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Oleh,

Thanks for the d= etailed instruction. I just checked following your advice, by copying the a= ddress of the image (and by looking at the browser-ring, I can make sure th= e address has been there), then M-x org-download-yank, returns error: "= ;if: Wrong type argument: number-or-marker-p, nil".

Also = I tried (org-download-yank "the-address-to-the-image"), which doe= s not work either.

Do you have any insight? Thanks.

Bes= t,

Chao

On Thu, Jan 15, 2015 at 7:11 AM, Oleh <ohwoeowho@gmail.com<= /a>> wrote:
Hello,

> Does anyone get org-download.el to work under Mac OSX? I'm struggl= ing to get
> it work, but it seems to help a lot, empowering org to handle images a= lot
> easier.
>
> I believe I've installed org-download.el correctly, but when I'= ;m dragging
> and drop the image into an org buffer, all I get is the link address > inserted into the buffer, no downloading events trigger.

I'm the org-download author. I've mentioned these things on = the tracker,
but there's no harm to posting here additionally.

I don't have OSX, so I can't test it. However, it should work in theory, since all tools used are portable.

Try using `org-download-yank' first: this one does everything except drag-and-drop. Just right click and copy the image url in the browser,
and call `org-download-yank' in Emacs. If it doesn't work, the issu= e is
with dnd, otherwise it's with the downloading itself.

The default `org-download-backend 'uses `url-retrieve', which is a = part of
Emacs, so if it doesn't work then it's an Emacs bug.

regards,
Oleh

--001a11c37dd85455dd050cea5394-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: Re: org-download.el Date: Sun, 18 Jan 2015 12:10:03 +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]:59311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCnpN-00032P-D9 for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 06:15:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCnpM-0007aL-8j for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 06:15:33 -0500 Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:42058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCnpM-0007aH-1n for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 06:15:32 -0500 Received: by mail-we0-f177.google.com with SMTP id l61so5193565wev.8 for ; Sun, 18 Jan 2015 03:15:30 -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 > Thanks for the detailed instruction. I just checked following your advice, > by copying the address of the image (and by looking at the browser-ring, I > can make sure the address has been there), then M-x org-download-yank, > returns error: "if: Wrong type argument: number-or-marker-p, nil". > > Also I tried (org-download-yank "the-address-to-the-image"), which does not > work either. > > Do you have any insight? Thanks. Alright, we're getting somewhere now. 1. Have you made any customizations to `org-download`? It's easier for me to proceed with the defaults. 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. 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))) If this one doesn't work as well, I can proceed from there. regards, Oleh From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: Re: org-download.el Date: Sun, 18 Jan 2015 20:31:15 +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]:56780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCvZ9-0004hQ-1f for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 14:31:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCvZ6-0002F3-Kr for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 14:31:18 -0500 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:56725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCvZ6-0002Ey-EK for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 14:31:16 -0500 Received: by mail-wg0-f42.google.com with SMTP id k14so28431485wgh.1 for ; Sun, 18 Jan 2015 11:31:15 -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 Hi all, I've made a blog post regarding today's improvements to org-download at http://oremacs.com/2015/01/18/sprucing-up-org-download/. The post also links to a video demo: https://www.youtube.com/watch?v=dAojpHR-6Uo regards, Oleh From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Lu Subject: Re: org-download.el Date: Sun, 18 Jan 2015 22:29:53 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043c7efa8aa188050cf8ef06 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD32K-00025R-Lj for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 22:29:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YD32I-00035a-Qa for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 22:29:56 -0500 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:58259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD32I-00035W-GI for emacs-orgmode@gnu.org; Sun, 18 Jan 2015 22:29:54 -0500 Received: by mail-wi0-f171.google.com with SMTP id l15so4256002wiw.4 for ; Sun, 18 Jan 2015 19:29:53 -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: Oleh Cc: emacs-orgmode --f46d043c7efa8aa188050cf8ef06 Content-Type: text/plain; charset=UTF-8 Hi Oleh, Thanks a lot for the detailed instruction again, and the screencast is a good job as well! I just did the testing. Please see below. 1. Have you made any customizations to `org-download`? It's easier for me to proceed with the defaults. *-- No, all I did is (require 'org-download)* 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.* 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~* Please let me know if there's any further instruction. And thanks for the help~~ Best, Chao On Sun, Jan 18, 2015 at 6:10 AM, Oleh wrote: > > Thanks for the detailed instruction. I just checked following your > advice, > > by copying the address of the image (and by looking at the browser-ring, > I > > can make sure the address has been there), then M-x org-download-yank, > > returns error: "if: Wrong type argument: number-or-marker-p, nil". > > > > Also I tried (org-download-yank "the-address-to-the-image"), which does > not > > work either. > > > > Do you have any insight? Thanks. > > Alright, we're getting somewhere now. > > 1. Have you made any customizations to `org-download`? It's easier for > me to proceed with the defaults. > 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. > 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))) > > If this one doesn't work as well, I can proceed from there. > > regards, > Oleh > --f46d043c7efa8aa188050cf8ef06 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Oleh,

Thanks a lot for the detai= led instruction again, and the screencast is a good job as well! I just did= the testing. Please see below.

1. Have you made any customizations = to `org-download`? It's easier for
me to proceed with the defaults.

-- No, all I did is (requi= re 'org-download)

2. As I'm testing now, I can get a "Wrong type argument:
=C2=A0 =C2=A0number-or-marker-p, nil" error if the org-mode file in qu= estion is
=C2=A0 =C2=A0empty or the cursor is before the first heading. Is this the c= ase for you?
=C2=A0 =C2=A0I'll fix this case soon anyway.
-- Not re= ally, I made a test.org then insert some he= ading, then tried (org-download-yank) with the web address on top of kill-r= ing, which did not trig the download events as well.

3. If this doesn't work, try the following simplified function:

=C2=A0 =C2=A0 (defun org-download-yank-1 ()
=C2=A0 =C2=A0 =C2=A0 (interactive)
=C2=A0 =C2=A0 =C2=A0 (let ((filename "./foo.png"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-download--image
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"https://www.google.nl/images/srpr/= logo11w.png"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0filename)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (insert (format "[[%s]]" filename)) =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-display-inline-images)))

-- This one works! The google logo gets into my test.org buffer, which is a good signal~

Ple= ase let me know if there's any further instruction. And thanks for the = help~~

Best,

Chao


O= n Sun, Jan 18, 2015 at 6:10 AM, Oleh <ohwoeowho@gmail.com>= wrote:
> Thanks for = the detailed instruction. I just checked following your advice,
> by copying the address of the image (and by looking at the browser-rin= g, I
> can make sure the address has been there), then M-x org-download-yank,=
> returns error: "if: Wrong type argument: number-or-marker-p, nil&= quot;.
>
> Also I tried (org-download-yank "the-address-to-the-image"),= which does not
> work either.
>
> Do you have any insight? Thanks.

Alright, we're getting somewhere now.

1. Have you made any customizations to `org-download`? It's easier for<= br> me to proceed with the defaults.
2. As I'm testing now, I can get a "Wrong type argument:
=C2=A0 =C2=A0number-or-marker-p, nil" error if the org-mode file in qu= estion is
=C2=A0 =C2=A0empty or the cursor is before the first heading. Is this the c= ase for you?
=C2=A0 =C2=A0I'll fix this case soon anyway.
3. If this doesn't work, try the following simplified function:

=C2=A0 =C2=A0 (defun org-download-yank-1 ()
=C2=A0 =C2=A0 =C2=A0 (interactive)
=C2=A0 =C2=A0 =C2=A0 (let ((filename "./foo.png"))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-download--image
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"https://www.google.nl/images/srpr/= logo11w.png"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0filename)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (insert (format "[[%s]]" filename)) =C2=A0 =C2=A0 =C2=A0 =C2=A0 (org-display-inline-images)))

If this one doesn't work as well, I can proceed from there.

regards,
Oleh

--f46d043c7efa8aa188050cf8ef06-- 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