From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Koval Subject: Re: BUG: org-block face not working Date: Wed, 29 Apr 2015 17:41:06 +0200 Message-ID: <87618fj625.fsf@gmail.com> References: <87zj5smwk1.fsf@gmail.com> <874mo0kogk.fsf@nicolasgoaziou.fr> <87y4lbjxop.fsf@gmail.com> <87sibjp6vt.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnU7d-0007qW-SF for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 11:42:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnU7b-0003gW-5t for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 11:42:01 -0400 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:34721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnU7a-0003g9-VY for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 11:41:59 -0400 Received: by wgso17 with SMTP id o17so32881002wgs.1 for ; Wed, 29 Apr 2015 08:41:57 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On 04/29/15 12:26 PM, Nicolas Goaziou wrote: > Michal Koval writes: > >> I see `(defface org-block' in org-faces.el and I see it used it in org.el >> `org-fontify-meta-lines-and-blocks-1' where the bug probably is. > > `org-block' face is used for verbatim blocks (e.g, example block) and > src blocks without a language specified. If language is specified, > fontification mechanism is done with `org-src-font-lock-fontify-block', > which doesn't use `org-block' face. > > It was already the case in maint. I have just tried the latest maint version and it works as I described in my first mail. The background specified in `org-block' is applied to the language named begin_src blocks, too. The language specific fontification of the foreground faces is applied as well. I really like the feature. In the master branch it works only for unnamed begin_src blocks (and quote, verbatim, and example). I like the behavior of the maint better, but in case that `org-block' was really meant to apply only to unnamed src blocks + quote, verbatim and example, please change the documentation string of the `org-block' from "Face text in #+begin ... #+end blocks." to something more descriptive. Is it possible to change the background of the src blocks in a different way? Thank you, best regards, Michal