Mercurial > emacs
diff lisp/net/tramp-vc.el @ 48973:09acf3f65bb5
* net/tramp*.el: Sync with upstream version 2.0.28. Bugfixes.
* net/tramp-ftp.el: Glue code with Ange-FTP, broken out of
tramp.el. From Michael Albinus.
* net/tramp-smb.el: New file for using smbclient to access
Windows shares with Tramp. From Michael Albinus.
author | Kai Großjohann <kgrossjo@eu.uu.net> |
---|---|
date | Thu, 26 Dec 2002 20:47:51 +0000 |
parents | 7b663a89ef2a |
children | 0d8b17d428b5 |
line wrap: on
line diff
--- a/lisp/net/tramp-vc.el Thu Dec 26 17:29:06 2002 +0000 +++ b/lisp/net/tramp-vc.el Thu Dec 26 20:47:51 2002 +0000 @@ -136,7 +136,8 @@ (goto-char (point-max)) (set-buffer-modified-p nil) (forward-line -1) - (if (or (not (integerp status)) (and okstatus (< okstatus status))) + (if (or (not (integerp status)) + (and (integerp okstatus) (< okstatus status))) (progn (pop-to-buffer buffer) (goto-char (point-min)) @@ -174,14 +175,16 @@ (path (when file (tramp-file-name-path v)))) (setq squeezed (delq nil (copy-sequence flags))) (when file - (setq squeezed (append squeezed (list path)))) + (setq squeezed (append squeezed (list (file-relative-name + file default-directory))))) (let ((w32-quote-process-args t)) (when (eq okstatus 'async) (message "Tramp doesn't do async commands, running synchronously.")) (setq status (tramp-handle-shell-command (mapconcat 'tramp-shell-quote-argument (cons command squeezed) " ") t)) - (when (or (not (integerp status)) (and okstatus (< okstatus status))) + (when (or (not (integerp status)) + (and (integerp okstatus) (< okstatus status))) (pop-to-buffer (current-buffer)) (goto-char (point-min)) (shrink-window-if-larger-than-buffer) @@ -281,6 +284,9 @@ (setq exec-status (read (current-buffer))) (message "Command %s returned status %d." command exec-status))) + ;; Maybe okstatus can be `async' here. But then, maybe the + ;; async thing is new in Emacs 21, but this function is only + ;; used in Emacs 20. (cond ((> exec-status okstatus) (switch-to-buffer (get-file-buffer file)) (shrink-window-if-larger-than-buffer