From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: custom-theme-set-faces broken by --daemon ? Date: Sun, 08 Mar 2009 23:44:07 -0400 Message-ID: <87ab7vfji0.fsf@cyd.mit.edu> References: <20090308170414.GA12136@reforged> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236570195 6994 80.91.229.12 (9 Mar 2009 03:43:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Mar 2009 03:43:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mike Mattie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 09 04:44:32 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from terminus-est.gnu.org ([66.92.78.210] helo=lists.gnu.org) by lo.gmane.org with esmtp (Exim 4.50) id 1LgWPm-0006qY-EL for ged-emacs-devel@m.gmane.org; Mon, 09 Mar 2009 04:44:31 +0100 Original-Received: from localhost ([127.0.0.1]:41048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgWOQ-0003iz-3T for ged-emacs-devel@m.gmane.org; Sun, 08 Mar 2009 23:43:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LgWOK-0003fV-LS for emacs-devel@gnu.org; Sun, 08 Mar 2009 23:43:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgWOG-0003Y1-Gk for emacs-devel@gnu.org; Sun, 08 Mar 2009 23:42:59 -0400 Original-Received: from [199.232.76.173] (port=51912 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgWOG-0003Xr-Bf for emacs-devel@gnu.org; Sun, 08 Mar 2009 23:42:56 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:49844) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LgWOG-0001go-4R for emacs-devel@gnu.org; Sun, 08 Mar 2009 23:42:56 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 82AA357E205; Sun, 8 Mar 2009 23:44:07 -0400 (EDT) In-Reply-To: <20090308170414.GA12136@reforged> (Mike Mattie's message of "Sun, 8 Mar 2009 10:04:15 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.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:109516 Archived-At: Mike Mattie writes: > In my configuration file for the gui I use custom-theme-set-faces. > I recently started experimenting with --daemon mode. > > To get the gui customization to load correctly I have placed the loading > of that configuration file on after-make-frame-functions. > > Unfortunately I get "color not defined". > > Is this a bug ? Your description is rather sketchy, but what I guess is happening is that you are trying to access a color that is not defined under tty mode. When Emacs is started in daemon mode, it opens a "tty" frame that is disconnected from any input or output. The color definitions in `x-color' are not loaded until you create a graphical frame.