]> git.eshelyaron.com Git - emacs.git/commit
Improve handling of ANSI control sequences in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 20 May 2023 10:13:09 +0000 (12:13 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 20 May 2023 10:13:09 +0000 (12:13 +0200)
commit870a078c06102e763d57366c123980545e245d9e
tree907a8e0959b7c9f9d3eeb9476c2951b0fba9b53d
parent0de472e04fb29581e8302b60fafc707b18d7cbf3
Improve handling of ANSI control sequences in Tramp

* lisp/net/tramp-compat.el (ansi-color): Require.

* lisp/net/tramp-sh.el (tramp-display-escape-sequence-regexp)
(tramp-device-escape-sequence-regexp): Delete.
(tramp-sh-handle-insert-directory, tramp-barf-if-no-shell-prompt)
(tramp-wait-for-output): Use `ansi-color-control-seq-regexp'.

* lisp/net/tramp.el (tramp-shell-prompt-pattern): Remove escape
characters.
(tramp-process-one-action, tramp-convert-file-attributes):
Use `ansi-color-control-seq-regexp'.  (Bug#63539)

* test/lisp/net/tramp-tests.el (tramp-display-escape-sequence-regexp):
Dont't declare.
(tramp-test28-process-file, tramp-test32-shell-command):
Use `ansi-color-control-seq-regexp'.
(tramp-test45-asynchronous-requests): Adapt test.
lisp/net/tramp-compat.el
lisp/net/tramp-sh.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el