emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: bug with special entities and (setq org-catch-invisible-edits t)?
Date: Thu, 29 Sep 2016 22:43:18 +0200	[thread overview]
Message-ID: <87eg42xwrd.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2h98zlubl.fsf@Johns-MacBook-Air.local> (John Kitchin's message of "Wed, 28 Sep 2016 15:04:30 -0400")

Hello,

John Kitchin <jkitchin@andrew.cmu.edu> 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

  parent reply	other threads:[~2016-09-29 20:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 19:04 bug with special entities and (setq org-catch-invisible-edits t)? John Kitchin
2016-09-28 19:10 ` Kaushal Modi
2016-09-29 20:43 ` Nicolas Goaziou [this message]
2016-09-30  0:47   ` John Kitchin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eg42xwrd.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).