all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-feed and http_proxy
@ 2010-04-09 12:44 zwz
  2010-04-09 13:07 ` Carsten Dominik
  2010-04-09 13:29 ` Magnus Henoch
  0 siblings, 2 replies; 8+ messages in thread
From: zwz @ 2010-04-09 12:44 UTC (permalink / raw)
  To: emacs-orgmode

Now and then I have to set http_proxy for internet access.

I do it in emacs, e.g. by 
(setenv "http_proxy" "http://10.10.10.10:808")

Ok, now org-feed will use this proxy and works great.

Later, I find the proxy is down, so I switch to another proxy
(setenv "http_proxy" "http://10.10.10.20:808")

and then M-x org-feed-update-all,
the message shows that org-feed is still using the old proxy
"http://10.10.10.10:808"

I don't know if it is related to org-feed, hope someone has the answer.

By the way, I can not get the feeds from codeproject.
My setting:
("codeproject"
         "http://www.codeproject.com/webservices/articlerss.aspx?cat=2"
         "~/.org/feeds.org" "C++ on CodeProject"
         :parse-feed org-feed-parse-atom-feed :parse-entry org-feed-parse-atom-entry)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-feed and http_proxy
  2010-04-09 12:44 org-feed and http_proxy zwz
@ 2010-04-09 13:07 ` Carsten Dominik
  2010-04-09 14:43   ` zwz
  2010-04-09 13:29 ` Magnus Henoch
  1 sibling, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2010-04-09 13:07 UTC (permalink / raw)
  To: zwz; +Cc: emacs-orgmode


On Apr 9, 2010, at 2:44 PM, zwz wrote:

> Now and then I have to set http_proxy for internet access.
>
> I do it in emacs, e.g. by
> (setenv "http_proxy" "http://10.10.10.10:808")
>
> Ok, now org-feed will use this proxy and works great.
>
> Later, I find the proxy is down, so I switch to another proxy
> (setenv "http_proxy" "http://10.10.10.20:808")
>
> and then M-x org-feed-update-all,
> the message shows that org-feed is still using the old proxy
> "http://10.10.10.10:808"
>
> I don't know if it is related to org-feed, hope someone has the  
> answer.

Org-mode is using url-retrieve-synchonously, so this must be a cacheing
issue in the url package.

One thing you might try is to use curl or wget instead - see the  
variable
`org-feed-retrieve-method'.

>
> By the way, I can not get the feeds from codeproject.
> My setting:
> ("codeproject"
>         "http://www.codeproject.com/webservices/articlerss.aspx?cat=2"
>         "~/.org/feeds.org" "C++ on CodeProject"
>         :parse-feed org-feed-parse-atom-feed :parse-entry org-feed- 
> parse-atom-entry)

This is an atom feed, and I did not write that part. magnus.henoch@gmail.com 
  did, maybe ask him?

- Carsten

>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-feed and http_proxy
  2010-04-09 12:44 org-feed and http_proxy zwz
  2010-04-09 13:07 ` Carsten Dominik
@ 2010-04-09 13:29 ` Magnus Henoch
  2010-04-09 14:41   ` zwz
  1 sibling, 1 reply; 8+ messages in thread
From: Magnus Henoch @ 2010-04-09 13:29 UTC (permalink / raw)
  To: emacs-orgmode

zwz <zhangweize@gmail.com> writes:

> By the way, I can not get the feeds from codeproject.
> My setting:
> ("codeproject"
>          "http://www.codeproject.com/webservices/articlerss.aspx?cat=2"
>          "~/.org/feeds.org" "C++ on CodeProject"
>          :parse-feed org-feed-parse-atom-feed :parse-entry org-feed-parse-atom-entry)

When I open that URL in Firefox and view the source, it turns out to be
an RSS file.  So just remove the :parse-feed and :parse-entry items; the
default is to parse the file as an RSS file.

-- 
Magnus Henoch

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-feed and http_proxy
  2010-04-09 13:29 ` Magnus Henoch
@ 2010-04-09 14:41   ` zwz
  0 siblings, 0 replies; 8+ messages in thread
From: zwz @ 2010-04-09 14:41 UTC (permalink / raw)
  To: emacs-orgmode

Magnus Henoch <magnus.henoch@gmail.com> writes:

> zwz <zhangweize@gmail.com> writes:
>
>> By the way, I can not get the feeds from codeproject.
>> My setting:
>> ("codeproject"
>>          "http://www.codeproject.com/webservices/articlerss.aspx?cat=2"
>>          "~/.org/feeds.org" "C++ on CodeProject"
>> :parse-feed org-feed-parse-atom-feed :parse-entry org-feed-parse-atom-entry)
>
> When I open that URL in Firefox and view the source, it turns out to be
> an RSS file.  So just remove the :parse-feed and :parse-entry items; the
> default is to parse the file as an RSS file.

Ooooh, my fault ;)
Thanks!

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: org-feed and http_proxy
  2010-04-09 13:07 ` Carsten Dominik
@ 2010-04-09 14:43   ` zwz
  2010-04-09 14:47     ` Carsten Dominik
  2010-04-09 14:55     ` Nick Dokos
  0 siblings, 2 replies; 8+ messages in thread
From: zwz @ 2010-04-09 14:43 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

> On Apr 9, 2010, at 2:44 PM, zwz wrote:
>
>> Now and then I have to set http_proxy for internet access.
>>
>> I do it in emacs, e.g. by
>> (setenv "http_proxy" "http://10.10.10.10:808")
>>
>> Ok, now org-feed will use this proxy and works great.
>>
>> Later, I find the proxy is down, so I switch to another proxy
>> (setenv "http_proxy" "http://10.10.10.20:808")
>>
>> and then M-x org-feed-update-all,
>> the message shows that org-feed is still using the old proxy
>> "http://10.10.10.10:808"
>>
>> I don't know if it is related to org-feed, hope someone has the answer.
>
> Org-mode is using url-retrieve-synchonously, so this must be a cacheing
> issue in the url package.
>
> One thing you might try is to use curl or wget instead - see the variable
> `org-feed-retrieve-method'.
>

I do not know there is such a variable
is it introduced in 6.35?
I will try out the latest version. Thanks!

>>
>> By the way, I can not get the feeds from codeproject.
>> My setting:
>> ("codeproject"
>>         "http://www.codeproject.com/webservices/articlerss.aspx?cat=2"
>>         "~/.org/feeds.org" "C++ on CodeProject"
>>         :parse-feed org-feed-parse-atom-feed :parse-entry org-feed-
>> parse-atom-entry)
>
> This is an atom feed, and I did not write that part. magnus.henoch@gmail.com
>  did, maybe ask him?
>
> - Carsten
>
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> - Carsten
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Re: org-feed and http_proxy
  2010-04-09 14:43   ` zwz
@ 2010-04-09 14:47     ` Carsten Dominik
  2010-04-09 14:55     ` Nick Dokos
  1 sibling, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2010-04-09 14:47 UTC (permalink / raw)
  To: zwz; +Cc: emacs-orgmode


On Apr 9, 2010, at 4:43 PM, zwz wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> On Apr 9, 2010, at 2:44 PM, zwz wrote:
>>
>>> Now and then I have to set http_proxy for internet access.
>>>
>>> I do it in emacs, e.g. by
>>> (setenv "http_proxy" "http://10.10.10.10:808")
>>>
>>> Ok, now org-feed will use this proxy and works great.
>>>
>>> Later, I find the proxy is down, so I switch to another proxy
>>> (setenv "http_proxy" "http://10.10.10.20:808")
>>>
>>> and then M-x org-feed-update-all,
>>> the message shows that org-feed is still using the old proxy
>>> "http://10.10.10.10:808"
>>>
>>> I don't know if it is related to org-feed, hope someone has the  
>>> answer.
>>
>> Org-mode is using url-retrieve-synchonously, so this must be a  
>> cacheing
>> issue in the url package.
>>
>> One thing you might try is to use curl or wget instead - see the  
>> variable
>> `org-feed-retrieve-method'.
>>
>
> I do not know there is such a variable
> is it introduced in 6.35?

No, I think this has been always present.

- Carsten

> I will try out the latest version. Thanks!
>
>>>
>>> By the way, I can not get the feeds from codeproject.
>>> My setting:
>>> ("codeproject"
>>>        "http://www.codeproject.com/webservices/articlerss.aspx? 
>>> cat=2"
>>>        "~/.org/feeds.org" "C++ on CodeProject"
>>>        :parse-feed org-feed-parse-atom-feed :parse-entry org-feed-
>>> parse-atom-entry)
>>
>> This is an atom feed, and I did not write that part. magnus.henoch@gmail.com
>> did, maybe ask him?
>>
>> - Carsten
>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Please use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>> - Carsten
>>
>>
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Re: org-feed and http_proxy
  2010-04-09 14:43   ` zwz
  2010-04-09 14:47     ` Carsten Dominik
@ 2010-04-09 14:55     ` Nick Dokos
  2010-04-09 16:01       ` Carsten Dominik
  1 sibling, 1 reply; 8+ messages in thread
From: Nick Dokos @ 2010-04-09 14:55 UTC (permalink / raw)
  To: zwz; +Cc: nicholas.dokos, emacs-orgmode

zwz <zhangweize@gmail.com> wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
> ...
> > ...
> > Org-mode is using url-retrieve-synchonously, so this must be a cacheing
> > issue in the url package.
> >
> > One thing you might try is to use curl or wget instead - see the variable
> > `org-feed-retrieve-method'.
> >
> 
> I do not know there is such a variable
> is it introduced in 6.35?
> I will try out the latest version. Thanks!
> 

It was introduced way back when:

,----
| commit b6e7a1c5ca283b37a0d73e397b3d7dd2f5e58227
| Author: Carsten Dominik <carsten.dominik@gmail.com>
| Date:   Tue Mar 24 10:20:30 2009 +0100
| 
|     New file lisp/org-feed.el
| 
| ...
| +(defcustom org-feed-retrieve-method 'url-retrieve-synchronously
| +  "The method to be used to retrieve a feed URL.
| +This can be `curl' or `wget' to call these external programs, or it can be
| +an Emacs Lisp function that will return a buffer containing the content
| +of the file pointed to by the URL."
| ...
`----


You might not have had org-feed.el loaded when you went looking for it.

Nick

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Re: org-feed and http_proxy
  2010-04-09 14:55     ` Nick Dokos
@ 2010-04-09 16:01       ` Carsten Dominik
  0 siblings, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2010-04-09 16:01 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode, zwz


On Apr 9, 2010, at 4:55 PM, Nick Dokos wrote:

> zwz <zhangweize@gmail.com> wrote:
>
>> Carsten Dominik <carsten.dominik@gmail.com> writes:
>> ...
>>> ...
>>> Org-mode is using url-retrieve-synchonously, so this must be a  
>>> cacheing
>>> issue in the url package.
>>>
>>> One thing you might try is to use curl or wget instead - see the  
>>> variable
>>> `org-feed-retrieve-method'.
>>>
>>
>> I do not know there is such a variable
>> is it introduced in 6.35?
>> I will try out the latest version. Thanks!
>>
>
> It was introduced way back when:
>
> ,----
> | commit b6e7a1c5ca283b37a0d73e397b3d7dd2f5e58227
> | Author: Carsten Dominik <carsten.dominik@gmail.com>
> | Date:   Tue Mar 24 10:20:30 2009 +0100
> |
> |     New file lisp/org-feed.el
> |
> | ...
> | +(defcustom org-feed-retrieve-method 'url-retrieve-synchronously
> | +  "The method to be used to retrieve a feed URL.
> | +This can be `curl' or `wget' to call these external programs, or  
> it can be
> | +an Emacs Lisp function that will return a buffer containing the  
> content
> | +of the file pointed to by the URL."
> | ...
> `----

Ahhh, the joys of git.

:-) Carsten

>
>
> You might not have had org-feed.el loaded when you went looking for  
> it.
>
> Nick
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-04-09 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-09 12:44 org-feed and http_proxy zwz
2010-04-09 13:07 ` Carsten Dominik
2010-04-09 14:43   ` zwz
2010-04-09 14:47     ` Carsten Dominik
2010-04-09 14:55     ` Nick Dokos
2010-04-09 16:01       ` Carsten Dominik
2010-04-09 13:29 ` Magnus Henoch
2010-04-09 14:41   ` zwz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.