]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/tramp.el (tramp-debug-message):
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 9 Aug 2018 13:55:54 +0000 (15:55 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 9 Aug 2018 13:55:54 +0000 (15:55 +0200)
`tramp-compat-main-thread' could be nil.

lisp/net/tramp.el

index a8a927aea060dc34a8039e29c94d4c475afea905..5429cdf7fec3758d83c2f413eed69000f5cd7da8 100644 (file)
@@ -1587,7 +1587,8 @@ ARGUMENTS to actually emit the message (if applicable)."
       (insert (format-time-string "%T." now))
       (insert (format "%06d " (nth 2 now))))
     ;; Threads.
-    (unless (eq (tramp-compat-current-thread) tramp-compat-main-thread)
+    (unless (or (null tramp-compat-main-thread)
+               (eq (tramp-compat-current-thread) tramp-compat-main-thread))
       (insert (format "%s " (tramp-compat-current-thread))))
     ;; Calling Tramp function.  We suppress compat and trace functions
     ;; from being displayed.