From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: customize-themes doesn't allow backquote or :inherit Date: Mon, 18 Oct 2010 09:52:37 -0400 Message-ID: References: <87y69wsehy.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287409973 18005 80.91.229.12 (18 Oct 2010 13:52:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Oct 2010 13:52:53 +0000 (UTC) Cc: Yavuz , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 18 15:52:51 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P7q8w-0003WJ-QA for ged-emacs-devel@m.gmane.org; Mon, 18 Oct 2010 15:52:51 +0200 Original-Received: from localhost ([127.0.0.1]:43388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7q8v-0003av-VP for ged-emacs-devel@m.gmane.org; Mon, 18 Oct 2010 09:52:49 -0400 Original-Received: from [140.186.70.92] (port=60932 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7q8r-0003ap-P6 for emacs-devel@gnu.org; Mon, 18 Oct 2010 09:52:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7q8q-0007t2-Lv for emacs-devel@gnu.org; Mon, 18 Oct 2010 09:52:45 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:17072 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7q8q-0007sx-Jo for emacs-devel@gnu.org; Mon, 18 Oct 2010 09:52:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4JAN/tu0xMCpO7/2dsb2JhbACgMnlyvUSFSQSSGQ X-IronPort-AV: E=Sophos;i="4.57,345,1283745600"; d="scan'208";a="80002368" Original-Received: from 76-10-147-187.dsl.teksavvy.com (HELO pastel.home) ([76.10.147.187]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 18 Oct 2010 09:52:43 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 3AB86A8213; Mon, 18 Oct 2010 09:52:37 -0400 (EDT) In-Reply-To: <87y69wsehy.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 17 Oct 2010 17:20:25 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131805 Archived-At: >> However, it seems that the load-theme function in custom.el has some >> code that checks for the presence of 'quote and throws a 'Unsafe >> expression in theme settings' error if I try to use ` instead of '. >> >> Being an elisp newbie, my attempts to bypass is with various >> combinations of eval, apply, and `' ended in failure. >> >> Is there a way to use variables in custom-theme-set-faces? Or is that >> check really need to be that strict? Maybe backquote would be >> acceptable as well? > This is worth discussing. > Currently, the code only evals custom-theme-set-variables/faces if its > arguments are quoted. I was concerned about security implications; the > worry is that users may not be aware that loading a theme can execute > arbitrary code. Why not use `unsafep'? Stefan