Hi Pieter, Thanks for the patch at the end of this thread.
Pieter Praet <pie...@praet.org> writes: > Ideally, we'd have a defcustom `org-crypt-auto-save' with the following > options: > - 'ask : Ask the user whether or not to decrypt the entry. > - 'disable : Disable auto-save-mode for the current buffer before decrypting. > - 'ignore : Decrypt the entry regardless. > - 'encrypt : Re-encrypt the entries before auto-save kicks in. > > I've implemented this, but it fails miserably: > > Since the function `auto-save-mode' doesn't set an buffer-local > var to indicate whether or not it's enabled for the current buffer, we > can only check for `auto-save-default'. I think we should first ask emacs-devel to fix this, then implement your clean solution. Would you like to report this problem? I'm not confident in disabling auto-save-mode globally by default, this would surprise users -- even with a **BiG WaRnInG** message. What do you think? -- Bastien