Subject: bug#28622: 25.1; EasyPG conflicts with tar-mode

From: Adam Tack <[email-masked]>
Date: Sat, 7 Apr 2018 01:47:21 +0200

The issue is also present in emacs 24.5.1 and 26.1 (latest from git -
5659b2fe843627aa4b6d450758f71920143ac173).

I think that the problem is caused by the fact that
`epa-file-write-region' (which is used when saving buffers
corresponding to `.gpg' files), does not call any of the
`write-region-annotate-functions', directly or indirectly.

`tar-mode' normally uses `tar-write-region-annotate' (which is added
to `write-region-annotate-functions') to select the tar data buffer
instead of the buffer containing the file listing, when saving.

Adam