Using gpg with emacs mu4e and mbsync

NIIBE Yutaka gniibe at fsij.org
Tue May 19 04:04:42 CEST 2026


Hello,

famubu wrote:
> Without `--no-tty`: I am prompted to enter the password, but it is
> within an emacs buffer that is not editable. It should have appeared
> in the minibuffer where we can actually type the password.

IIUC, it is a problem of Emacs configuration to detect passphrase
prompt (so that it can ask with the minibuffer).

Do you mean that you are invoking mbsync in the shell buffer (or
something) within Emacs?  For me, it works when I use LANG=C.  When I
use LANG=ja_JP.utf8, it doesn't work (because Emacs fails to detect the
prompt).

The prompt string from GnuPG is "Enter passphrase: " in English (for the
loopback mode).

Please see the Emacs documentation for the configuration variable:

    comint-password-prompt-regexp

If needed, for your native language, ask how it can be configured,
possibly in Emacs forum.
-- 



More information about the Gnupg-users mailing list