emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michal Koval <koval.miso@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: BUG: org-block face not working
Date: Wed, 29 Apr 2015 17:41:06 +0200	[thread overview]
Message-ID: <87618fj625.fsf@gmail.com> (raw)
In-Reply-To: 87sibjp6vt.fsf@nicolasgoaziou.fr


On 04/29/15 12:26 PM, Nicolas Goaziou wrote:
> Michal Koval <koval.miso@gmail.com> 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

      reply	other threads:[~2015-04-29 15:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-28  9:28 BUG: org-block face not working Michal Koval
2015-04-28 20:06 ` Nicolas Goaziou
2015-04-29  5:44   ` Michal Koval
2015-04-29 10:26     ` Nicolas Goaziou
2015-04-29 15:41       ` Michal Koval [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=87618fj625.fsf@gmail.com \
    --to=koval.miso@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).