From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug with special entities and (setq org-catch-invisible-edits t)? Date: Thu, 29 Sep 2016 22:43:18 +0200 Message-ID: <87eg42xwrd.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpiAu-0007PZ-Dk for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 16:43:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpiAq-0003GU-8H for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 16:43:23 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:40515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpiAq-0003Fd-18 for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 16:43:20 -0400 In-Reply-To: (John Kitchin's message of "Wed, 28 Sep 2016 15:04:30 -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: > If I have (setq org-catch-invisible-edits t) and run > (org-toggle-pretty-entities), then I get an error if I type: F_{A} and > try to continue typing. > > user-error: Edit in invisible region aborted, repeat to confirm with text visible > > If I set that variable to nil, it works fine, and it also works fine for > F_A. > > This is with: > Org-mode version 8.3.5 (8.3.5-1-g589e96-elpaplus @ /Users/jkitchin/vc/jkitchin-github/scimax/elpa/org-plus-contrib-20160822/) > > > Is that a bug, or expected? Somewhere in-between. It's broken, editing sub/super-script can be very tedious, but the proper behaviour is yet to be defined. The proof is all the possible values for `org-catch-invisible-edits' (which is mostly focused on preventing edition of folded contents, and is unrelated to invisible text like links and sub/super-script). Maybe brackets in sub/super-scripts not be made invisible, only minified. What do you expect instead? Regards, -- Nicolas Goaziou