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: (window-system) returns nil on after-make-frame-functions when creating an X frame Date: Mon, 09 Mar 2009 13:54:30 -0400 Message-ID: <87ocwabmzt.fsf@cyd.mit.edu> References: <20090309170208.GA6650@reforged> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236621229 29777 80.91.229.12 (9 Mar 2009 17:53:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Mar 2009 17:53:49 +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 18:55:06 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 1Lgjgg-0006EM-Ob for ged-emacs-devel@m.gmane.org; Mon, 09 Mar 2009 18:54:50 +0100 Original-Received: from localhost ([127.0.0.1]:40477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgjfK-0000xc-PQ for ged-emacs-devel@m.gmane.org; Mon, 09 Mar 2009 13:53:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LgjfF-0000u3-SH for emacs-devel@gnu.org; Mon, 09 Mar 2009 13:53:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgjfE-0000ph-6I for emacs-devel@gnu.org; Mon, 09 Mar 2009 13:53:21 -0400 Original-Received: from [199.232.76.173] (port=58650 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgjfE-0000pU-2G for emacs-devel@gnu.org; Mon, 09 Mar 2009 13:53:20 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:39749) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LgjfD-0002bA-RA for emacs-devel@gnu.org; Mon, 09 Mar 2009 13:53:20 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id EF08857E21A; Mon, 9 Mar 2009 13:54:30 -0400 (EDT) In-Reply-To: <20090309170208.GA6650@reforged> (Mike Mattie's message of "Mon, 9 Mar 2009 10:02:12 -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:109524 Archived-At: Mike Mattie writes: > To do this I called (window-system) which normally returns "x". It is > not the best idea, but intuitively after the X frame is created it > would sensibly return "x". > > Currently it returns nil. When (window-system) is evaluated in the > scratch buffer sometime after the frame is made, well after > after-make-frame-functions it does indeed return "x". Did you give `window-system' the frame as an argument?