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

From: Eli Zaretskii <[email-masked]>
Date: Sat, 14 Nov 2015 16:34:16 +0200

> From: Dirk-Jan C. Binnema <[email-masked]>
> Cc: [email-masked]
> Date: Tue, 10 Nov 2015 19:12:51 +0200
> 
> On Tuesday Nov 10 2015, Eli Zaretskii wrote:
> 
> >> From: Dirk-Jan C. Binnema <[email-masked]>
> >> Date: Tue, 10 Nov 2015 10:30:44 +0200
> >> 
> >> It seems the auto-decryption functionality does not work correctly for
> >> encrypted images - that is, decryption works, but then the image is not
> >> shown.
> >> 
> >> Steps to reproduce:
> >> 1) Open an encrypted image file (say, test.jpeg.gpg)
> >> 2) Enter the passphrase, when asked (by easypg I assume)
> >> 3) Now, see a small rectangle in the upper left of the current window;
> >>    instead of the expected image
> >> 
> >> Expected behavior would be to see the image, just as if opening
> >> test.jpeg directly.
> >
> > If you do the same with a different kind of file, does Emacs activate
> > the correct major mode after decrypting the file?
> 
> Yes - e.g. opening test.org.gpg will decrypt, then activate org-mode.
> 
> (and note that this is reproducible with emacs -Q)

Looks like epa-file.el doesn't run normal-mode after decrypting the
file?

Daiki, would you please look into this?  If you want to install a fix,
please do that on the emacs-25 branch.

Thanks.