From: Niklas Morberg <niklas.morberg@axis.com>
Subject: Re: [PATCH] Use shell-command-on-region in pgg-gpg.el
Date: Wed, 14 May 2003 09:15:37 +0200 [thread overview]
Message-ID: <ullxa0zja.fsf@axis.com> (raw)
In-Reply-To: <m3fzniwwf4.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Tue, 13 May 2003 20:09:35 +0200")
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Niklas Morberg <niklas.morberg@axis.com> 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
next prev parent reply other threads:[~2003-05-14 7:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-13 14:07 Getting gpg (or is it pgg?) to play nice with proxy Niklas Morberg
2003-04-17 8:57 ` Niklas Morberg
2003-04-25 9:53 ` Niklas Morberg
2003-05-09 9:44 ` [PATCH] Use shell-command-on-region in pgg-gpg.el (was: Getting gpg (or is it pgg?) to play nice with proxy) Niklas Morberg
2003-05-13 18:09 ` [PATCH] Use shell-command-on-region in pgg-gpg.el Lars Magne Ingebrigtsen
2003-05-14 7:15 ` Niklas Morberg [this message]
2003-05-14 8:31 ` Simon Josefsson
2003-05-14 9:51 ` Niklas Morberg
2003-05-14 9:59 ` Simon Josefsson
2003-05-16 16:41 ` Dave Love
2003-05-10 8:03 ` Getting gpg (or is it pgg?) to play nice with proxy Simon Josefsson
2003-05-12 9:16 ` Niklas Morberg
2003-05-12 12:05 ` Simon Josefsson
2003-05-13 7:43 ` Niklas Morberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ullxa0zja.fsf@axis.com \
--to=niklas.morberg@axis.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).