From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#11213: 24.0.95; (Maybe/Wish): Should color-themes be buffer local? Date: Wed, 11 Apr 2012 16:02:01 +0530 Message-ID: <81sjgablum.fsf@gmail.com> References: <81wr5n2vw5.fsf@gmail.com> <87lim2oiv1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334140390 1250 80.91.229.3 (11 Apr 2012 10:33:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 10:33:10 +0000 (UTC) Cc: 11213@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 12:33:07 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SHurK-0005u7-Mm for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 12:33:06 +0200 Original-Received: from localhost ([::1]:59861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHurK-0006PS-1c for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 06:33:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHurC-0006PD-Rp for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 06:33:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHurB-0005B3-0S for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 06:32:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHurA-0005Aw-Qg for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 06:32:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SHusE-0002hJ-J3 for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 06:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Apr 2012 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11213 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11213-submit@debbugs.gnu.org id=B11213.133414040910331 (code B ref 11213); Wed, 11 Apr 2012 10:34:02 +0000 Original-Received: (at 11213) by debbugs.gnu.org; 11 Apr 2012 10:33:29 +0000 Original-Received: from localhost ([127.0.0.1]:50398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHurg-0002ga-Tj for submit@debbugs.gnu.org; Wed, 11 Apr 2012 06:33:29 -0400 Original-Received: from mail-pz0-f42.google.com ([209.85.210.42]:57445) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHure-0002gR-1n for 11213@debbugs.gnu.org; Wed, 11 Apr 2012 06:33:27 -0400 Original-Received: by dang27 with SMTP id g27so1262252dan.29 for <11213@debbugs.gnu.org>; Wed, 11 Apr 2012 03:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=eHkC+okRXKYQYDYqp8Lx8qTg4idLpP+bhjri8n5VEu4=; b=CBzzYW239+9dxjk51qau9fsCslfw8lMC+9/xXt/8LI6S5DyNcBUd1CJpASeBiThcUD WvEm05f9dZVNOuAeJkVEUVsXwbmjUyJCnrV/kHR1hkSTm8VrFNTS32DkdyXsvEa1cu8+ IwDriKDV3xinztDIqd+0ZDgWZTjOhIsxjmF5h2bcQWwH+C/riB60J46IMkvbtIS3DU9O iy8iE/PzRw+lRFbe1Y+dafImjJKHVLEZrGfmhwi4ikp42ohANBXe+bZX3r80l6XSU62/ gWsW4hc0BYX+tNHpiwmy6geWJKFrmCbnbYwIIC62twi039G534BGSYeBU6sjYpHiEBIC 96Qg== Original-Received: by 10.68.216.6 with SMTP id om6mr37186780pbc.117.1334140338407; Wed, 11 Apr 2012 03:32:18 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.242.170.62]) by mx.google.com with ESMTPS id vh10sm2533719pbc.29.2012.04.11.03.32.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Apr 2012 03:32:17 -0700 (PDT) In-Reply-To: <87lim2oiv1.fsf@gnu.org> (Chong Yidong's message of "Wed, 11 Apr 2012 14:58:10 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (windows-nt) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58764 Archived-At: Hello Chong > Jambunathan K writes: > >> ODT exporter uses htmlfontify.el to export source blocks with some >> fancy colors.[2] The implication is that an ODT file created out of an >> Org file (with src blocks) will look and feel differently based on >> individual user's font lock settings. If there was/were a way to >> activate a theme on per-buffer basis, then I would like to use it >> within the ODT exporter. > > Your description is not too clear, but I guess what you're trying to say > is that you want the htmlfontified output to use some standard set of > faces, independent of the user's face settings. You have understood me correctly. > Probably the best way to do that is to set up face remappings in the > to-be-exported buffer. See the Face Remapping node in the Lisp manual > for details. Given a(ny) theme, let's say "adwaita-theme.el", can someone give me a recipe which runs through all the face definitions defined in that theme file and hand it off to `face-remapping-alist'. I don't see any references to remap in cus-face.el and I think it will take sometime for me to "massage" face definitions in a theme file in to a form that is understood by `face-remapping-alist'. I hope such a massaging is possible. Again, any ready to use recipe is most welcome. Jambunathan K.