From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: if we operate on a subtree, perhaps we could adjust levels Date: Tue, 29 Jul 2014 18:03:29 +0200 Message-ID: <87zjfsf8z2.fsf@Rainer.invalid> References: <87y4zc3ss0.fsf@bzg.ath.cx> <8761m81cyh.fsf@bzg.ath.cx> <87k38qwru3.fsf@Rainer.invalid> <87d2cpwg3r.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC9sU-0006f5-Q6 for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 12:03:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XC9sN-0002p1-En for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 12:03:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:39632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC9sN-0002os-8I for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 12:03:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XC9sM-00041R-Jp for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 18:03:42 +0200 Received: from pd9eb16aa.dip0.t-ipconnect.de ([217.235.22.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jul 2014 18:03:42 +0200 Received: from Stromeko by pd9eb16aa.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Jul 2014 18:03:42 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 you mean by toplevel, but the way includes are handled is to check at what level the include is happening and promote the included content to that level. That would also make the encrypted subtree independent of any movements in the hierarchy, which is IMHO desirable. > Maybe we can store the level in a property on encryption and simply > throw a warning on decryption, letting the user decide whether she > wants to continue decrypting even when it may break the hierarchy. 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 encrypted subtree as well. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables