From: kenneth johansson <ken@kenjo.org>
To: help-gnu-emacs@gnu.org
Subject: after-make-frame-functions
Date: Sat, 19 Nov 2011 20:08:16 +0000 (UTC) [thread overview]
Message-ID: <ja92bg$vc1$1@dough.gmane.org> (raw)
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)
-----------
next reply other threads:[~2011-11-19 20:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-19 20:08 kenneth johansson [this message]
2011-11-20 4:31 ` after-make-frame-functions XeCycle
2011-11-20 13:02 ` after-make-frame-functions kenneth johansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ja92bg$vc1$1@dough.gmane.org' \
--to=ken@kenjo.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.