emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Two small org-src patches


From: Clément Pit--Claudel
Subject: [O] Two small org-src patches
Date: Sun, 7 Aug 2016 15:16:05 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi emacs-orgmode,

I use prettify-symbols-mode heavily, and prettification isn't currently copied 
by org-src's native fontification. The two attached patches add this feature. 
You can test them by enabling global-prettify-symbols-mode and creating an 
emacs-lisp code block in org-mode. I already have FSF papers on file.

The first one is not strictly necessary, but it makes the second one easier to 
write, and it fixes (what I think is) a bug in the current implementation (if 
the 'face in the fontified buffer is already a list, say '(a b), then org-src 
will construct an invalid face '(:inherit (a b) org-block)) instead of 
(:inherit (a b org-block))—which could really just be (a b org-block), as done 
by patch 1). 

Cheers,
Clément.

Attachment: 0001-Use-font-lock-append-text-property-to-apply-org-src-.patch
Description: Text Data

Attachment: 0002-Copy-all-font-lock-properties-in-org-src-not-just-fa.patch
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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