aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-03-19 07:11:57 +0000
committerGlenn Morris2008-03-19 07:11:57 +0000
commit699a11fbb605e8410309f1eb825297cc16fd8640 (patch)
tree28dd32b25e1ae14e21989d62031d4699e8103a9f
parent9f4e4f5bb941b73226e4b60d8a18a0a07568bdaa (diff)
downloademacs-699a11fbb605e8410309f1eb825297cc16fd8640.tar.gz
emacs-699a11fbb605e8410309f1eb825297cc16fd8640.zip
(tramp-drop-volume-letter): Evaluate when compiling.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/tramp.el15
2 files changed, 15 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1f70b0284ca..6f4c93f2fcf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-03-19 Glenn Morris <rgm@gnu.org>
2
3 * net/tramp.el (tramp-drop-volume-letter): Evaluate when compiling.
4 (tramp-handle-shell-command): Use condition-case rather than
5 ignore-errors.
6
12008-03-19 Dan Nicolaescu <dann@ics.uci.edu> 72008-03-19 Dan Nicolaescu <dann@ics.uci.edu>
2 8
3 * diff-mode.el (diff-header): Make the color louder. 9 * diff-mode.el (diff-header): Make the color louder.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 78781aa7e27..d530da37e22 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3497,16 +3497,17 @@ This is like `dired-recursive-delete-directory' for Tramp files."
3497 3497
3498;; Canonicalization of file names. 3498;; Canonicalization of file names.
3499 3499
3500(if (memq system-type '(cygwin windows-nt)) 3500(eval-and-compile ; silence compiler
3501 (defun tramp-drop-volume-letter (name) 3501 (if (memq system-type '(cygwin windows-nt))
3502 "Cut off unnecessary drive letter from file NAME. 3502 (defun tramp-drop-volume-letter (name)
3503 "Cut off unnecessary drive letter from file NAME.
3503The function `tramp-handle-expand-file-name' calls `expand-file-name' 3504The function `tramp-handle-expand-file-name' calls `expand-file-name'
3504locally on a remote file name. When the local system is a W32 system 3505locally on a remote file name. When the local system is a W32 system
3505but the remote system is Unix, this introduces a superfluous drive 3506but the remote system is Unix, this introduces a superfluous drive
3506letter into the file name. This function removes it." 3507letter into the file name. This function removes it."
3507 (save-match-data (replace-regexp-in-string tramp-root-regexp "/" name))) 3508 (save-match-data (replace-regexp-in-string tramp-root-regexp "/" name)))
3508 3509
3509 (defalias 'tramp-drop-volume-letter 'identity)) 3510 (defalias 'tramp-drop-volume-letter 'identity)))
3510 3511
3511(defun tramp-handle-expand-file-name (name &optional dir) 3512(defun tramp-handle-expand-file-name (name &optional dir)
3512 "Like `expand-file-name' for Tramp files. 3513 "Like `expand-file-name' for Tramp files.
@@ -3810,7 +3811,9 @@ Lisp error raised when PROGRAM is nil is trapped also, returning 1."
3810 ;; support 2 (asynchronous) processes in parallel. 3811 ;; support 2 (asynchronous) processes in parallel.
3811 (when p 3812 (when p
3812 (if (yes-or-no-p "A command is running. Kill it? ") 3813 (if (yes-or-no-p "A command is running. Kill it? ")
3813 (ignore-errors (kill-process p)) 3814 (condition-case nil
3815 (kill-process p)
3816 (error nil))
3814 (error "Shell command in progress"))) 3817 (error "Shell command in progress")))
3815 3818
3816 (with-current-buffer output-buffer 3819 (with-current-buffer output-buffer