all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* after-make-frame-functions
@ 2011-11-19 20:08 kenneth johansson
  2011-11-20  4:31 ` after-make-frame-functions XeCycle
  0 siblings, 1 reply; 3+ messages in thread
From: kenneth johansson @ 2011-11-19 20:08 UTC (permalink / raw)
  To: help-gnu-emacs

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)
-----------




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-20 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-19 20:08 after-make-frame-functions kenneth johansson
2011-11-20  4:31 ` after-make-frame-functions XeCycle
2011-11-20 13:02   ` after-make-frame-functions kenneth johansson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.