From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Outline and org-mode don't insert text into folded sections logically Date: Sun, 30 Oct 2011 13:00:03 +0530 Message-ID: <81ehxvey2s.fsf@gmail.com> References: <1315077299.1785.YahooMailClassic@web121520.mail.ne1.yahoo.com> <837h5nh1df.fsf@yahoo.it> <877h3xibb0.fsf@gnu.org> <81ehy5uy0t.fsf@gmail.com> <87wrbxdter.fsf@gnu.org> <877h3n7usn.fsf@gnu.org> <87hb2ru7qf.fsf@gnu.org> <87vcr7srij.fsf@gnu.org> <87k47ns2vx.fsf@gnu.org> <6CBBC924-DD81-46F0-B8ED-EC92D9B6A2AE@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKPqU-0001O1-Px for emacs-orgmode@gnu.org; Sun, 30 Oct 2011 03:30:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKPqT-0006Xl-Ia for emacs-orgmode@gnu.org; Sun, 30 Oct 2011 03:30:18 -0400 Received: from mail-pz0-f47.google.com ([209.85.210.47]:39729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKPqT-0006XV-Cv for emacs-orgmode@gnu.org; Sun, 30 Oct 2011 03:30:17 -0400 Received: by pzd13 with SMTP id 13so14803754pzd.6 for ; Sun, 30 Oct 2011 00:30:16 -0700 (PDT) In-Reply-To: <6CBBC924-DD81-46F0-B8ED-EC92D9B6A2AE@gmail.com> (Carsten Dominik's message of "Sun, 30 Oct 2011 07:28:48 +0100") 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 > - This patch covers only one of many ways to make unwanted changes > in an invisible area. Others would be delete, backspace, > kill-region, yank, kill-line, and an arbitrarily long list of > less obvious other commands. Full protection could only be > done with pre-change-hooks or so, but would then prevent ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ May be you were referring to `before-change-functions' here? I see the use of the above hook already in Org. (Strangely this hook ends with "functions" and has no has no hook in it.) ,---- | (org-add-hook 'before-change-functions 'org-before-change-function nil | 'local) `---- > also programmed changes - something that would not be useful. > `org-self-insert-command' is probably only ever used in an > interactive way, so the patch as you have written it may very > well function correctly.