From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GCWJKt59Ul/4ZwAA0tVLHw (envelope-from ) for ; Fri, 04 Sep 2020 17:48:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GLhKJt59Ul+fFAAAbx9fmQ (envelope-from ) for ; Fri, 04 Sep 2020 17:48:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EB3379406B8 for ; Fri, 4 Sep 2020 17:48:13 +0000 (UTC) Received: from localhost ([::1]:48204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEFoq-0006y9-GK for larch@yhetil.org; Fri, 04 Sep 2020 13:48:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEFoP-0006vP-Iy for emacs-orgmode@gnu.org; Fri, 04 Sep 2020 13:47:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEFoN-0007so-8v for emacs-orgmode@gnu.org; Fri, 04 Sep 2020 13:47:45 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 759DC2400FD for ; Fri, 4 Sep 2020 19:47:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1599241659; bh=vJAcBqCWyJrftiZ4voWTlb1I08D7bPoAKqBWmtikIPE=; h=Subject:To:Cc:From:Date:From; b=iYR4UOkt6P9V/XTwPFR0EJg0iXQ6WWKaEa48oaexEf6TiR+mvtDJwPMi3bO7iToSX K0xI1/ZdW2WkvChbiHYcd4cunT502Y7kvYUpzyUUquR034HqClGRHMhjjd3fjdVBHk jts5iTzDSF3F7L74S/uEP1pZShdQYzvc+6QxWEAtcHcioYbq6ZodhvrU+jUu9wdHAC E/otmZ4IFv4QVOCBgrcjFck0Lxv8kEC0mjNwwgmLu1mRS5SVSULuRHzD74BY9rvj2m 9q3zSvw21A+JenOUe0saZOlJh+2kwZKdaBA12VZpxTUZ/PfPWbN1MjaXVTnSJhgGh/ DaSHgk5hk+naw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BjlWG6VDgz9rxQ; Fri, 4 Sep 2020 19:47:38 +0200 (CEST) Subject: Re: Bug: org-block face isn't applied to special blocks To: Bastien References: <42749c98-ddfe-bad4-43a5-1119e24972bd@posteo.eu> <87tuwdh62n.fsf@gnu.org> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= Message-ID: Date: Fri, 4 Sep 2020 19:47:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <87tuwdh62n.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr Received-SPF: pass client-ip=185.67.36.66; envelope-from=sebastien.miquel@posteo.eu; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/04 13:47:39 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.107, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=iYR4UOkt; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: neB4yAxK2/LF 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 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, >