From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [org-src, patch] colored source blocks Date: Thu, 22 Sep 2016 09:21:33 +0200 Message-ID: <87k2e4s8le.fsf@gmx.us> References: <87ponxa6ou.fsf@gmx.us> <878tulqqmm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmyNx-00040G-6i for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 03:25:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmyNk-0006Tf-7X for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 03:25:25 -0400 Received: from [195.159.176.226] (port=51864 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmyNk-0006Sw-11 for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 03:25:20 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bmyNV-0004Sf-AU for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 09:25:05 +0200 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" To: emacs-orgmode@gnu.org Hi Aaron, Thanks for the feedback. Aaron Ecay writes: > The patch in general LGTM. One comment/question, though: > > 2016ko irailak 21an, Rasmus-ek idatzi zuen: > > [...] > > >> +(defcustom org-src-block-faces nil >> + "Alist of faces to be used for source-block. >> +Each element is a cell of the format >> + >> + (\"language\" FACE-OR-BACKGROUND) >> + >> +Where FACE-OR-BACKGROUND is either a face, an anonymous face, or >> +a string corresponding to a background color. > > Why do you support a background color string here? Over-engineering? > I think that it’s easy to specify faces which consist of a background > color only both in lisp [(:background "XXX") vs. "XXX"] and via the > customize interface. So this flexibility seems to just introduce > additional complications for virtually no benefit in usability. But > maybe I’m missing something...? The "only" reason was that I imagine that some might prefer not to get into anonymous faces. But then, there’s an example right there in the docstring so maybe it’s assuming too little of our friends... I’ll remove -OR-BACKGROUND and push. Thanks, Rasmus -- This is the kind of tedious nonsense up with which I will not put