emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use file-attributes accesors in existing code


From: Tino Calancha
Subject: Use file-attributes accesors in existing code
Date: Thu, 28 Jul 2016 23:53:23 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)


Dear all,

as you know in Emacs 25.2 we have accessors for each of
the values returned by 'file-attributes'.  These accessors
prevent from some hardcoded numbers in the code, that is,
write:
(file-attribute-size attr)
instead of:
(nth 5 attr)

I guess everyone would like to use these accesors in future code.

Is it worth to review the existing code, in a case by
case basis, to see where the use of these accesors may result in a
more readable code?

I am glad to carry this task in case the maintainers think is
useful.

How about another accesor returning a list (inode device)?
How to call it?
Is is too long 'file-attribute-inode-device-numbers'?

Regards,
Tino



reply via email to

[Prev in Thread] Current Thread [Next in Thread]