From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kenneth johansson Newsgroups: gmane.emacs.help Subject: after-make-frame-functions Date: Sat, 19 Nov 2011 20:08:16 +0000 (UTC) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1321733725 419 80.91.229.12 (19 Nov 2011 20:15:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2011 20:15:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 19 21:15:22 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RRrJn-0004UY-So for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 21:15:20 +0100 Original-Received: from localhost ([::1]:60193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRrJh-0004q1-Tq for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Nov 2011 15:15:13 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRrJd-0004oo-2Y for help-gnu-emacs@gnu.org; Sat, 19 Nov 2011 15:15:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRrJc-0001hh-1N for help-gnu-emacs@gnu.org; Sat, 19 Nov 2011 15:15:09 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:49372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRrJb-0001g5-SV for help-gnu-emacs@gnu.org; Sat, 19 Nov 2011 15:15:08 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RRrJZ-0004Oa-B3 for help-gnu-emacs@gnu.org; Sat, 19 Nov 2011 21:15:05 +0100 Original-Received: from c-56f4e255.183-2-64736c14.cust.bredbandsbolaget.se ([85.226.244.86]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Nov 2011 21:15:05 +0100 Original-Received: from ken by c-56f4e255.183-2-64736c14.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Nov 2011 21:15:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-56f4e255.183-2-64736c14.cust.bredbandsbolaget.se User-Agent: Pan/0.133 (House of Butterflies) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82969 Archived-At: Using GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.5) I'm trying to make some changes to a new frame but it looks like the function run on the hook after-make-frame-functions is affecting the old frame not the new one. Add the following hook. start emacs with emacs --daemon emacsclient -c and you will get a printout in messages that the frame is in a terminal. But that is not what I expect, the new frame is a window. bug or feature ?? ------------ (defun start-theme (dummy) (if window-system (message "frame in window") (message "frame in terminal") ) ) (add-hook 'after-make-frame-functions 'start-theme) -----------