GNU bug report logs - #37202
shadowfile-tests: two failures on macOS

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Wed, 28 Aug 2019 00:42:02 UTC

Severity: normal

Fixed in version 27.1

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

Bug is archived. No further changes may be made.

Full log


Message #73 received at 37202 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Glenn Morris <rgm <at> gnu.org>, Stefan Kangas <stefan <at> marxist.se>,
 37202 <at> debbugs.gnu.org
Subject: Re: bug#37202: shadowfile-tests: two failures on macOS
Date: Fri, 20 Sep 2019 21:13:25 +0200
Paul Eggert <eggert <at> 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.




This bug report was last modified 5 years and 227 days ago.

Previous Next


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