From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Fontification of blocks Date: Fri, 04 Feb 2011 13:50:57 -0700 Message-ID: <878vxv1q1o.fsf@gmail.com> References: <80aakevw4w.fsf@missioncriticalit.com> <8739q1ihas.fsf@gmail.com> <80r5dlpfj6.fsf@missioncriticalit.com> <87ei9jkl0l.fsf@gmail.com> <80sjw7qxem.fsf@missioncriticalit.com> <80ei7q9is6.fsf@missioncriticalit.com> <871v3pp3e3.fsf@gmail.com> <87sjw4ubnp.fsf@ucl.ac.uk> <80aaicvoep.fsf@missioncriticalit.com> <80vd10noj5.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=56239 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlSdK-0002kG-4I for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 15:51:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PlSdI-0003nm-GM for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 15:51:57 -0500 Received: from mail-gw0-f41.google.com ([74.125.83.41]:60207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlSdI-0003nc-Ch for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 15:51:56 -0500 Received: by gwj22 with SMTP id 22so1288177gwj.0 for ; Fri, 04 Feb 2011 12:51:56 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org Hi Seb, This looks very nice, I am now able to turn fontification on and off as expected using your three new faces. I've just committed your patch with one minor change (not having the block background face set by default). Maybe it would be worth a worg post about how to use these faces with some example settings... Thanks -- Eric S=C3=A9bastien Vauban writes: > Hi, > > As spotted by Eric Fraga: > > S=C3=A9bastien Vauban wrote: >> --- a/lisp/org-faces.el >> +++ b/lisp/org-faces.el >> @@ -1,6 +1,6 @@ >> ;;; org-faces.el --- Face definitions for Org-mode. >>=20=20 >> -;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 >> +;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 >> ;; Free Software Foundation, Inc. >>=20=20 >> ;; Author: Carsten Dominik >> @@ -511,6 +511,16 @@ follows a #+DATE:, #+AUTHOR: or #+EMAIL: keyword." >> :group 'org-faces >> :version "22.1") >>=20=20 >> +(defface org-block-background >> + '((t (:background "#FFFFEA"))) >> + "Face used for the source block background.") >> + >> +(org-copy-face 'org-meta-line 'org-block-begin-line >> + "Face used for the line delimiting the begin of source blocks.") >> + >> +(org-copy-face 'org-meta-line 'org-block-begin-line >> + "Face used for the line delimiting the end of source blocks.") >> + >> (defface org-verbatim >> (org-compatible-face 'shadow >> '((((class color grayscale) (min-colors 88) (background light)) > > you should read the following at the 2nd =3Dorg-copy-face=3D command: > >> +(org-copy-face 'org-meta-line 'org-block-end-line >> + "Face used for the line delimiting the end of source blocks.") > > ie, s/begin/end/ > > I guess it worked for me (I restarted completely Emacs for the test), as = that > face is defined in my color-theme now. So, it was created anyway. > > Corrected patch is attached to this post. > > Best regards, > Seb