aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2016-05-09 21:08:51 +0200
committerMichael Albinus2016-05-09 21:08:51 +0200
commita88f22bddef5be36a3227f0630c1465f76a87f78 (patch)
tree924b8e6fe8958f254c89670ff48d859f0835f00e
parentc8b7a6abd90aab76185202def7049a0ea981d335 (diff)
downloademacs-a88f22bddef5be36a3227f0630c1465f76a87f78.tar.gz
emacs-a88f22bddef5be36a3227f0630c1465f76a87f78.zip
Pacify byte compiler in tramp.el
* lisp/net/tramp.el (tramp-time-diff): Use `tramp-compat-funcall'.
-rw-r--r--lisp/net/tramp-compat.el6
-rw-r--r--lisp/net/tramp.el3
2 files changed, 4 insertions, 5 deletions
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el
index f1f31d0398e..0e9fcb501a7 100644
--- a/lisp/net/tramp-compat.el
+++ b/lisp/net/tramp-compat.el
@@ -50,9 +50,9 @@
50(unless (boundp 'remote-file-name-inhibit-cache) 50(unless (boundp 'remote-file-name-inhibit-cache)
51 (defvar remote-file-name-inhibit-cache nil)) 51 (defvar remote-file-name-inhibit-cache nil))
52 52
53;; For not existing functions, or functions with a changed argument 53;; For not existing functions, obsolete functions, or functions with a
54;; list, there are compiler warnings. We want to avoid them in cases 54;; changed argument list, there are compiler warnings. We want to
55;; we know what we do. 55;; avoid them in cases we know what we do.
56(defmacro tramp-compat-funcall (function &rest arguments) 56(defmacro tramp-compat-funcall (function &rest arguments)
57 `(when (or (subrp ,function) (functionp ,function)) 57 `(when (or (subrp ,function) (functionp ,function))
58 (with-no-warnings (funcall ,function ,@arguments)))) 58 (with-no-warnings (funcall ,function ,@arguments))))
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 57a6594880e..9f678554654 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1723,7 +1723,6 @@ For definition of that list see `tramp-set-completion-function'."
1723 1723
1724;;; Fontification of `read-file-name': 1724;;; Fontification of `read-file-name':
1725 1725
1726;; rfn-eshadow.el is part of Emacs 22. It is autoloaded.
1727(defvar tramp-rfn-eshadow-overlay) 1726(defvar tramp-rfn-eshadow-overlay)
1728(make-variable-buffer-local 'tramp-rfn-eshadow-overlay) 1727(make-variable-buffer-local 'tramp-rfn-eshadow-overlay)
1729 1728
@@ -4147,7 +4146,7 @@ Invokes `password-read' if available, `read-passwd' else."
4147 "Return the difference between the two times, in seconds. 4146 "Return the difference between the two times, in seconds.
4148T1 and T2 are time values (as returned by `current-time' for example)." 4147T1 and T2 are time values (as returned by `current-time' for example)."
4149 ;; Starting with Emacs 25.1, we could change this to use `time-subtract'. 4148 ;; Starting with Emacs 25.1, we could change this to use `time-subtract'.
4150 (float-time (subtract-time t1 t2))) 4149 (float-time (tramp-compat-funcall 'subtract-time t1 t2)))
4151 4150
4152;; Currently (as of Emacs 20.5), the function `shell-quote-argument' 4151;; Currently (as of Emacs 20.5), the function `shell-quote-argument'
4153;; does not deal well with newline characters. Newline is replaced by 4152;; does not deal well with newline characters. Newline is replaced by