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

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

bug#51523: 29.0.50; gnus-mime-view-part-externally very slow


From: Eli Zaretskii
Subject: bug#51523: 29.0.50; gnus-mime-view-part-externally very slow
Date: Wed, 03 Nov 2021 15:17:57 +0200

> Date: Wed, 03 Nov 2021 12:57:27 +0000
> From: Gregory Heytings <gregory@heytings.org>
> cc: 51523@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>, larsi@gnus.org
> 
> -  (let* ((fileattr (file-attributes file 'integer))
> +  (let* ((fileattr (file-attributes
> +                    (if (file-name-absolute-p file) file (expand-file-name 
> file))
> +                    'integer))
>        (attr (cons (file-attribute-size fileattr)
>                    (file-attribute-modification-time fileattr)))
>        (sym (concat (symbol-name tag) "@" file))

You don't need to expand the file name you pass to file-attributes: it
does that internally.  What you need is to expand the file name you
pass as the key, i.e. for the symbol you are generating from the file
name.

Thanks.





reply via email to

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