GNU bug report logs - #58446
28.2; file-attribute-device-number returns a cons cell instead of an integer

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thievol <at> posteo.net>

Date: Tue, 11 Oct 2022 18:18:02 UTC

Severity: normal

Found in version 28.2

Fixed in version 29.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Thierry Volpiatto <thievol <at> posteo.net>
Cc: Michael Albinus <michael.albinus <at> gmx.de>, 58446 <at> debbugs.gnu.org
Subject: bug#58446: 28.2; file-attribute-device-number returns a cons cell instead of an integer
Date: Wed, 12 Oct 2022 13:13:30 +0200
Thierry Volpiatto <thievol <at> posteo.net> 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.




This bug report was last modified 2 years and 299 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.