HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* net/tramp-compat.el (tramp-compat-user-error): New defun.
[bpt/emacs.git]
/
lisp
/
net
/
tramp-compat.el
diff --git
a/lisp/net/tramp-compat.el
b/lisp/net/tramp-compat.el
index
d463981
..
ed61fbc
100644
(file)
--- a/
lisp/net/tramp-compat.el
+++ b/
lisp/net/tramp-compat.el
@@
-533,6
+533,11
@@
EOL-TYPE can be one of `dos', `unix', or `mac'."
"`dos', `unix', or `mac'")))))
(t (error "Can't change EOL conversion -- is MULE missing?"))))
"`dos', `unix', or `mac'")))))
(t (error "Can't change EOL conversion -- is MULE missing?"))))
+;; `user-error' has been added to Emacs 24.3.
+(defun tramp-compat-user-error (format &rest args)
+ "Signal a pilot error."
+ (apply (if (fboundp 'user-error) 'user-error 'error) format args))
+
(add-hook 'tramp-unload-hook
(lambda ()
(unload-feature 'tramp-compat 'force)))
(add-hook 'tramp-unload-hook
(lambda ()
(unload-feature 'tramp-compat 'force)))