emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SUGGESTION] Re: [PATCH] org-crypt-decrypt-entry: Apply initial visi


From: Ihor Radchenko
Subject: Re: [SUGGESTION] Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption
Date: Mon, 01 May 2023 07:50:17 +0000

"Christopher M. Miles" <numbchild@gmail.com> writes:

> I'm also try to improve this file to improve large Org buffer saving 
> performance.

org-encrypt already caches the encrypted text and takes basically no
time for the repeated encryption, as long the text to be encrypted is unchanged.

> I have some ideas:
>
> - auto encrypt buffer on buffer save hook (currently mechanism, your patch 
> improved it)

Sorry, but my patch has nothing to do with save hook. It only changes 
decryption.

> - auto decrypt on org-cycle expand headline if current headline is encrypted. 
> e.g. on `org-cycle-hook`

I am not sure how it has anything to do with performance.
You can already use C-c C-r (or M-x org-reveal) to decrypt entry at
point.
We should certainly not attempt decryption on <tab> by default - it may
be annoying when you actually do not want to decrypt anything, just look inside.

> - auto encrypt ONLY current fold action on headline scope if has crypt key 
> specified. e.g. on `org-cycle-hook`

That might be possible, but I often do not want my encrypted
sub-headings being encrypted while I re-structure and re-fold my file.

May you elaborate what performance issues you are experiencing?

-- 
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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]