mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
Propagate remote process environment.
* net/tramp-sh.el (tramp-sh-handle-start-file-process) (tramp-sh-handle-process-file): Propagate `process-environment'. * vc/vc-hg.el (vc-hg-state): No special handling for remote files; Tramp propagates environment variables now.
This commit is contained in:
parent
4fe5b7c0bb
commit
cd22fd754b
3 changed files with 43 additions and 21 deletions
|
|
@ -211,18 +211,11 @@ highlighting the Log View buffer."
|
|||
(append
|
||||
(list "TERM=dumb" "LANGUAGE=C" "HGPLAIN=1")
|
||||
process-environment)))
|
||||
(if (file-remote-p file)
|
||||
(process-file
|
||||
"env" nil t nil
|
||||
"HGPLAIN=1" vc-hg-program
|
||||
"--config" "alias.status=status"
|
||||
"--config" "defaults.status="
|
||||
"status" "-A" (file-relative-name file))
|
||||
(process-file
|
||||
vc-hg-program nil t nil
|
||||
"--config" "alias.status=status"
|
||||
"--config" "defaults.status="
|
||||
"status" "-A" (file-relative-name file))))
|
||||
(process-file
|
||||
vc-hg-program nil t nil
|
||||
"--config" "alias.status=status"
|
||||
"--config" "defaults.status="
|
||||
"status" "-A" (file-relative-name file)))
|
||||
;; Some problem happened. E.g. We can't find an `hg'
|
||||
;; executable.
|
||||
(error nil)))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue