Subject: bug#21870: 25.0.50; image now shown after decrypting image file

From: Dirk-Jan C. Binnema <[email-masked]>
Date: Mon, 16 Nov 2015 09:50:24 +0200

On Monday Nov 16 2015, Daiki Ueno wrote:

> Eli Zaretskii <[email-masked]> writes:
>
>>> >> It seems the auto-decryption functionality does not work correctly for
>>> >> encrypted images - that is, decryption works, but then the image is not
>>> >> shown.

[...]

>> Looks like epa-file.el doesn't run normal-mode after decrypting the
>> file?
>
> Thanks for forwarding.  Hmm, it seems that normal-mode is actually
> called, but image-mode tries to load the contents from the file, not
> from the buffer.  Does the following hack look correct?
>
> (It seems reading test.jpeg.gz works because ImageMagick supports
> compressed files.)

Yes -- seems that did the trick. Just tried it with the patch and the
image is now shown as expected.

Thanks!
Dirk.

-- 
Dirk-Jan C. Binnema                  Helsinki, Finland
e:[email-masked]           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C