[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] bug#22399: org-mode fontification
From: |
Kyle Meyer |
Subject: |
[O] bug#22399: org-mode fontification |
Date: |
Wed, 20 Jan 2016 19:44:58 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Thanks for having a look.
Stefan Monnier <address@hidden> writes:
>> (unless (eq major-mode lang-mode) (funcall lang-mode))
>> - (org-font-lock-ensure)
>> + ;; Avoid `font-lock-ensure', which does not display fonts in
>> + ;; source block.
>> + (font-lock-fontify-buffer)
>
> Intuitively, this looks like a wrong fix. Do you have a reproducible
> recipe showing the problem that you're trying to fix?
Sure. With
--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC elisp
(require 'cl-lib)
(message "test")
#+END_SRC
--8<---------------cut here---------------end--------------->8---
in /tmp/scratch.org, run
emacs -Q --eval "(setq org-src-fontify-natively t)" --visit /tmp/scratch.org
Go to the code block and hit C-c ' (org-edit-special), and then exit
with another C-c '. Without this change, the source block is no longer
highlighted as elisp code when I return to the buffer.
I don't think it's just something odd on my end because, when we
backported 6711a21, a user reported that he lost highlighting in source
blocks.
http://thread.gmane.org/gmane.emacs.orgmode/99495
--
Kyle
- Re: [O] bug#22399: org-mode fontification, (continued)
- Re: [O] bug#22399: org-mode fontification, Kyle Meyer, 2016/01/18
- Message not available
- Re: [O] bug#22399: org-mode fontification, Rasmus, 2016/01/19
- Re: [O] bug#22399: org-mode fontification, Kyle Meyer, 2016/01/19
- Re: [O] bug#22399: org-mode fontification, Kyle Meyer, 2016/01/19
- Re: [O] bug#22399: org-mode fontification, Rasmus, 2016/01/19
- Re: [O] bug#22399: org-mode fontification, Phillip Lord, 2016/01/20
- Message not available
- [O] bug#22399: org-mode fontification, Kyle Meyer, 2016/01/20
- [O] bug#22399: org-mode fontification, Stefan Monnier, 2016/01/20
- [O] bug#22399: org-mode fontification,
Kyle Meyer <=
- [O] bug#22399: org-mode fontification, Stefan Monnier, 2016/01/25
- [O] bug#22399: org-mode fontification, Kyle Meyer, 2016/01/26
- [O] bug#22399: org-mode fontification, Stefan Monnier, 2016/01/26
- [O] bug#22399: org-mode fontification, Kyle Meyer, 2016/01/26