From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52658 Path: main.gmane.org!not-for-mail From: Niklas Morberg Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] Use shell-command-on-region in pgg-gpg.el Date: Wed, 14 May 2003 09:15:37 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052896495 25432 80.91.224.249 (14 May 2003 07:14:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 14 May 2003 07:14:55 +0000 (UTC) Original-X-From: ding-owner+M1202@lists.math.uh.edu Wed May 14 09:14:54 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19FqTW-0006by-00 for ; Wed, 14 May 2003 09:14:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19FqUd-00067z-00; Wed, 14 May 2003 02:16:03 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19FqUV-00067t-00 for ding@lists.math.uh.edu; Wed, 14 May 2003 02:15:55 -0500 Original-Received: (qmail 71938 invoked by alias); 14 May 2003 07:15:54 -0000 Original-Received: (qmail 71932 invoked from network); 14 May 2003 07:15:54 -0000 Original-Received: from unknown (HELO krynn.se.axis.com) (212.209.10.216) by sclp3.sclp.com with SMTP; 14 May 2003 07:15:54 -0000 Original-Received: from PCNIKLAS (dh10-13-8-222.se.axis.com [10.13.8.222]) by krynn.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id h4E7FbL1016896 for ; Wed, 14 May 2003 09:15:37 +0200 Original-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 13 May 2003 20:09:35 +0200") Mail-Followup-To: ding@gnus.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52658 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52658 Lars Magne Ingebrigtsen writes: > Niklas Morberg writes: > >>>> In pgg-gpg.el, the function pgg-gpg-process-region uses >>>> call-process-region. My guess is that call-process-region >>>> does not use my proxy settings (defined in .emacs with >>>> setenv). > > I'm kinda surprised that that would make any difference. If the > command uses environment variables, it should heed them in any case, > shouldn't it? There certainly is a difference, at least on my system (cygwin). I don't know why. The following small test case, using search.keyserver.net which is only available through my proxy, shows it: Evaling the following in the *scratch* buffer: (shell-command-on-region (point) (point) "gpg --recv-keys 0x80808080" t) Returns immediately with the following result: gpg: requesting key 80808080 from search.keyserver.net gpg: no valid OpenPGP data found. gpg: Total number processed: 0 Evaling the following in the *scratch* buffer: (call-process-region (point) (point) "gpg" nil t nil "--recv-keys" "0x80808080") Hangs for a while and then returns: gpg: requesting key 80808080 from search.keyserver.net gpg: can't get key from keyserver: Connection timed out gpg: Total number processed: 0 If I do the same but use a local keyserver (by modifying ~/.gnupg/gpg.conf) both functions return immediately with the identical output: gpg: requesting key 80808080 from keys.axis.se gpg: no valid OpenPGP data found. gpg: Total number processed: 0 Niklas