emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Bug: Add option to fontify latex blocks [9.1.9 (release_9.1.9-65


From: Carlos Pita
Subject: Re: [O] Bug: Add option to fontify latex blocks [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)]
Date: Sat, 22 Dec 2018 10:16:54 -0300


> Maybe you could rewrite my function in a better way using the
> precomputed latex regexps and augmenting them with #+BEGIN/END
> counterparts.

Per above, I'm not really interested in writing yet another workaround
for something that is going to fail anyway. For the time being, I just
accept that fontification is not perfect.

Hi Nicolas, I understand this. It's just that I have been using an extension function for editing complex documents with lots of blocks (latex and org) and I've not yet seen any problem, while I quickly spot rough edges otherwise. It's not like writing yet another workaround in an accumulative fashion, since the fontification functions just work forward as always and the extension function is the one taking care of finding the opposite end, plus it's just one function for all types of blocks.

I've no problem in contributing a patch if you're not inclined to work in this anymore. It will have to move the end searching logic out of org-do-latex-and-related though. All in all I don't think there would be more lines of code or complexity and all block types would be given the same treatment, moreover it would be a bit more by the book. Give it a chance :) Anyway, thank you for your work.

Best regards
--
Carlos

reply via email to

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