From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: What are Emacs best uses? Date: Wed, 21 Aug 2013 08:25:17 +0200 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 1377066339 14925 80.91.229.3 (21 Aug 2013 06:25:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2013 06:25:39 +0000 (UTC) Cc: help-gnu-emacs To: Jason Rumney Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 21 08:25:43 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 1VC1rS-0007As-Ny for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Aug 2013 08:25:42 +0200 Original-Received: from localhost ([::1]:51724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC1rS-0003Kp-8n for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Aug 2013 02:25:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC1r7-0003Kc-Ic for help-gnu-emacs@gnu.org; Wed, 21 Aug 2013 02:25:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VC1r4-0004FI-Hv for help-gnu-emacs@gnu.org; Wed, 21 Aug 2013 02:25:21 -0400 Original-Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:42851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC1r4-0004F2-Ax for help-gnu-emacs@gnu.org; Wed, 21 Aug 2013 02:25:18 -0400 Original-Received: by mail-we0-f170.google.com with SMTP id w62so12229wes.29 for ; Tue, 20 Aug 2013 23:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=xMopyGLk/aoNR6Lo/ZVmNqTJD6+vLjTKjqR8Gny4RvE=; b=WvTxsXmIz4eQbTdCV61MPz9q5peYzCBwQtDE6eOA7JGkfBwOtBUjwTyBh0gW3Nvd2V UHaMG20kja6ubRYee/djONUqPpFJ3fPBWyaAeRvrL7aHUCRV5W1pWfYe3400ImJWc/F0 0Hs4A0KKgFIpdOTpKcJYzqmoBp09HVb2zfjmNbhz3UQJd+rqgXBfDAOKV2HZV6fvP6Pu W/JEsjOiPLcnTZO5xCEDuAXYYc5keSotHdNrCDZyK48KR5GuNklC0Q/2VSIu7oVnIvt2 khM4NS9v0fYRM7kDLbPs7hsr+B4MPpcQgLwMPzOpTH5ZWJeBju69SeKMksatXS9wUJwK 6leg== X-Received: by 10.180.212.51 with SMTP id nh19mr4172970wic.14.1377066317559; Tue, 20 Aug 2013 23:25:17 -0700 (PDT) Original-Received: by 10.194.157.194 with HTTP; Tue, 20 Aug 2013 23:25:17 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: WAZL_8mvQGceSbuvi-4KtHCkFIc X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22a 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:93022 Archived-At: On Wed, Aug 21, 2013 at 3:58 AM, Jason Rumney wrote: >> > ;; use proxy >> > (setq url-proxy-services >> > `(("http" . ,(getenv "http_proxy")) >> > ("ftp" . ,(getenv "http_proxy")) >> > ("no_proxy" . "^.*example.com"))) >> > ;; disable proxy for some hosts In the message window, when trying to connect and browse an URL I got: Contacting host: http:80 open-network-stream: http/80 Name or service not known Now, if I set the http_proxy to leave off the "http" emacs asks me the username/password of the proxy for 3 times and then fails with authentication error. The same if I strip off the username/password from the http_proxy variable. Any other idea? Thanks, Luca >> >> 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 "/".