aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog15
-rw-r--r--lisp/net/tramp-compat.el12
-rw-r--r--lisp/net/tramp.el11
-rw-r--r--lisp/net/trampver.el8
4 files changed, 38 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bf3775b3852..b232ea61ee8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,18 @@
12011-03-12 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-progress-reporter-update): Use
4 `tramp-compat-funcall'.
5 (tramp-handle-start-file-process): Use `tramp-compat-process-get'.
6 (tramp-handle-insert-file-contents): Make `file-remote-p' call
7 compatible.
8 (tramp-open-connection-setup-interactive-shell): Use
9 `tramp-compat-process-put'.
10
11 * net/tramp-compat.el (tramp-compat-process-get)
12 (tramp-compat-process-put): New defuns.
13
14 * net/trampver.el: Update release number.
15
12011-03-12 Stefan Monnier <monnier@iro.umontreal.ca> 162011-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 17
3 * ebuff-menu.el (electric-buffer-menu-mode-map): Move initialization 18 * ebuff-menu.el (electric-buffer-menu-mode-map): Move initialization
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el
index 3170e5aba06..beb380d5e6f 100644
--- a/lisp/net/tramp-compat.el
+++ b/lisp/net/tramp-compat.el
@@ -438,6 +438,18 @@ element is not omitted."
438 (setenv "UNIX95" unix95) 438 (setenv "UNIX95" unix95)
439 result))))) 439 result)))))
440 440
441;; The following functions do not exist in XEmacs. We ignore this;
442;; they are used for checking a remote tty.
443(defun tramp-compat-process-get (process propname)
444 "Return the value of PROCESS' PROPNAME property.
445This is the last value stored with `(process-put PROCESS PROPNAME VALUE)'."
446 (ignore-errors (tramp-compat-funcall 'process-get process propname)))
447
448(defun tramp-compat-process-put (process propname value)
449 "Change PROCESS' PROPNAME property to VALUE.
450It can be retrieved with `(process-get PROCESS PROPNAME)'."
451 (ignore-errors (tramp-compat-funcall 'process-put process propname value)))
452
441(provide 'tramp-compat) 453(provide 'tramp-compat)
442 454
443;;; TODO: 455;;; TODO:
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index c40d65ca913..c80420eb17c 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -2313,7 +2313,7 @@ FILE must be a local file name on a connection identified via VEC."
2313 (let* ((parameters (cdr reporter)) 2313 (let* ((parameters (cdr reporter))
2314 (message (aref parameters 3))) 2314 (message (aref parameters 3)))
2315 (when (string-match message (or (current-message) "")) 2315 (when (string-match message (or (current-message) ""))
2316 (funcall 'progress-reporter-update reporter value)))) 2316 (tramp-compat-funcall 'progress-reporter-update reporter value))))
2317 2317
2318(defmacro with-progress-reporter (vec level message &rest body) 2318(defmacro with-progress-reporter (vec level message &rest body)
2319 "Executes BODY, spinning a progress reporter with MESSAGE. 2319 "Executes BODY, spinning a progress reporter with MESSAGE.
@@ -4570,7 +4570,7 @@ beginning of local filename are not substituted."
4570 (tramp-send-command v command nil t) ; nooutput 4570 (tramp-send-command v command nil t) ; nooutput
4571 ;; Check, whether a pty is associated. 4571 ;; Check, whether a pty is associated.
4572 (tramp-maybe-open-connection v) 4572 (tramp-maybe-open-connection v)
4573 (unless (process-get 4573 (unless (tramp-compat-process-get
4574 (tramp-get-connection-process v) 'remote-tty) 4574 (tramp-get-connection-process v) 'remote-tty)
4575 (tramp-error 4575 (tramp-error
4576 v 'file-error 4576 v 'file-error
@@ -5025,7 +5025,9 @@ coding system might not be determined. This function repairs it."
5025 (set-visited-file-modtime) 5025 (set-visited-file-modtime)
5026 (set-buffer-modified-p nil) 5026 (set-buffer-modified-p nil)
5027 ;; For root, preserve owner and group when editing files. 5027 ;; For root, preserve owner and group when editing files.
5028 (when (string-equal (file-remote-p filename 'user) "root") 5028 (when (string-equal
5029 (tramp-file-name-handler 'file-remote-p filename 'user)
5030 "root")
5029 (set (make-local-variable 'backup-by-copying-when-mismatch) t))) 5031 (set (make-local-variable 'backup-by-copying-when-mismatch) t)))
5030 (when (and (stringp local-copy) 5032 (when (and (stringp local-copy)
5031 (or remote-copy (null tramp-temp-buffer-file-name))) 5033 (or remote-copy (null tramp-temp-buffer-file-name)))
@@ -7111,7 +7113,8 @@ process to set up. VEC specifies the connection."
7111 ;; Set `remote-tty' process property. 7113 ;; Set `remote-tty' process property.
7112 (ignore-errors 7114 (ignore-errors
7113 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\""))) 7115 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"")))
7114 (unless (zerop (length tty)) (process-put proc 'remote-tty tty)))) 7116 (unless (zerop (length tty))
7117 (tramp-compat-process-put proc 'remote-tty tty))))
7115 7118
7116 ;; Dump stty settings in the traces. 7119 ;; Dump stty settings in the traces.
7117 (when (>= tramp-verbose 9) 7120 (when (>= tramp-verbose 9)
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el
index 80e06121f83..0fc0cd3657b 100644
--- a/lisp/net/trampver.el
+++ b/lisp/net/trampver.el
@@ -1,8 +1,8 @@
1;;; trampver.el --- Transparent Remote Access, Multiple Protocol 1;;; trampver.el --- Transparent Remote Access, Multiple Protocol
2;;; lisp/trampver.el. Generated from trampver.el.in by configure. 2;;; lisp/trampver.el. Generated from trampver.el.in by configure.
3 3
4;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 4;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5;; 2010, 2011 Free Software Foundation, Inc. 5;; 2011 Free Software Foundation, Inc.
6 6
7;; Author: Kai Großjohann <kai.grossjohann@gmx.net> 7;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
8;; Keywords: comm, processes 8;; Keywords: comm, processes
@@ -30,14 +30,14 @@
30;; version check is defined in macro AC_EMACS_INFO of aclocal.m4; 30;; version check is defined in macro AC_EMACS_INFO of aclocal.m4;
31;; should be changed only there. 31;; should be changed only there.
32 32
33(defconst tramp-version "2.1.20" 33(defconst tramp-version "2.1.21-pre"
34 "This version of Tramp.") 34 "This version of Tramp.")
35 35
36(defconst tramp-bug-report-address "tramp-devel@gnu.org" 36(defconst tramp-bug-report-address "tramp-devel@gnu.org"
37 "Email address to send bug reports to.") 37 "Email address to send bug reports to.")
38 38
39;; Check for (X)Emacs version. 39;; Check for (X)Emacs version.
40(let ((x (if (or (>= emacs-major-version 22) (and (featurep 'xemacs) (= emacs-major-version 21) (>= emacs-minor-version 4))) "ok" (format "Tramp 2.1.20 is not fit for %s" (when (string-match "^.*$" (emacs-version)) (match-string 0 (emacs-version))))))) 40(let ((x (if (or (>= emacs-major-version 22) (and (featurep 'xemacs) (= emacs-major-version 21) (>= emacs-minor-version 4))) "ok" (format "Tramp 2.1.21-pre is not fit for %s" (when (string-match "^.*$" (emacs-version)) (match-string 0 (emacs-version)))))))
41 (unless (string-match "\\`ok\\'" x) (error "%s" x))) 41 (unless (string-match "\\`ok\\'" x) (error "%s" x)))
42 42
43(provide 'trampver) 43(provide 'trampver)