aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Großjohann2004-05-30 21:00:53 +0000
committerKai Großjohann2004-05-30 21:00:53 +0000
commit2fcaee47a419d668b304d75f7511f2090c6736be (patch)
tree988fd35130f6ef62b97fa128f53c9eef12271545
parent5709c1a0bfc7b7e1248d410035a476ec64ae3d00 (diff)
downloademacs-2fcaee47a419d668b304d75f7511f2090c6736be.tar.gz
emacs-2fcaee47a419d668b304d75f7511f2090c6736be.zip
Sync with Tramp.
(tramp-let-maybe): ReportReverse args of `get'. (tramp-let-maybe): Move to an earlier spot in the file. Patch by Andreas Schwab.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/net/tramp.el20
2 files changed, 17 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d23005ed0bd..dc5913c467c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12004-05-30 Kai Grossjohann <kai.grossjohann@gmx.net>
2 Sync with Tramp.
3
4 * net/tramp.el (tramp-let-maybe): ReportReverse args of `get'.
5 (tramp-let-maybe): Move to an earlier spot in the file. Patch by
6 Andreas Schwab.
7
12004-05-30 Andreas Schwab <schwab@suse.de> 82004-05-30 Andreas Schwab <schwab@suse.de>
2 9
3 * dired.el (dired-get-filename): Don't use dired-re-dot. 10 * dired.el (dired-get-filename): Don't use dired-re-dot.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 1350774dbaa..769ad3f51f6 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1885,6 +1885,16 @@ If VAR is nil, then we bind `v' to the structure and `multi-method',
1885;; To be activated for debugging containing this macro 1885;; To be activated for debugging containing this macro
1886(def-edebug-spec with-parsed-tramp-file-name t) 1886(def-edebug-spec with-parsed-tramp-file-name t)
1887 1887
1888(defmacro tramp-let-maybe (variable value &rest body)
1889 "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete.
1890BODY is executed whether or not the variable is obsolete.
1891The intent is to protect against `obsolete variable' warnings."
1892 `(if (get ',variable 'byte-obsolete-variable)
1893 (progn ,@body)
1894 (let ((,variable ,value))
1895 ,@body)))
1896(put 'tramp-let-maybe 'lisp-indent-function 2)
1897
1888;;; Config Manipulation Functions: 1898;;; Config Manipulation Functions:
1889 1899
1890(defun tramp-set-completion-function (method function-list) 1900(defun tramp-set-completion-function (method function-list)
@@ -6790,16 +6800,6 @@ exiting if process is running."
6790 (funcall (symbol-function 'process-kill-without-query) 6800 (funcall (symbol-function 'process-kill-without-query)
6791 process flag))) 6801 process flag)))
6792 6802
6793(defmacro tramp-let-maybe (variable value &rest body)
6794 "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete.
6795BODY is executed whether or not the variable is obsolete.
6796The intent is to protect against `obsolete variable' warnings."
6797 `(if (get 'byte-obsolete-variable ',variable)
6798 (progn ,@body)
6799 (let ((,variable ,value))
6800 ,@body)))
6801(put 'tramp-let-maybe 'lisp-indent-function 2)
6802
6803 6803
6804;; ------------------------------------------------------------ 6804;; ------------------------------------------------------------
6805;; -- Kludges section -- 6805;; -- Kludges section --