Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: Getting gpg (or is it pgg?) to play nice with proxy
Date: Sat, 10 May 2003 10:03:39 +0200	[thread overview]
Message-ID: <iluvfwjrzxg.fsf@latte.josefsson.org> (raw)
In-Reply-To: <uof35lcwm.fsf@axis.com> (Niklas Morberg's message of "Thu, 17 Apr 2003 10:57:13 +0200")

Niklas Morberg <niklas.morberg@axis.com> writes:

> Ok, I think I have found the problem. I would need some help
> to find a solution.
>
> 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).
>
> Would it be possible to use shell-command-on-region instead?

Yes, although call-process-region should work.  The setenv I define in
.emacs seem to be visible for me within sub-processes.  I think it
would be better to first understand exactly why call-process-region
doesn't work for you.

Try evaluate the following

(progn
  (setenv "FOO" "bar")
  (call-process-region (point-min) (point-max) shell-file-name
		       nil (current-buffer) nil shell-command-switch "set"))

I get:

BASH=/bin/bash
BASH_VERSINFO=([0]="2" [1]="05a" [2]="0" [3]="1" [4]="release" [5]="i386-pc-linux-gnu")
BASH_VERSION='2.05a.0(1)-release'
COLORTERM=gnome-terminal
CVS_RSH=ssh
DESKTOP_STARTUP_ID=
DIRSTACK=()
DISPLAY=:0.0
EUID=22541
FOO=bar
...

Is it possible that your shell somehow alters the http proxy variable?




  parent reply	other threads:[~2003-05-10  8:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-13 14:07 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
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   ` Simon Josefsson [this message]
2003-05-12  9:16     ` Getting gpg (or is it pgg?) to play nice with proxy 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=iluvfwjrzxg.fsf@latte.josefsson.org \
    --to=jas@extundo.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).