emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Weird Asymptote mode behaviour in org
@ 2015-08-24  7:08 Jarmo Hurri
  2015-08-24 14:55 ` Nicolas Goaziou
  2015-08-24 15:30 ` Nicolas Richard
  0 siblings, 2 replies; 4+ messages in thread
From: Jarmo Hurri @ 2015-08-24  7:08 UTC (permalink / raw)
  To: emacs-orgmode


Greetings.

When editing Asymptote code in org, a comma sometimes appears out of
nowhere into the Asymptote code. The org code below explains how to
reproduce this. (I am using the version of org pulled this morning.)

Jarmo

* description
  Move cursor into the code below. Press ~C-c '~ to edit the code in
  Asymptote mode. Do not change anything in the code, just press ~C-c
  '~ to return to org. You will notice that a comma has been inserted
  into the code.
* test case
  #+BEGIN_SRC asymptote
    real s = 50
      * 21.1;
  #+END_SRC

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

* Re: Weird Asymptote mode behaviour in org
  2015-08-24  7:08 Weird Asymptote mode behaviour in org Jarmo Hurri
@ 2015-08-24 14:55 ` Nicolas Goaziou
  2015-08-24 15:30 ` Nicolas Richard
  1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2015-08-24 14:55 UTC (permalink / raw)
  To: Jarmo Hurri; +Cc: emacs-orgmode

Hello,

Jarmo Hurri <jarmo.hurri@iki.fi> writes:

> When editing Asymptote code in org, a comma sometimes appears out of
> nowhere into the Asymptote code. The org code below explains how to
> reproduce this. (I am using the version of org pulled this morning.)
>
> Jarmo
>
> * description
>   Move cursor into the code below. Press ~C-c '~ to edit the code in
>   Asymptote mode. Do not change anything in the code, just press ~C-c
>   '~ to return to org. You will notice that a comma has been inserted
>   into the code.
> * test case
>
>   #+BEGIN_SRC asymptote
>     real s = 50
>       * 21.1;
>   #+END_SRC

See (info "(org) Literal examples"), in particular fourth footnote.


Regards,

-- 
Nicolas Goaziou

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

* Re: Weird Asymptote mode behaviour in org
  2015-08-24  7:08 Weird Asymptote mode behaviour in org Jarmo Hurri
  2015-08-24 14:55 ` Nicolas Goaziou
@ 2015-08-24 15:30 ` Nicolas Richard
  2015-08-27  4:55   ` Jarmo Hurri
  1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Richard @ 2015-08-24 15:30 UTC (permalink / raw)
  To: Jarmo Hurri; +Cc: emacs-orgmode

Hello,

Jarmo Hurri <jarmo.hurri@iki.fi> writes:
> * description
>   Move cursor into the code below. Press ~C-c '~ to edit the code in
>   Asymptote mode. Do not change anything in the code, just press ~C-c
>   '~ to return to org. You will notice that a comma has been inserted
>   into the code.
> * test case
>
>   #+BEGIN_SRC asymptote
>     real s = 50
>       * 21.1;
>   #+END_SRC

The comma is meant to escape the star (*), see footnote in (info "(org)
Literal examples"). I'm not sure the comma is required (because your *
isn't at the start of the line), but is shouldn't hurt (i.e. you can C-c
', you can C-c C-c, etc.)

-- 
Nicolas Richard

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

* Re: Weird Asymptote mode behaviour in org
  2015-08-24 15:30 ` Nicolas Richard
@ 2015-08-27  4:55   ` Jarmo Hurri
  0 siblings, 0 replies; 4+ messages in thread
From: Jarmo Hurri @ 2015-08-27  4:55 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Richard <youngfrog@members.fsf.org> writes:

>> * description
>>   Move cursor into the code below. Press ~C-c '~ to edit the code in
>>   Asymptote mode. Do not change anything in the code, just press ~C-c
>>   '~ to return to org. You will notice that a comma has been inserted
>>   into the code.
>> * test case
>>
>>   #+BEGIN_SRC asymptote
>>     real s = 50
>>       * 21.1;
>>   #+END_SRC
>
> The comma is meant to escape the star (*), see footnote in (info
> "(org) Literal examples"). I'm not sure the comma is required (because
> your * isn't at the start of the line), but is shouldn't hurt
> (i.e. you can C-c ', you can C-c C-c, etc.)

Thanks! Seems I have skipped some parts of the manual. :)

I can live with this now that I know it. It is extremely confusing at
first, though, so future generations might prefer to live without that
feature if it is not really necessary. That is, if a comma is not needed
when the star (*) is not at the beginning of the line.

All the best,

Jarmo

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

end of thread, other threads:[~2015-08-27  4:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-24  7:08 Weird Asymptote mode behaviour in org Jarmo Hurri
2015-08-24 14:55 ` Nicolas Goaziou
2015-08-24 15:30 ` Nicolas Richard
2015-08-27  4:55   ` Jarmo Hurri

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