Subject: bug#58446: 28.2; file-attribute-device-number returns a cons cell instead of an integer

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 12 Oct 2022 13:13:30 +0200

Thierry Volpiatto <[email-masked]> writes:

> The device-number in file-attributes (nth 11) is a cons cell when called
> on remote files (see tramp-get-device).
> It would be great to notify this in Emacs documentation and how to
> interpret this value e.g. (-1 . 1).
> I noticed this in fixing a bug in dired-async.el, the code was using `=`
> to compare the two values which is legitimate according to docstring.

Hm...  would it be possible for Tramp to stash that information
somewhere else?  It is (as you say) documented to be a number.