From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.help Subject: Re: What are Emacs best uses? Date: Tue, 20 Aug 2013 18:58:36 -0700 (PDT) Message-ID: References: <86ob8tojz0.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1377050415 32678 80.91.229.3 (21 Aug 2013 02:00:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2013 02:00:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 21 04:00:18 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VBxib-0005s5-Dc for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Aug 2013 04:00:17 +0200 Original-Received: from localhost ([::1]:51030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBxib-0001VI-0a for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Aug 2013 22:00:17 -0400 X-Received: by 10.224.137.68 with SMTP id v4mr6987117qat.1.1377050317183; Tue, 20 Aug 2013 18:58:37 -0700 (PDT) X-Received: by 10.50.98.4 with SMTP id ee4mr784062igb.5.1377050317146; Tue, 20 Aug 2013 18:58:37 -0700 (PDT) Original-Path: usenet.stanford.edu!fx3no3826419qab.0!news-out.google.com!he10ni2777qab.0!nntp.google.com!fx3no3826415qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=175.136.230.202; posting-account=pYxWjwkAAACsHSUNDoi5N05LVCTP7PVM Original-NNTP-Posting-Host: 175.136.230.202 User-Agent: G2/1.0 Injection-Date: Wed, 21 Aug 2013 01:58:37 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:200752 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93019 Archived-At: On Monday, 19 August 2013 22:35:13 UTC+8, Luca Ferrari wrote: > On Mon, Aug 19, 2013 at 4:04 PM, Sebastien Vauban wrote: > > > --8<---------------cut here---------------start------------->8--- > > > ;; use proxy > > (setq url-proxy-services > > `(("http" . ,(getenv "http_proxy")) > > ("ftp" . ,(getenv "http_proxy")) > > ("no_proxy" . "^.*example.com"))) > > ;; disable proxy for some hosts > > --8<---------------cut here---------------end--------------->8--- > > Despite two extra parens in the end, no, it does not help. I tried to > update the package list but got "Failed to download 'gnu' archive". I > then tried to get an URL with w3 but I got "http/80 Name or service > unknown". Emacs expects just hostname and port in `url-proxy-services'. Generally the http_proxy environment variable will be prefixed with "http://", as that is what some other programs expect. Either change the above to explicitly use your proxy server details (setq url-proxy-services (("http" . "proxy-host:port") ;; etc... )) or if you really want to use the environment variables, add some code to strip off the leading "http://" and any trailing "/".