summaryrefslogtreecommitdiff
path: root/lisp/net
diff options
context:
space:
mode:
authorKai Großjohann <kgrossjo@eu.uu.net>2004-05-30 21:00:53 +0000
committerKai Großjohann <kgrossjo@eu.uu.net>2004-05-30 21:00:53 +0000
commit2fcaee47a419d668b304d75f7511f2090c6736be (patch)
tree988fd35130f6ef62b97fa128f53c9eef12271545 /lisp/net
parent5709c1a0bfc7b7e1248d410035a476ec64ae3d00 (diff)
downloademacs-2fcaee47a419d668b304d75f7511f2090c6736be.tar.gz
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.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp.el20
1 files changed, 10 insertions, 10 deletions
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',
;; To be activated for debugging containing this macro
(def-edebug-spec with-parsed-tramp-file-name t)
+(defmacro tramp-let-maybe (variable value &rest body)
+ "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete.
+BODY is executed whether or not the variable is obsolete.
+The intent is to protect against `obsolete variable' warnings."
+ `(if (get ',variable 'byte-obsolete-variable)
+ (progn ,@body)
+ (let ((,variable ,value))
+ ,@body)))
+(put 'tramp-let-maybe 'lisp-indent-function 2)
+
;;; Config Manipulation Functions:
(defun tramp-set-completion-function (method function-list)
@@ -6790,16 +6800,6 @@ exiting if process is running."
(funcall (symbol-function 'process-kill-without-query)
process flag)))
-(defmacro tramp-let-maybe (variable value &rest body)
- "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete.
-BODY is executed whether or not the variable is obsolete.
-The intent is to protect against `obsolete variable' warnings."
- `(if (get 'byte-obsolete-variable ',variable)
- (progn ,@body)
- (let ((,variable ,value))
- ,@body)))
-(put 'tramp-let-maybe 'lisp-indent-function 2)
-
;; ------------------------------------------------------------
;; -- Kludges section --