Re: [Orgmode] [ANN] org-crypt Version 0.3
On May 18, 2009, at 6:40 PM, Peter Jones wrote: Sorry for the delays in getting this posted, I've been doing a lot of traveling lately. The attached version of org-crypt fixes a few bugs and is just about ready to be included in org proper. The only thing it might need before inclusion in org is automatic encryption via hooks. I'd like to find out how people feel about that. Should org-crypt attach itself to org-mode-hook so that it can decrypt encrypted entries after you open an org file? At first I thought yes, but now I'm leaning towards no, you should decrypt entries manually as needed. Yes, I agree. It would be good though to have a function that does it for the entire buffer, just like Scot proposed. And, this function should be ready so that is can safely be stuck into org-mode-hook, for people who want to do automatic decryption. I do think that org-crypt should hook itself into before-save-hook so that all entries that *should* be encrypted are encrypted before the file touches the disk. A user of org-crypt shouldn't have to worry about setting up a hook, it should just happen automatically. I do agree. Does anyone know how tis will interact with auto-safe? Will the tree be encrypted in my face, when an auto-safe happens. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] org-crypt Version 0.3
The attached version of org-crypt fixes a few bugs and is just about ready to be included in org proper. The only thing it might need before inclusion in org is automatic encryption via hooks. Peter, I have just been trying out org-crypt. With a minimal org file: -*- mode: org; before-save-hook: (org-encrypt-entries) -*- #+STARTUP: showall #+STARTUP: hidestars * Headline 1 * Headline 2 :crypt: -BEGIN PGP MESSAGE- Version: GnuPG v1.4.9 (GNU/Linux) [Rest of buffer deleted] I get the following error: --- The local variables list in test_crypt.org contains variables that are risky (**). Do you want to apply it? ** before-save-hook: (org-encrypt-entries) --- I am presuming that this error is coming from org. Any idea what might be causing it? Ian. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] org-crypt Version 0.3
I'd like to find out how people feel about that. Should org-crypt attach itself to org-mode-hook so that it can decrypt encrypted entries after you open an org file? At first I thought yes, but now I'm leaning towards no, you should decrypt entries manually as needed. Yes, manually sounds good. Though there should also be a way to (manually) decrypt ALL entries at once as well. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] org-crypt Version 0.3
I think that typically you load a library, then run a function to add stuff to hooks. That way, loading the library does not have side-effects. Some packages use the term insinuate. I'd opt for a default of always encrypting when saving and only decrypting when manually done. Maybe a little note in the properties drawer can tell the user how to do this? On Mon, May 18, 2009 at 09:40, Peter Jones mli...@pmade.com wrote: Sorry for the delays in getting this posted, I've been doing a lot of traveling lately. The attached version of org-crypt fixes a few bugs and is just about ready to be included in org proper. The only thing it might need before inclusion in org is automatic encryption via hooks. I'd like to find out how people feel about that. Should org-crypt attach itself to org-mode-hook so that it can decrypt encrypted entries after you open an org file? At first I thought yes, but now I'm leaning towards no, you should decrypt entries manually as needed. I do think that org-crypt should hook itself into before-save-hook so that all entries that *should* be encrypted are encrypted before the file touches the disk. A user of org-crypt shouldn't have to worry about setting up a hook, it should just happen automatically. Any suggestions on the best way to make that happen in org-crypt? -- Peter Jones, http://pmade.com pmade inc. Louisville, CO US ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode