[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: c++ code block automatically adds comma [8.2.10 (release_8.
From: |
Michal Politowski |
Subject: |
Re: [O] Bug: c++ code block automatically adds comma [8.2.10 (release_8.2.10 @ c:/Users/Louis/home/bin/emacs-24.5/share/emacs/24.5/lisp/org/)] |
Date: |
Mon, 23 Oct 2017 11:25:42 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
On Sun, 22 Oct 2017 19:30:55 +0200, Nicolas Goaziou wrote:
> Hello,
>
> Louis Strous <address@hidden> writes:
>
> > When I edit a c++ code block using C-c ' and then finish the edit using
> > C-c ' again, then org-mode sometimes adds a comma to the code.
[...]
> > Note the appearance of a comma in front of the "*".
> >
> > 7. Press "C-c '" to edit the code block again. The code displayed in
> > the "*Org Src *scratch*[ c++ ]*" buffer does not contain the comma:
> >
> > if (foo)
> > *foo = 3;
> >
> > 8. Press "C-c '" to finish the editing. The code in the *scratch*
> > buffer still contains the comma.
> >
> > End of reproduction scenario.
>
> See (info "(org) Literal examples"), fourth footnote
Interesting, even if not very likely to hit anyone, that lines
intentionally starting with ,,* are not escaped and thus
lose one comma on the next edit.
--
MichaĆ Politowski
Talking has been known to lead to communication if practiced carelessly.