emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Org emphasis markers inside src blocks causes incorrect fontific


From: Nicolas Goaziou
Subject: Re: [O] Org emphasis markers inside src blocks causes incorrect fontification
Date: Thu, 16 Nov 2017 22:47:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Kaushal Modi <address@hidden> writes:

> I increase the number of consecutive lines to be parsed for Org emphasis to
> 20 lines using:
>
> =====
>  (setcar (nthcdr 4 org-emphasis-regexp-components) 20) ;Up to 20 lines,
>  (org-set-emph-re 'org-emphasis-regexp-components
> org-emphasis-regexp-components)
> =====
>
> With that set, I see that equal signs in source blocks falsely trigger the
> org-verbatim fontification. And I see this[1]. Notice the fontification in
> the attached image (link at bottom of this email).. The equal signs in the
> first src block initiate the org-verbatim fontification and that goes on
> till the equal signs in the next code block.. so Heading 2 shows up in
> org-verbatim face.

[...]

> Shouldn't the presence of org emphasis markers be ignored when inside src
> blocks?

It should. 

Note that current fontification system only approximates the syntax of
the Org document. There are certainly more bugs like this one lurking in
the shadows.

At the moment, my suggestion would be to not mess with
`org-emphasis-regexp-components'.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]