From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Bug: src block face [8.3.1 (8.3.1-56-g17a225-elpaplus @ /Users/ctanis/.emacs.d/elpa/org-plus-contrib-20150817/)] Date: Tue, 18 Aug 2015 10:36:12 -0400 Message-ID: <87a8to1x5v.fsf@kyleam.com> References: <00029886-233A-47FA-BC69-C6012ED998E8@utc.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRi02-0003W9-SZ for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 10:36:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRhzw-0000c9-M6 for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 10:36:26 -0400 Received: from mail-qg0-f46.google.com ([209.85.192.46]:35867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRhzw-0000b5-Ip for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 10:36:20 -0400 Received: by qgeb6 with SMTP id b6so26149qge.3 for ; Tue, 18 Aug 2015 07:36:20 -0700 (PDT) In-Reply-To: <00029886-233A-47FA-BC69-C6012ED998E8@utc.edu> (Craig Tanis's message of "Mon, 17 Aug 2015 23:24:19 +0000") 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: "Tanis, Craig" Cc: "emacs-orgmode@gnu.org" "Tanis, Craig" writes: > SRC blocks don't show correct face when a language is specified. > > #+begin_src > correctly shows in 'org-block face > #+end_src > > #+begin_src language > incorrectly shows in 'default face > #+end_src I suspect that in your second block you're using text the would have the default face in a buffer for that language. Depending on the value of org-src-fontify-natively, Org will try to highlight the block according to the language. So #+begin_src (message "yes") #+end_src will use the org-block face, but #+begin_src elisp (message "yes") #+end_src will highlight according to emacs-lisp-mode. If org-src-fontify-natively is nil, the org-block face will be used for the second block as well. -- Kyle