From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anders Johansson Subject: Re: Bug: Problems with sub/super-script when using: org-cdlatex + org-pretty-entities + org-catch-invisible-edits Date: Sun, 23 Feb 2014 12:50:30 +0100 Message-ID: <5309E086.8030505@gmail.com> References: <5309DA59.3070905@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59916) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHXZy-000237-D6 for emacs-orgmode@gnu.org; Sun, 23 Feb 2014 06:50:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHXZq-0001c3-VO for emacs-orgmode@gnu.org; Sun, 23 Feb 2014 06:50:42 -0500 Received: from lyra.its.uu.se ([130.238.7.73]:46715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHXZq-0001bo-Nz for emacs-orgmode@gnu.org; Sun, 23 Feb 2014 06:50:34 -0500 Received: from [192.168.1.2] (nl118-173-131.student.uu.se [130.243.173.131]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by lyra.its.uu.se (Postfix) with ESMTPSA id 49616391DC for ; Sun, 23 Feb 2014 12:50:33 +0100 (CET) In-Reply-To: <5309DA59.3070905@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: emacs-orgmode@gnu.org > Hi, > I used the configuration: > > org-catch-invisible-edits 'show > org-pretty-entities t > > together with org-cdlatex. This breaks the insertion of subscripts and > superscripts through org-cdlatex because _{} is fontified and the {} > are hidden so typing for example: "a _ bc" results in "a_{b}c" (or > sometimes "a_bc", but should be "a_{bc}") and gives the message > "Unfolding invisible region around point before editing". > > Setting org-catch-invisible-edits to nil let's cdlatex do it's work so > I guess an easy solution would be to "let" that in > org-cdlatex-underscore-caret. > > > Cheers, > Anders Johansson Hi, I realized that my solution won't work since "org-check-before-invisible-edit" does it's work after "org-cdlatex-underscore-caret" has called "cdlatex-sub-superscript" and inserted "_{}". Maybe then org-catch-invisible-edits should be nil all the time in org-cdlatex-mode? But this would be unexpected. Maybe this can be treated as a special case in "org-check-before-invisible-edit" in some way? Cheers, Andes Johansson