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/)]

2018-12-21 Thread Carlos Pita
Nicolas, I have modified org-fontify-meta-lines-and-blocks-1 following your approach: @@ -5991,6 +5991,13 @@ by a #." (dc3 (downcase (match-string 3))) end end1 quoting block-type) (cond + ((and (match-end 4) (equal dc3 "+end")) + (save-match-data +

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/)]

2018-12-21 Thread Carlos Pita
Also, in the example above, when you change and restore the opening clause, refontification doesn't happen immediately, you have to somewhat move the point to retrigger fontification. > #+END_XXX python Just #+END_XXX, of course.

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/)]

2018-12-21 Thread Carlos Pita
One problem I found after uninstalling my extension function is with #+BEGIN/END blocks. For example, enable fontification for python, elisp or whatever and write a long block like this: #+BEGIN_XXX python def xxx(x): pass def xxx(x): pass ... #+END_XXX python Now scroll down to the

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/)]

2018-12-21 Thread Carlos Pita
Oh, I see there have been some changes in org-compute-latex-and-related-regexp in a previous commit. Now it seems to be working at least for some simple examples. I'm working in a long and complex beamer document so I will be able to more seriously test this during the next few days. Also, I'm

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/)]

2018-12-21 Thread Carlos Pita
Hi Nicolas, thank you for letting me know. I've been giving it a try but it doesn't really fix the main problem AFAICS (I've just redefined org-do-latex-and-related as in [1], maybe I'm missing something). It's not surprising because I don't think you can work around it without installing a

Re: [O] Problem with references to babel source blocks (possible bug).

2018-12-21 Thread Emmanuel Charpentier
Dear John, dear list, Indeed using minted works (at least when using labels. I have not yet tried to use #+NAME:s). See a few remarks below. Le jeu. 20 déc. 2018 à 21:47, John Kitchin a écrit : > > I guess there is some subtle point missing. For the source blocks I > usually use the minted