aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2008-01-08 20:07:21 +0000
committerMichael Albinus2008-01-08 20:07:21 +0000
commit0664ff722152f34c2e87e9e644bbab401530b9d4 (patch)
tree80c0e1fde3a1bea6a12741ca4d616e163f13e74b
parentd82cf70b7fe93c7928a59a3c6ae8d2680237f60d (diff)
downloademacs-0664ff722152f34c2e87e9e644bbab401530b9d4.tar.gz
emacs-0664ff722152f34c2e87e9e644bbab401530b9d4.zip
* vc-git.el (vc-git--call): Apply `process-file' instead of
`call-process'. * net/tramp.el (tramp-remote-process-environment): Add "LC_CTYPE=C". Reported by Pete Forman <pete.forman@westerngeco.com>. (tramp-perl-encode, tramp-perl-decode): Update copyrights. (tramp-handle-process-file): Handle the case where DESTINATION is a consp with t as car. (tramp-wait-for-output): We shall remove exactly what has been find by the search.
-rw-r--r--lisp/ChangeLog13
-rw-r--r--lisp/net/tramp.el42
-rw-r--r--lisp/vc-git.el5
3 files changed, 38 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e0ed590c6fa..fea01d5f317 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,16 @@
12008-01-08 Michael Albinus <michael.albinus@gmx.de>
2
3 * vc-git.el (vc-git--call): Apply `process-file' instead of
4 `call-process'.
5
6 * net/tramp.el (tramp-remote-process-environment): Add "LC_CTYPE=C".
7 Reported by Pete Forman <pete.forman@westerngeco.com>.
8 (tramp-perl-encode, tramp-perl-decode): Update copyrights.
9 (tramp-handle-process-file): Handle the case where DESTINATION is
10 a consp with t as car.
11 (tramp-wait-for-output): We shall remove exactly what has been
12 find by the search.
13
12008-01-08 Kevin Ryde <user42@zip.com.au> 142008-01-08 Kevin Ryde <user42@zip.com.au>
2 15
3 * progmodes/compile.el (compilation-error-regexp-alist-alist): 16 * progmodes/compile.el (compilation-error-regexp-alist-alist):
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 852a22a7034..899cefc82d8 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -2,7 +2,7 @@
2;;; -*- mode: Emacs-Lisp; coding: utf-8; -*- 2;;; -*- mode: Emacs-Lisp; coding: utf-8; -*-
3 3
4;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
5;; 2005, 2006, 2007 Free Software Foundation, Inc. 5;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6 6
7;; (copyright statements below in code to be updated with the above notice) 7;; (copyright statements below in code to be updated with the above notice)
8 8
@@ -112,14 +112,14 @@
112 112
113(autoload 'uudecode-decode-region "uudecode") 113(autoload 'uudecode-decode-region "uudecode")
114 114
115;; The following Tramp packages must be loaded after Tramp, because 115;; The following Tramp packages must be loaded after tramp.el, because
116;; they require Tramp as well. 116;; they require it as well.
117(eval-after-load "tramp" 117(eval-after-load "tramp"
118 '(dolist 118 '(dolist
119 (feature 119 (feature
120 (list 120 (list
121 121
122 ;; Tramp commands. 122 ;; Tramp interactive commands.
123 'tramp-cmds 123 'tramp-cmds
124 124
125 ;; Load foreign FTP method. 125 ;; Load foreign FTP method.
@@ -891,7 +891,7 @@ The default value is to use the same value as `tramp-rsh-end-of-line'."
891;; "getconf PATH" yields: 891;; "getconf PATH" yields:
892;; HP-UX: /usr/bin:/usr/ccs/bin:/opt/ansic/bin:/opt/langtools/bin:/opt/fortran/bin 892;; HP-UX: /usr/bin:/usr/ccs/bin:/opt/ansic/bin:/opt/langtools/bin:/opt/fortran/bin
893;; Solaris: /usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin 893;; Solaris: /usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin
894;; Linux (Debian, Suse): /bin:/usr/bin 894;; GNU/Linux (Debian, Suse): /bin:/usr/bin
895;; FreeBSD: /usr/bin:/bin:/usr/sbin:/sbin: - beware trailing ":"! 895;; FreeBSD: /usr/bin:/bin:/usr/sbin:/sbin: - beware trailing ":"!
896(defcustom tramp-remote-path 896(defcustom tramp-remote-path
897 '(tramp-default-remote-path "/usr/sbin" "/usr/local/bin" 897 '(tramp-default-remote-path "/usr/sbin" "/usr/local/bin"
@@ -914,7 +914,7 @@ directories for POSIX compatible commands."
914 (string :tag "Directory")))) 914 (string :tag "Directory"))))
915 915
916(defcustom tramp-remote-process-environment 916(defcustom tramp-remote-process-environment
917 `("HISTFILE=$HOME/.tramp_history" "HISTSIZE=1" "LC_TIME=C" 917 `("HISTFILE=$HOME/.tramp_history" "HISTSIZE=1" "LC_CTYPE=C" "LC_TIME=C"
918 ,(concat "TERM=" tramp-terminal-type) 918 ,(concat "TERM=" tramp-terminal-type)
919 "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" 919 "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH="
920 "autocorrect=" "correct=") 920 "autocorrect=" "correct=")
@@ -1595,7 +1595,7 @@ on the remote host.")
1595(defconst tramp-perl-encode 1595(defconst tramp-perl-encode
1596 "%s -e ' 1596 "%s -e '
1597# This script is contributed by Juanma Barranquero <lektu@terra.es>. 1597# This script is contributed by Juanma Barranquero <lektu@terra.es>.
1598# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 1598# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
1599# Free Software Foundation, Inc. 1599# Free Software Foundation, Inc.
1600use strict; 1600use strict;
1601 1601
@@ -1637,7 +1637,7 @@ This string is passed to `format', so percent characters need to be doubled.")
1637(defconst tramp-perl-decode 1637(defconst tramp-perl-decode
1638 "%s -e ' 1638 "%s -e '
1639# This script is contributed by Juanma Barranquero <lektu@terra.es>. 1639# This script is contributed by Juanma Barranquero <lektu@terra.es>.
1640# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 1640# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
1641# Free Software Foundation, Inc. 1641# Free Software Foundation, Inc.
1642use strict; 1642use strict;
1643 1643
@@ -1776,7 +1776,7 @@ normal Emacs functions.")
1776If (FUNCTION FILENAME) returns non-nil, then all I/O on that file is done by 1776If (FUNCTION FILENAME) returns non-nil, then all I/O on that file is done by
1777calling HANDLER.") 1777calling HANDLER.")
1778 1778
1779;;; Internal functions which must come first. 1779;;; Internal functions which must come first:
1780 1780
1781(defsubst tramp-debug-message (vec fmt-string &rest args) 1781(defsubst tramp-debug-message (vec fmt-string &rest args)
1782 "Append message to debug buffer. 1782 "Append message to debug buffer.
@@ -2044,9 +2044,9 @@ For definition of that list see `tramp-set-completion-function'."
2044 (cdr (assoc method tramp-completion-function-alist)))) 2044 (cdr (assoc method tramp-completion-function-alist))))
2045 2045
2046 2046
2047;;; Fontification of `read-file-name'. 2047;;; Fontification of `read-file-name':
2048 2048
2049;; rfn-eshadow.el is part of Emacs 22. Its is autoloaded. 2049;; rfn-eshadow.el is part of Emacs 22. It is autoloaded.
2050(defvar tramp-rfn-eshadow-overlay) 2050(defvar tramp-rfn-eshadow-overlay)
2051(make-variable-buffer-local 'tramp-rfn-eshadow-overlay) 2051(make-variable-buffer-local 'tramp-rfn-eshadow-overlay)
2052 2052
@@ -3609,7 +3609,7 @@ beginning of local filename are not substituted."
3609 minibuffer-electric-tilde))) 3609 minibuffer-electric-tilde)))
3610 3610
3611 3611
3612;;; Remote commands. 3612;;; Remote commands:
3613 3613
3614(defun tramp-handle-executable-find (command) 3614(defun tramp-handle-executable-find (command)
3615 "Like `executable-find' for Tramp files." 3615 "Like `executable-find' for Tramp files."
@@ -3693,7 +3693,9 @@ beginning of local filename are not substituted."
3693 ((bufferp (car destination)) 3693 ((bufferp (car destination))
3694 (setq outbuf (car destination))) 3694 (setq outbuf (car destination)))
3695 ((stringp (car destination)) 3695 ((stringp (car destination))
3696 (setq outbuf (get-buffer-create (car destination))))) 3696 (setq outbuf (get-buffer-create (car destination))))
3697 ((car destination)
3698 (setq outbuf (current-buffer))))
3697 ;; stderr 3699 ;; stderr
3698 (cond 3700 (cond
3699 ((stringp (cadr destination)) 3701 ((stringp (cadr destination))
@@ -4539,7 +4541,7 @@ Falls back to normal file name handler if no Tramp file name handler exists."
4539 4541
4540(add-hook 'tramp-unload-hook 'tramp-unload-file-name-handlers) 4542(add-hook 'tramp-unload-hook 'tramp-unload-file-name-handlers)
4541 4543
4542;;; File name handler functions for completion mode. 4544;;; File name handler functions for completion mode:
4543 4545
4544(defvar tramp-completion-mode nil 4546(defvar tramp-completion-mode nil
4545 "If non-nil, external packages signal that they are in file name completion. 4547 "If non-nil, external packages signal that they are in file name completion.
@@ -6245,16 +6247,14 @@ function waits for output unless NOOUTPUT is set."
6245(defun tramp-wait-for-output (proc &optional timeout) 6247(defun tramp-wait-for-output (proc &optional timeout)
6246 "Wait for output from remote rsh command." 6248 "Wait for output from remote rsh command."
6247 (with-current-buffer (process-buffer proc) 6249 (with-current-buffer (process-buffer proc)
6248 (let ((found 6250 ;; Initially, `tramp-end-of-output' is "$ ". There might be
6249 (tramp-wait-for-regexp 6251 ;; leading escape sequences, which must be ignored.
6250 proc timeout 6252 (let* ((regexp (format "^[^$\n]*%s\r?$" (regexp-quote tramp-end-of-output)))
6251 ;; Initially, `tramp-end-of-output' is "$ ". There might 6253 (found (tramp-wait-for-regexp proc timeout regexp)))
6252 ;; be leading escape sequences, which must be ignored.
6253 (format "^[^$\n]*%s\r?$" (regexp-quote tramp-end-of-output)))))
6254 (if found 6254 (if found
6255 (let (buffer-read-only) 6255 (let (buffer-read-only)
6256 (goto-char (point-max)) 6256 (goto-char (point-max))
6257 (forward-line -2) 6257 (re-search-backward regexp nil t)
6258 (delete-region (point) (point-max))) 6258 (delete-region (point) (point-max)))
6259 (if timeout 6259 (if timeout
6260 (tramp-error 6260 (tramp-error
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index c73c458fcb7..7f3a39d55ab 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -444,7 +444,10 @@ The difference to vc-do-command is that this function always invokes `git'."
444 (apply 'vc-do-command buffer okstatus "git" file-or-list flags)) 444 (apply 'vc-do-command buffer okstatus "git" file-or-list flags))
445 445
446(defun vc-git--call (buffer command &rest args) 446(defun vc-git--call (buffer command &rest args)
447 (apply 'call-process "git" nil buffer nil command args)) 447 ;; We don't need to care the arguments. If there is a file name, it
448 ;; is always a relative one. This works also for remote
449 ;; directories.
450 (apply 'process-file "git" nil buffer nil command args))
448 451
449(defun vc-git--out-ok (command &rest args) 452(defun vc-git--out-ok (command &rest args)
450 (zerop (apply 'vc-git--call '(t nil) command args))) 453 (zerop (apply 'vc-git--call '(t nil) command args)))