emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug with special entities and (setq org-catch-invisible-edits t)?
@ 2016-09-28 19:04 John Kitchin
  2016-09-28 19:10 ` Kaushal Modi
  2016-09-29 20:43 ` Nicolas Goaziou
  0 siblings, 2 replies; 4+ messages in thread
From: John Kitchin @ 2016-09-28 19:04 UTC (permalink / raw)
  To: org mode

Hi all,

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?

Thanks,



-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bug with special entities and (setq org-catch-invisible-edits t)?
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Kaushal Modi @ 2016-09-28 19:10 UTC (permalink / raw)
  To: John Kitchin, org mode

[-- Attachment #1: Type: text/plain, Size: 859 bytes --]

On Wed, Sep 28, 2016 at 3:06 PM John Kitchin <jkitchin@andrew.cmu.edu>
wrote:

> Hi all,
>
> 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?
>

I would like to know the solution to this too! I faced this just last week.

A workaround was to do "C-q Space" after "F_{A}" instead of just "Space".

I am using almost the latest build of org master branch (updated and built
yesterday).
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1356 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bug with special entities and (setq org-catch-invisible-edits t)?
  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
  2016-09-30  0:47   ` John Kitchin
  1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2016-09-29 20:43 UTC (permalink / raw)
  To: John Kitchin; +Cc: org mode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bug with special entities and (setq org-catch-invisible-edits t)?
  2016-09-29 20:43 ` Nicolas Goaziou
@ 2016-09-30  0:47   ` John Kitchin
  0 siblings, 0 replies; 4+ messages in thread
From: John Kitchin @ 2016-09-30  0:47 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: org mode

>> 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?

It seems like you should be able to type F_{A} and keep on typing.
Minified would be ok by me.

>
>
> Regards,


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-30  0:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-09-30  0:47   ` John Kitchin

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).