Subject: bug#79356: 31.0.50; 'C-x p r' fails when there are .gpg files EPA can't decrypt

From: Sean Whitton <[email-masked]>
Date: Mon, 01 Sep 2025 09:44:58 +0100

Hello,

On Mon 01 Sep 2025 at 12:00am -04, Stefan Monnier wrote:

> The (equal (caddr err) "Can't decrypt") is rather hideous and brittle,
> especially given that `fileloop` is a generic operation that shouldn't
> know about EPA.

Yes.

> How 'bout we just prompt for all `file-error`s?  After all, the same
> kind of reasoning applies to invalid .gz files, or files for which we
> don't have read access, ...

I realised after trying out my patch a bit that the prompting is a bit
annoying.  It's common to interrupt and then restart 'C-x p r'
operations but that means you get prompted over and over again for the
same files.

How about converting `file-error's into warnings?

-- 
Sean Whitton