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: Sat, 22 Oct 2011 15:51:54 +0530 Message-ID: <81ehy5uy0t.fsf@gmail.com> References: <1315077299.1785.YahooMailClassic@web121520.mail.ne1.yahoo.com> <837h5nh1df.fsf@yahoo.it> <877h3xibb0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHYiU-0006vW-Ld for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 06:22:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHYiS-0002HX-Lx for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 06:22:14 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:57161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHYiS-0002HQ-HT for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 06:22:12 -0400 Received: by ggnh4 with SMTP id h4so5305939ggn.0 for ; Sat, 22 Oct 2011 03:22:11 -0700 (PDT) In-Reply-To: <877h3xibb0.fsf@gnu.org> (Bastien's message of "Sat, 22 Oct 2011 12:13:23 +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: Bastien Cc: emacs-orgmode@gnu.org, Kelly Dean Bastien writes: > Hi Suvayu, > > suvayu ali writes: > >> I think this might be the right time to ask for a feature request, >> unfold a tree if someone tries to edit it. This will prevent many >> "mishaps". > > Good idea. There is `post-self-insert-hook' but there is no > `pre-self-insert-hook' that would check whether the point is in > an invisible area of the buffer, and send a warning about this. In org-self-insert-command check for visibility at point and take the required action. > Any idea on how to implement this? --