From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Politowski Subject: Re: 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 Message-ID: <20171023092542.utt55h7qpwgjqr5m@meep.pl> References: <3a8aae30ca551ef356f7c0843c392611@quae.nl> <87efpvrsxc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Yzg-0002jE-F7 for emacs-orgmode@gnu.org; Mon, 23 Oct 2017 05:26:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6Yzc-0007c8-Gc for emacs-orgmode@gnu.org; Mon, 23 Oct 2017 05:26:00 -0400 Received: from mx1.icm.edu.pl ([213.135.59.49]:47044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Yzc-0007YX-9R for emacs-orgmode@gnu.org; Mon, 23 Oct 2017 05:25:56 -0400 Received: from smtp.icm.edu.pl (mail.icm.edu.pl [213.135.59.43]) by mx1.icm.edu.pl (Postfix) with ESMTP for ; Mon, 23 Oct 2017 11:25:46 +0200 (CEST) Received: from Amber.meep.pl (31-179-121-212.dynamic.chello.pl [31.179.121.212]) by smtp.icm.edu.pl (Postfix) with ESMTPSA id 0F2DD1FC92 for ; Mon, 23 Oct 2017 11:25:45 +0200 (CEST) Received: from mike by Amber.meep.pl with local (Exim 4.89) (envelope-from ) id 1e6YzO-0002CC-VP for emacs-orgmode@gnu.org; Mon, 23 Oct 2017 11:25:43 +0200 Content-Disposition: inline In-Reply-To: <87efpvrsxc.fsf@nicolasgoaziou.fr> 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" To: emacs-orgmode@gnu.org On Sun, 22 Oct 2017 19:30:55 +0200, Nicolas Goaziou wrote: > Hello, >=20 > Louis Strous writes: >=20 > > 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 =3D 3; > > > > 8. Press "C-c '" to finish the editing. The code in the *scratch* > > buffer still contains the comma. > > > > End of reproduction scenario. >=20 > 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. --=20 Micha=B3 Politowski Talking has been known to lead to communication if practiced carelessly.