在最近的 gnupg 版本中,出现了 breaking changes 导致 Emacs 保存文件时会卡住,涉及的版本有:
目前能确认的是 2.4.0 版本是没有问题的,如果遇到这个问题,可以尝试降级:
brew uninstall --ignore-dependencies gnupg
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/59edfe598541186430d49cc34f42671e849e2fc9/Formula/gnupg.rb
brew install -s gnupg.rb
相关讨论:
[1]
⚓ T6481 BEGIN_ENCRYPTION status output happens later in 2.4.1 (breaks Emacs's EasyPG): https://dev.gnupg.org/T6481
[2]
gnupg 2.4.1 encryption issues with emacs / org-mode: https://www.reddit.com/r/emacs/comments/137r7j7/gnupg_241_encryption_issues_with_emacs_orgmode/