>      (lambda (start end &rest args)
>          (org-src-font-lock-fontify-block "latex" start end))))

Or a safer version:

         (lambda (start end prop face)
           (when (eq face 'org-latex-and-related)
              (org-src-font-lock-fontify-block "latex" start end)))))

Also note that the advice doesn't avoid the double setting of
(font-lock-multiline t). This is harmless but it's unnecessary
nevertheless. It's just intended as a workaround and to show that it's
pretty simple to extend native fontification to inline snippets.

Reply via email to