1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-01 08:17:34 +00:00

Fix some #+ blocks fontification when there is no lang attribute

* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Fix test for src blocks
lang attribute

When there is no lang attribute to a block (for quote, verse or others), the
lang variable is not nil, but an empty string.
This commit is contained in:
Julien Barnier 2011-07-01 17:28:32 +02:00 committed by Bastien Guerry
parent a51c5637f9
commit 549a521256

View File

@ -5207,7 +5207,7 @@ will be prompted for."
(add-text-properties end1 (+ end 1) '(face org-meta-line))
; for end_src
(cond
((and lang org-src-fontify-natively)
((and lang (not (string= lang "") org-src-fontify-natively))
(org-src-font-lock-fontify-block lang block-start block-end)
;; remove old background overlays
(mapc (lambda (ov)