Daniel Clemente <n142...@gmail.com> writes: >> May you try >> https://git.sr.ht/~yantar92/org-mode/log/feature/org-crypt-refactor branch? >> Is encryption speed satisfactory then? > > With that code I see something strange: I opened a file which had > encrypted :crypt: sections (never unencrypted), and after adding a > space somewhere else and saving, it asked me for an encryption > password. It shouldn't, since all sections are encrypted. > I also see „org-crypt: Re-encrypting all decrypted entries due to > auto-save“ asking me for the encryption password.
Note that it may be asking about _different_ buffers, not just current. That's because auto-save-mode saves all the buffers, not just current :) > But I tried removing all :crypt: tags (I renamed them to something > else), and saving a large file seems as slow as before. A few seconds > (often 5 seconds; sometimes it's just 2 or 3; this was the case before > too). Here's when it's 5, for 1 save: I think I fixed this now. May you try the latest version of the same branch? > I also see new problems (which would take me a long time to explain > since I don't understand the code or the settings), where: > - Org asks me for an encryption password even if there are no :crypt: > tags. I just changed the only :crypt: tag to a :nocrypt: tag and saved I cannot reproduce. May you create a small example file and explain how to trigger the problem you are seeing? > - Org spends around 20 seconds trying to save the file, in a loop, > reporting: (error "org-crypt: Encryption failed. Not saving the > buffer. Error: GPG error: \"Encrypt failed\", \"Canceled; Exit\"") This is curious, but I again have no clue. Maybe the new version of the branch works a bit better. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>