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