aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2006-07-02 20:29:20 +0000
committerMichael Albinus2006-07-02 20:29:20 +0000
commitd163f71e8671ad901f563c435fb4741d9d81303a (patch)
treed3b680044b8eacaf0d28a23c76059dc1810dc0ac
parent88983f8c8f1074a4155afb46a22e9577082fad3c (diff)
downloademacs-d163f71e8671ad901f563c435fb4741d9d81303a.tar.gz
emacs-d163f71e8671ad901f563c435fb4741d9d81303a.zip
* net/tramp.el (tramp-handle-shell-command): Preserve current-buffer.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/tramp.el4
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7202c93ab23..966e139b086 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12006-07-02 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-handle-shell-command): Preserve current-buffer.
4
12006-07-02 Daniel Pfeiffer <occitan@esperanto.org> 52006-07-02 Daniel Pfeiffer <occitan@esperanto.org>
2 6
3 * progmodes/make-mode.el (makefile-macroassign-regex): Accept 7 * progmodes/make-mode.el (makefile-macroassign-regex): Accept
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index c94ec48b76d..cb5a6d75331 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3572,7 +3572,8 @@ This will break if COMMAND prints a newline, followed by the value of
3572 ;; for `find-grep-dired' and `find-name-dired' in Emacs 22. 3572 ;; for `find-grep-dired' and `find-name-dired' in Emacs 22.
3573 (if (tramp-tramp-file-p default-directory) 3573 (if (tramp-tramp-file-p default-directory)
3574 (with-parsed-tramp-file-name default-directory nil 3574 (with-parsed-tramp-file-name default-directory nil
3575 (let ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command)) 3575 (let ((curbuf (current-buffer))
3576 (asynchronous (string-match "[ \t]*&[ \t]*\\'" command))
3576 status) 3577 status)
3577 (unless output-buffer 3578 (unless output-buffer
3578 (setq output-buffer 3579 (setq output-buffer
@@ -3674,6 +3675,7 @@ This will break if COMMAND prints a newline, followed by the value of
3674 (unless (zerop (buffer-size)) 3675 (unless (zerop (buffer-size))
3675 (when tramp-display-shell-command-buffer 3676 (when tramp-display-shell-command-buffer
3676 (display-buffer output-buffer))) 3677 (display-buffer output-buffer)))
3678 (set-buffer curbuf)
3677 status)) 3679 status))
3678 ;; The following is only executed if something strange was 3680 ;; The following is only executed if something strange was
3679 ;; happening. Emit a helpful message and do it anyway. 3681 ;; happening. Emit a helpful message and do it anyway.