I've been digging around, and I've found something a bit
peculiar. The function definition for tramp-buffer-name is
currently the following,
,----[ tramp-buffer-name ]
| (defun tramp-buffer-name (multi-method method user host)
| "A name for the connection buffer for USER at HOST using METHOD."
| (if multi-method
| (tramp-buffer-name-multi-method "tramp" multi-method method user host))
| (format "*tramp/%s %s@%s*" method user host))
`----
Take a close look at the indentation, it seems like the
(format ...) function call is inside the (if ...) -- but
actually it isn't. What leads me to think that this is a
bug, is that a similar function, tramp-debug-buffer-name,
has the same indentation, but here, the (format ...) line
_is_ inside the (if ...).
,----[ tramp-debug-buffer-name ]
| (defun tramp-debug-buffer-name (multi-method method user host)
| "A name for the debug buffer for USER at HOST using METHOD."
| (if multi-method
| (tramp-buffer-name-multi-method "debug tramp" multi-method method user host)
| (format "*debug tramp/%s %s@%s*" method user host)))
`----
Henrik.