From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Outline and org-mode don't insert text into folded sections logically Date: Sun, 30 Oct 2011 08:47:55 +0100 Message-ID: <43F409DA-B563-40F9-B467-176EE0F15E11@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> <81ehxvey2s.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKQ7d-00032K-1z for emacs-orgmode@gnu.org; Sun, 30 Oct 2011 03:48:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKQ7b-0000Yb-Sw for emacs-orgmode@gnu.org; Sun, 30 Oct 2011 03:48:01 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:43067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKQ7b-0000YG-N9 for emacs-orgmode@gnu.org; Sun, 30 Oct 2011 03:47:59 -0400 Received: by eye4 with SMTP id 4so5089476eye.0 for ; Sun, 30 Oct 2011 00:47:58 -0700 (PDT) In-Reply-To: <81ehxvey2s.fsf@gmail.com> 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: Jambunathan K Cc: emacs-orgmode@gnu.org On 30.10.2011, at 08:30, Jambunathan K wrote: > >> - 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? Yes, my mistake. - Carsten > > 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. >