7

I've used Emacs' built-in gpg support to encrypt/decrypt files for years. A few days ago, I tried to save an ecrypted file that had changes and the save wouldn't finish. The minibuffer shows "Saving file ..." but doesn't save.

Emacs doesn't hang (I'm able to quit the process with C-g), but nothing happens. I don't see any errors reported in *Messages*.

I created a new test file, encrypted it with epa-encrypt-file, decrypted it, then changed it and tried to save - same result, the save doesn't complete.

I'm not certain these are relevant, but these are found on my system (installed via Homebrew):

  • gpg (GnuPG) 2.4.3
  • libgcrypt 1.10.2
Drew
  • 75,699
  • 9
  • 109
  • 225
vortek
  • 193
  • 4

1 Answers1

7

Downgrade to GnuPG 2.4.0 should help.

There is an issue registered in gnupg and numerous reports in other resources: https://dev.gnupg.org/T6481

It is still not fixed as of GnuPG 2.4.3, unfortunately.

Maxim Kim
  • 1,516
  • 9
  • 17
  • 1
    Homebrew doesn't have a formula for 2.4.0 so I downgraded to 2.2.41. I'm sure that's not ideal, but at least it works. Thank you so much @maxim-kim! – vortek Jul 25 '23 at 00:28
  • 1
    @vortek you can use this script: https://gist.github.com/sankalp-khare/94fee1727ec5d199018be225127510d2 like `./switch-gnupg.sh 2.4.0` to change to version 2.4.0 in your homebrew setup. It will also pin that version so that subsequent brew upgrade won't get you back to the latest. – Sankalp Jul 26 '23 at 07:30