]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp-adb.el (tramp-adb-handle-process-file):
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 22 Jun 2014 09:20:38 +0000 (11:20 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 22 Jun 2014 09:20:38 +0000 (11:20 +0200)
* net/tramp-sh.el (tramp-sh-handle-process-file):
* net/tramp-smb.el (tramp-smb-handle-process-file): Do not raise
the output buffer when DISPLAY is non-nil.

Fixes: debbugs:17815
lisp/ChangeLog
lisp/net/tramp-adb.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el

index 88a85c3bda6a7801e682d8d274076a465b74dcb5..e0aaa1827852ad93b3684db306113a24d6edd0ca 100644 (file)
@@ -1,3 +1,10 @@
+2014-06-22  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-adb.el (tramp-adb-handle-process-file):
+       * net/tramp-sh.el (tramp-sh-handle-process-file):
+       * net/tramp-smb.el (tramp-smb-handle-process-file): Do not raise
+       the output buffer when DISPLAY is non-nil.  (Bug#17815)
+
 2014-06-21  Glenn Morris  <rgm@gnu.org>
 
        * play/landmark.el (landmark-move-down, landmark-move-up):
index 538884732172d8cbf8698b1f5d02269e9f117736..c21f29077205a08476c827206417b73f4d21d3ee 100644 (file)
@@ -801,11 +801,11 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored."
             v (format "(cd %s; %s)"
                       (tramp-shell-quote-argument localname) command)
             "")
-           ;; We should show the output anyway.
+           ;; We should add the output anyway.
            (when outbuf
              (with-current-buffer outbuf
                (insert-buffer-substring (tramp-get-connection-buffer v)))
-             (when display (display-buffer outbuf))))
+             (when (and display (get-buffer-window outbuf t)) (redisplay))))
        ;; When the user did interrupt, we should do it also.  We use
        ;; return code -1 as marker.
        (quit
index 15aa1329817190cd0cc2209f22e14ee8bd9ef208..6f55b86e9e5f5a73d3a0edd45933a9254c18e23e 100644 (file)
@@ -2906,13 +2906,13 @@ the result will be a local, non-Tramp, filename."
                                   command)
                         t t)
                        0 1))
-           ;; We should show the output anyway.
+           ;; We should add the output anyway.
            (when outbuf
              (with-current-buffer outbuf
                 (insert
                  (with-current-buffer (tramp-get-connection-buffer v)
                    (buffer-string))))
-             (when display (display-buffer outbuf))))
+             (when (and display (get-buffer-window outbuf t)) (redisplay))))
        ;; When the user did interrupt, we should do it also.  We use
        ;; return code -1 as marker.
        (quit
index 43e2c494ece74c7fd03cb3087d4752b62e511e32..fa5e72dfb3e0112d60f5b2e2f2256bb78d7dfa46 100644 (file)
@@ -1224,8 +1224,8 @@ target of the symlink differ."
        (error
         (setq ret 1)))
 
-      ;; We should show the output anyway.
-      (when (and outbuf display) (display-buffer outbuf))
+      ;; We should redisplay the output.
+      (when (and display outbuf (get-buffer-window outbuf t)) (redisplay))
 
       ;; Cleanup.  We remove all file cache values for the connection,
       ;; because the remote process could have changed them.