From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daneel Yaitskov Newsgroups: gmane.emacs.help Subject: how automatically to adjust the outer view of a new frame Date: Sun, 17 Aug 2008 15:46:58 +0400 Message-ID: <18600.4018.453494.335769@diehard.x> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218980617 3485 80.91.229.12 (17 Aug 2008 13:43:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Aug 2008 13:43:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 17 15:44:30 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KUiYV-0007Jh-KW for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Aug 2008 15:44:27 +0200 Original-Received: from localhost ([127.0.0.1]:56791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUiXY-0008VD-SD for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Aug 2008 09:43:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUgkQ-0006gZ-UD for help-gnu-emacs@gnu.org; Sun, 17 Aug 2008 07:48:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUgkP-0006g4-55 for help-gnu-emacs@gnu.org; Sun, 17 Aug 2008 07:48:38 -0400 Original-Received: from [199.232.76.173] (port=53867 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUgkO-0006g1-VR for help-gnu-emacs@gnu.org; Sun, 17 Aug 2008 07:48:36 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.188]:36932) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KUgkO-0003N7-HX for help-gnu-emacs@gnu.org; Sun, 17 Aug 2008 07:48:36 -0400 Original-Received: by nf-out-0910.google.com with SMTP id c7so1010181nfi.26 for ; Sun, 17 Aug 2008 04:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:content-transfer-encoding:message-id:date:to:subject :x-mailer; bh=hpAHsgCaz4Ilg0bpdv5ZgJhwdnRB41VJ97Tt3RqFEEI=; b=DFZ7dG8e6Gy8gIlqZHmoYAcVZgF6NaGkUS9ZzPwxEHvahdoIqkA46aWJAIvKzq9Xtl eEgxMRnOR4+fKEMocZZCPIW78etrpxnIBMc1ZMitJAdEWNJeMbRZzjsr1HftyYD7ziQm FTutJ+9hPtdX1yvQj9ZcSeFgelnSe5+4HjXj8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:subject:x-mailer; b=Wwhum8hWJkruiJbSzk1E2uPr9QRFojLwtHUZwNpBltXlfug0bwoe4RTcoIRPBYqeSn M+BER/HwnpDdYh+Puxc88YUmhgCmDfCG3QZ4NSbHGIsPRS7wvzXkmtZto9QskOopiYPc SqLN+7t7ujbtVqaY5abZcR0XWlzESUcFyXwFE= Original-Received: by 10.210.92.11 with SMTP id p11mr6273971ebb.175.1218973715533; Sun, 17 Aug 2008 04:48:35 -0700 (PDT) Original-Received: from diehard.x.rtfm.rtfm.rtfm@gmail.com ( [77.66.193.100]) by mx.google.com with ESMTPS id k9sm2833788nfh.23.2008.08.17.04.48.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 17 Aug 2008 04:48:35 -0700 (PDT) X-Mailer: VM 7.19 under Emacs 22.2.2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sun, 17 Aug 2008 09:43:05 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56734 Archived-At: Hi, I have met with this problem when I started to use the vm mail client. Starting vm creates the new frame which hasn't any feature that is supply by the .emacs file. The same effect gives the make-frame function. I have scaned the elisp manual and have found the after-make-frame-functions hook. It is called after make-frame creates the frame. I use this hook so: (add-hook 'after-make-frame-functions (lambda (n) (frame-focus n) (set-foreground-color "white") (set-background-color "black") (set-frame-font "-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1") )) These commands don't change the outer view of a new frame. But this hook works, because it see result of such command as the "message". Daneel