bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#37202: shadowfile-tests: two failures on macOS


From: Michael Albinus
Subject: bug#37202: shadowfile-tests: two failures on macOS
Date: Fri, 20 Sep 2019 21:13:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Paul Eggert <eggert@cs.ucla.edu> writes:

Hi Paul,

> So, regardless of the the recent access changes, it appears that this
> code in tramp-handle-file-modes:
>
>     (when (file-exists-p truename)
>       (tramp-mode-string-to-int
>        (tramp-compat-file-attribute-modes (file-attributes truename))))
>
> should be rewritten to be something like this:
>
>     (when-let ((attrs (file-attributes truename)))
>       (tramp-mode-string-to-int
>        (tramp-compat-file-attribute-modes attrs)))

Something like this, yes. Except, that when-let does not exist in Emacs 24.4.

Best regards, Michael.





reply via email to

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