From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Org emphasis markers inside src blocks causes incorrect fontification Date: Thu, 16 Nov 2017 21:56:56 +0000 Message-ID: References: <87bmk1vqtt.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114d90508305e1055e20b372" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFS9m-00057F-2h for emacs-orgmode@gnu.org; Thu, 16 Nov 2017 16:57:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFS9l-0000h7-3P for emacs-orgmode@gnu.org; Thu, 16 Nov 2017 16:57:10 -0500 Received: from mail-yw0-x236.google.com ([2607:f8b0:4002:c05::236]:41845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eFS9k-0000gK-Vb for emacs-orgmode@gnu.org; Thu, 16 Nov 2017 16:57:09 -0500 Received: by mail-yw0-x236.google.com with SMTP id k3so444397ywk.8 for ; Thu, 16 Nov 2017 13:57:08 -0800 (PST) In-Reply-To: <87bmk1vqtt.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: Nicolas Goaziou Cc: emacs-org list --001a114d90508305e1055e20b372 Content-Type: text/plain; charset="UTF-8" On Thu, Nov 16, 2017 at 4:47 PM Nicolas Goaziou wrote: > At the moment, my suggestion would be to not mess with > `org-emphasis-regexp-components'. > I stayed away from messing with that for the longest time, until a bug got into me to always auto-fill the Org files (as it makes it easier to read them in browser, etc.) As I started auto-filling, I noticed that stuff like: ===== Line 1 starts with /three words italicized/, but the third word ends up on the 2nd line. ===== It wasn't always in my control to always begin and end emphasis on the same line, and so resorted to tweaking org-emphasis-regexp-components. Overall it works great, except for cases like these. Again it's a font-locking bug, and thankfully doesn't impact the empasis detection in exporters. Would you please look into fixing this? -- Kaushal Modi --001a114d90508305e1055e20b372 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Nov 16= , 2017 at 4:47 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
At the moment, my suggestion would be to not mess with
`org-emphasis-regexp-components'.

I= stayed away from messing with that for the longest time, until a bug got i= nto me to always auto-fill the Org files (as it makes it easier to read the= m in browser, etc.)

As I started auto-filling, I n= oticed that stuff like:

=3D=3D=3D=3D=3D
= Line 1 starts with /three words
italicized/, but the third word e= nds=C2=A0
up on the 2nd line.
=3D=3D=3D=3D=3D

It wasn't always in my control to always begin and end = emphasis on the same line, and so resorted to tweaking org-emphasis-regexp-= components. Overall it works great, except for cases like these.
=
Again it's a font-locking bug, and thankfully doesn'= t impact the empasis detection in exporters.

Would= you please look into fixing this?
--
Kaushal Modi

--001a114d90508305e1055e20b372--