[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
call-process-region does not heed proxy settings on cygwin
From: |
Niklas Morberg |
Subject: |
call-process-region does not heed proxy settings on cygwin |
Date: |
Wed, 14 May 2003 10:38:27 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt) |
call-process-region and shell-command-on-region behaves
differently; the former does not use my proxy settings but
the latter does. The problem shows with gpg, but is probably
there for all programs.
I'm using a CVS version of emacs from the beginning of May,
but I saw these problems in 21.2 as well. My shell is cygwin
and I have the following in my .emacs that relates to cygwin:
;; -------------------------------------------------------------------
;; Cygwin as shell
;; -------------------------------------------------------------------
;; This assumes that Cygwin is installed in C:\cygwin (the
;; default) and that C:\cygwin\bin is not already in your
;; Windows Path (it generally should not be).
;;
(setq exec-path (cons "C:/cygwin/bin" exec-path))
(setenv "PATH" (concat "C:\\cygwin\\bin;" (getenv "PATH")))
;;
;; NT-emacs assumes a Windows command shell, which you change
;; here.
;;
(setq process-coding-system-alist '(("bash" . undecided-unix)))
(setq shell-file-name "bash")
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
(setq shell-command-switch "-ic")
The following small test case, using search.keyserver.net
which is only available through my proxy, shows the
problem:
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
In GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195)
of 2003-05-02 on LAPTOP
configured using `configure --with-gcc (3.2)'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: SVE
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
Recent input:
<down> <down> <down> <return> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <return> C-x 1 C-x k <return>
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p <return> C-x k <return> q q q q q q q C-x k <return>
q C-x k <return> <help-echo> n t SPC t n <help-echo>
<help-echo> <help-echo> <C-tab> C-h i d 1 u 2 i b u
g <return> , , M-x r e p o r t SPC e m a c s SPC e
b <backspace> <backspace> b <tab> <return>
Recent messages:
Reading directory c:/cygwin/home/niklas/emacs-cvs/etc/e/...done
Reading directory c:/cygwin/home/niklas/emacs-cvs/leim/...done
Reading directory c:/cygwin/home/niklas/emacs-cvs/site-lisp/...done
Quit
Reading directory c:/cygwin/home/niklas/emacs-cvs/...done
Updating of BBDB records finished
Found `--debug-init' in Option Index. (`,' tries to find next)
Found `debug_print' in Command Index. (`,' tries to find next)
Found `report-emacs-bug' in Command Index. (`,' tries to find next)
Loading emacsbug...done
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- call-process-region does not heed proxy settings on cygwin,
Niklas Morberg <=