]> code.delx.au - gnu-emacs/blobdiff - lisp/net/tramp-compat.el
Fix problems found while writing a test suite.
[gnu-emacs] / lisp / net / tramp-compat.el
index c5f1882931e35c6626d0ed03169ee2acc5418575..8322b7c085bb34ab2093e76210fe9da0aea5a41b 100644 (file)
@@ -416,6 +416,13 @@ Not actually used.  Use `(format \"%o\" i)' instead?"
                directory 'full "^\\([^.]\\|\\.\\([^.]\\|\\..\\)\\).*")))
      (delete-directory directory))))
 
+;; MUST-SUFFIX doesn't exist on XEmacs.
+(defun tramp-compat-load (file &optional noerror nomessage nosuffix must-suffix)
+  "Like `load' for Tramp files (compat function)."
+  (if must-suffix
+      (tramp-compat-funcall 'load file noerror nomessage nosuffix must-suffix)
+    (load file noerror nomessage nosuffix)))
+
 ;; `number-sequence' does not exist in XEmacs.  Implementation is
 ;; taken from Emacs 23.
 (defun tramp-compat-number-sequence (from &optional to inc)