From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Fontification of blocks Date: Mon, 13 Dec 2010 21:46:21 +0100 Message-ID: <80r5dlpfj6.fsf@missioncriticalit.com> References: <80aakevw4w.fsf@missioncriticalit.com> <8739q1ihas.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, "Eric Schulte" wrote: > S=C3=A9bastien Vauban writes: >> In order to make the blocks stand out more clearly in the mix of prose, >> code and table results of many Babel Org files, I've added 2 new faces: >> >> - org-block-begin-line >> - org-block-end-line >> >> These apply to the line just before and after the block's body: >> >> #+srcname: top-10-dossiers-with-many-prestations >> #+begin_src sql <<< org-block-begin-= line >> SELECT TOP 10 prsPfiID_fk, COUNT(*) AS '# Prestations' >> FROM prestations >> GROUP BY prsPfiID_fk >> ORDER BY COUNT(*) DESC >> #+end_src <<< org-block-end-= line >> >> Not only for =3Dsrc=3D, but also for =3Dverse=3D, =3Dquote=3D, etc. > > This looks like a very nice addition. Could you refactor your patch so > that this behavior is controlled by a user configurable defcustom > variable? For sure, I'm willing whatever is needed to make it more acceptable. But I'm not sure about the purpose of that variable... You want something such as =3Dorg-have-extra-faces=3D, and in case of: - =3Dt=3D, use them - =3Dnil=3D, use the old face =3Dorg-meta-line=3D. Is is that? I find that to be uselessly complexifying the fontification cod= e. What was in my mind was have 2 new deffaces (not provided in the patch), wi= th the same default value (or even an inherit property, that's much better) as =3Dorg-meta-line=3D. Wouldn't that be better? In the case of the inheritage, if not customized = in the color theme, the user would not see any change (I guess)... FYI, my intention is to add different faces as well for header arguments and their values... Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode