Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-07-29 Thread Bastien
Hi Achim, Achim Gratz writes: > FWIW, I prefer the other solution since it is more general. Again, the > content from the decryption process can be treated like an include > (except for display rather than during export) or rather an "inline > file", which might be worth having independently of

Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-07-29 Thread Achim Gratz
Bastien writes: >> 2. Demote the whole subtree to toplevel before encryption and promote >> into the correct level on decryption, (much in the same way that >> includes are handled). > > By "correct level on decryption" you mean toplevel? This would really > circumvent the problem. Not sure what

Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-07-29 Thread Bastien
Hi Samuel, Samuel Wales writes: > org-yank-adjusted-subtrees? I think this would work if the yank contains only one subtree, which will not be the case most of the times. Still worth exploring, I'll keep this in my todo list, -- Bastien

Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-07-28 Thread Samuel Wales
org-yank-adjusted-subtrees? On 7/28/14, Bastien wrote: > Hi Samuel and Achim, > > Achim Gratz writes: > >> Samuel Wales writes: >>> you will notice that the decrypted subtree is actually at a higher >>> level than its parent. this is a violation of org structure. >>> >>> in consequence, it can

Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-07-28 Thread Bastien
Hi Samuel and Achim, Achim Gratz writes: > Samuel Wales writes: >> you will notice that the decrypted subtree is actually at a higher >> level than its parent. this is a violation of org structure. >> >> in consequence, it can silently swallow the entire rest of the file. >> >> this is not desi

Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-06-08 Thread Achim Gratz
Samuel Wales writes: > you will notice that the decrypted subtree is actually at a higher > level than its parent. this is a violation of org structure. > > in consequence, it can silently swallow the entire rest of the file. > > this is not desired. > > is there a way to fix it? There's two ways

Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-06-08 Thread Samuel Wales
hi bastien, On 4/17/14, Bastien wrote: > Then I didn't understand what you suggested. Can you restate > it again? Thanks, will try. On 3/26/14, Samuel Wales wrote: > in maint, if you encrypt with org-crypt on an entry with children, then > demote, then decrypt, the subtree levels do not matc

Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-04-17 Thread Bastien
Samuel Wales writes: > On 4/11/14, Bastien wrote: >> That's expected. Users don't think Org is clever enough to >> decrypt-demote-subtrees-then-re-encrypt on the fly. > > i was not suggesting this. Then I didn't understand what you suggested. Can you restate it again? Thanks, -- Bastien

Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-04-17 Thread Samuel Wales
On 4/11/14, Bastien wrote: > That's expected. Users don't think Org is clever enough to > decrypt-demote-subtrees-then-re-encrypt on the fly. i was not suggesting this.

Re: [O] if we operate on a subtree, perhaps we could adjust levels

2014-04-11 Thread Bastien
Hi Samnuel, Samuel Wales writes: > in maint, if you encrypt with org-crypt on an entry with children, then > demote, then decrypt, the subtree levels do not match up. > for example, the children can end up as uncle/aunt nodes. That's expected. Users don't think Org is clever enough to decrypt-

[O] if we operate on a subtree, perhaps we could adjust levels

2014-03-26 Thread Samuel Wales
in maint, if you encrypt with org-crypt on an entry with children, then demote, then decrypt, the subtree levels do not match up. for example, the children can end up as uncle/aunt nodes. maybe something like these are possibilities: 1) optionally adjust subtree levels to match the location