Improve error messages. (Bug#14808)
commit525c5c7704d217dac5aae8f3730f4a31b5603be8
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 10 Jul 2013 14:58:26 +0000 (10 16:58 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 10 Jul 2013 14:58:26 +0000 (10 16:58 +0200)
tree4122f1492e5c0f108e1bdaaa94104fff3e9ab7ba
parentc7a4d3688ebdee56857af83ab86ab5f2a4065aa6
Improve error messages.  (Bug#14808)

* net/tramp.el (tramp-current-connection): New defvar, moved from
tramp-sh.el.
(tramp-message-show-progress-reporter-message): Removed, not
needed anymore.
(tramp-error-with-buffer): Show message in minibuffer.  Discard
input before waiting.  Reset connection timestamp.
(with-tramp-progress-reporter): Improve messages.
(tramp-process-actions): Use progress reporter.  Delete process in
case of error.  Improve messages.

* net/tramp-sh.el (tramp-barf-if-no-shell-prompt): Use
condition-case.  Call `tramp-error-with-buffer' with vector and buffer.
(tramp-current-connection): Removed.
(tramp-maybe-open-connection): The car of
`tramp-current-connection' are the first 3 slots of the vector.
lisp/ChangeLog
lisp/net/tramp-sh.el
lisp/net/tramp.el