diff options
| author | Stefan Monnier | 2005-03-29 15:30:39 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-03-29 15:30:39 +0000 |
| commit | 55ec6b379a5e68cad310b677d7f96df6cd51969d (patch) | |
| tree | abd7c9ba93409edde003f29282850eff971b08a9 | |
| parent | 6380e5a7098ee06cbc2b94a281724e851620275a (diff) | |
| download | emacs-55ec6b379a5e68cad310b677d7f96df6cd51969d.tar.gz emacs-55ec6b379a5e68cad310b677d7f96df6cd51969d.zip | |
(vc-do-command): Use a pipe for async processes, so password
prompts don't show up at places where the user can't reply.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a656b62248c..7ef89d4ce56 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-03-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * vc.el (vc-do-command): Use a pipe for async processes, so password | ||
| 4 | prompts don't show up at places where the user can't reply. | ||
| 5 | |||
| 1 | 2005-03-29 Olive Lin <olive.lin@versateladsl.be> | 6 | 2005-03-29 Olive Lin <olive.lin@versateladsl.be> |
| 2 | 7 | ||
| 3 | * textmodes/tex-mode.el (tex-send-command): shell-quote-argument | 8 | * textmodes/tex-mode.el (tex-send-command): shell-quote-argument |
diff --git a/lisp/vc.el b/lisp/vc.el index 2e241e67f48..ce4cb2d36c8 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; vc.el --- drive a version-control system from within Emacs | 1 | ;;; vc.el --- drive a version-control system from within Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, | 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
| 4 | ;; 2000, 2001, 2003, 2004 Free Software Foundation, Inc. | 4 | ;; 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: FSF (see below for full credits) | 6 | ;; Author: FSF (see below for full credits) |
| 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| @@ -962,8 +962,10 @@ that is inserted into the command line before the filename." | |||
| 962 | ;; start-process does not support remote execution | 962 | ;; start-process does not support remote execution |
| 963 | (setq okstatus nil)) | 963 | (setq okstatus nil)) |
| 964 | (if (eq okstatus 'async) | 964 | (if (eq okstatus 'async) |
| 965 | (let ((proc (apply 'start-process command (current-buffer) command | 965 | (let ((proc |
| 966 | squeezed))) | 966 | (let ((process-connection-type nil)) |
| 967 | (apply 'start-process command (current-buffer) command | ||
| 968 | squeezed)))) | ||
| 967 | (unless (active-minibuffer-window) | 969 | (unless (active-minibuffer-window) |
| 968 | (message "Running %s in the background..." command)) | 970 | (message "Running %s in the background..." command)) |
| 969 | ;;(set-process-sentinel proc (lambda (p msg) (delete-process p))) | 971 | ;;(set-process-sentinel proc (lambda (p msg) (delete-process p))) |