From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug? Date: Thu, 29 Jun 2017 16:36:51 +0200 Message-ID: <874luysvwc.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQaYy-0007Dz-ML for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 10:36:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQaYx-0000DU-Rh for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 10:36:56 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60466) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dQaYx-0000Bn-Ku for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 10:36:55 -0400 In-Reply-To: (John Kitchin's message of "Tue, 20 Jun 2017 09:38:12 -0400") 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" To: John Kitchin Cc: Org-mode Hello, John Kitchin writes: > I think there is a bug with invisible edits. > > In org 8.2.10 if I set this: > > (setq org-catch-invisible-edits 'smart) ; or show > > and have org-toggle-pretty-entities active, then if there is no headline > before point, with the point here: > > NH^{3} > ^ > > I get outline-back-to-heading: Before first heading if I try to type anything. > > I also get this same error in org 9.0.7. It only happens with the 3 > wrapped in {}. > > That seems like a bug to me. Fixed, somewhat. I think `org-check-before-invisible-edit' deserves some discussion about its specifications. As-is, it contains logic errors. For example, if you try to edit text near invisible text and you happen to have invisible custom properties somewhere else in the buffer, the properties are going to be made visible but not the invisible text at point. I would be happy to fix this, but need to think about what is expected, e.g. when we are editing something near an invisible link or, as in your example, sub/superscript. Regards, -- Nicolas Goaziou