emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: julien Barnier <julien@nozav.org>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Fix some #+ blocks fontification when there is no lang attribute
Date: Fri, 1 Jul 2011 14:46:49 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110701T164603-332@post.gmane.org> (raw)

* 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.
 lisp/org.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 9fddf3f..fb1041d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5207,7 +5207,7 @@ will be prompted for."
              (add-text-properties end1 (+ end 1) '(face org-meta-line))
                                        ; for end_src
-              ((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)

             reply	other threads:[~2011-07-01 14:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-01 14:46 julien Barnier [this message]
2011-07-01 15:29 ` [PATCH] Fix some #+ blocks fontification when there is no lang attribute Bastien
2011-07-02  0:03   ` Julien Barnier
2011-07-02  0:38     ` Eric Schulte
2011-07-02  9:07       ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110701T164603-332@post.gmane.org \
    --to=julien@nozav.org \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).