diff options
| author | Michael Albinus | 2019-11-13 15:55:35 +0100 |
|---|---|---|
| committer | Michael Albinus | 2019-11-13 15:55:35 +0100 |
| commit | 65fb04801c59ac204790e0a5c0599c9b11151f32 (patch) | |
| tree | cfe65c0536c943fdab968bc2c5a3094405780788 /lisp/net | |
| parent | eae50e88ef80a000f87954813b4b4cb8c8a1bb17 (diff) | |
| download | emacs-65fb04801c59ac204790e0a5c0599c9b11151f32.tar.gz emacs-65fb04801c59ac204790e0a5c0599c9b11151f32.zip | |
Finish last Tramp patch
* lisp/net/tramp.el (outline-regexp): Remove declaration.
(tramp-debug-outline-regexp): Add thread regexp.
(tramp-debug-font-lock-keywords): New defconst.
(tramp-debug-outline-level): Adapt to changed
`tramp-debug-outline-regexp'.
(tramp-get-debug-buffer): Use `tramp-debug-font-lock-keywords'.
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/tramp.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index ab1b4d354f7..99c93eaa573 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1648,7 +1648,11 @@ version, the function does nothing." | |||
| 1648 | (format "*debug tramp/%s %s*" method host-port)))) | 1648 | (format "*debug tramp/%s %s*" method host-port)))) |
| 1649 | 1649 | ||
| 1650 | (defconst tramp-debug-outline-regexp | 1650 | (defconst tramp-debug-outline-regexp |
| 1651 | "[0-9]+:[0-9]+:[0-9]+\\.[0-9]+ [a-z0-9-]+ (\\([0-9]+\\)) #" | 1651 | (eval-when-compile |
| 1652 | (concat | ||
| 1653 | "[0-9]+:[0-9]+:[0-9]+\\.[0-9]+ " ;; Timestamp. | ||
| 1654 | "\\(?:\\(#<thread .+>\\) \\)?" ;; Thread. | ||
| 1655 | "[a-z0-9-]+ (\\([0-9]+\\)) #")) ;; Function name, verbosity. | ||
| 1652 | "Used for highlighting Tramp debug buffers in `outline-mode'.") | 1656 | "Used for highlighting Tramp debug buffers in `outline-mode'.") |
| 1653 | 1657 | ||
| 1654 | (defconst tramp-debug-font-lock-keywords | 1658 | (defconst tramp-debug-font-lock-keywords |
| @@ -1663,7 +1667,7 @@ version, the function does nothing." | |||
| 1663 | Point must be at the beginning of a header line. | 1667 | Point must be at the beginning of a header line. |
| 1664 | 1668 | ||
| 1665 | The outline level is equal to the verbosity of the Tramp message." | 1669 | The outline level is equal to the verbosity of the Tramp message." |
| 1666 | (1+ (string-to-number (match-string 1)))) | 1670 | (1+ (string-to-number (match-string 2)))) |
| 1667 | 1671 | ||
| 1668 | (defun tramp-get-debug-buffer (vec) | 1672 | (defun tramp-get-debug-buffer (vec) |
| 1669 | "Get the debug buffer for VEC." | 1673 | "Get the debug buffer for VEC." |