emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Miquel" <sebastien.miquel@posteo.eu>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: org-block face isn't applied to special blocks
Date: Fri, 4 Sep 2020 19:47:36 +0200	[thread overview]
Message-ID: <afc6d00b-b2e8-aa93-918a-4aaa75982f7b@posteo.eu> (raw)
In-Reply-To: <87tuwdh62n.fsf@gnu.org>

Hi Bastien,

With latest org-mode master, and emacs -q,
run (defface org-block '((t (:background "#494949" :extend t))) "") 
before loading org-mode,
then visit an org buffer containing the three following blocks.

When I do so, the org-block face only gets applied to the src block, and 
not to the quote block, nor the special block.


#+BEGIN_theorem

#+END_theorem


#+BEGIN_SRC sh

#+END_SRC

#+BEGIN_QUOTE

#+END_QUOTE

Regards,



> Hi Sébastien,
>
> Sébastien Miquel <sebastien.miquel@posteo.eu> writes:
>
>> Afaict, the org-block face isn't applied to special blocks. Its
>> documentation implies it applies to any block.
>>
>> The relevant function is org-fontify-meta-lines-and-blocks-1.
>>
>> It may be a simple matter of changing the logic a bit and adding
>> (add-face-text-property bol-after-beginline beg-of-endline 'org-block
>> t).
> Is it still the case with latest master?  If so, can you provide
> a minimal example?
>
> Thanks,
>


  reply	other threads:[~2020-09-04 17:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-29 20:05 Bug: org-block face isn't applied to special blocks Sébastien Miquel
2020-09-04 16:14 ` Bastien
2020-09-04 17:47   ` Sébastien Miquel [this message]
2020-09-07  5:32     ` Bastien
2020-09-10 18:17       ` Sébastien Miquel
2020-09-11 11:34         ` Eric S Fraga
2020-09-14 15:17           ` Sébastien Miquel
2020-09-13 20:23         ` 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:
  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=afc6d00b-b2e8-aa93-918a-4aaa75982f7b@posteo.eu \
    --to=sebastien.miquel@posteo.eu \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /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).