From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: 'fullscreen 'fullheight Date: Mon, 01 May 2006 17:42:56 -0400 Message-ID: Reply-To: sds@podval.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1146519804 21764 80.91.229.2 (1 May 2006 21:43:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 May 2006 21:43:24 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 23:43:14 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FagAh-0004b3-Ed for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 23:43:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FagAg-0005RE-Sh for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 17:43:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FagAW-0005R5-4F for emacs-devel@gnu.org; Mon, 01 May 2006 17:43:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FagAT-0005Q3-Vb for emacs-devel@gnu.org; Mon, 01 May 2006 17:42:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FagAT-0005Px-Rq for emacs-devel@gnu.org; Mon, 01 May 2006 17:42:57 -0400 Original-Received: from [63.240.77.82] (helo=sccrmhc12.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FagAU-0006xx-KA for emacs-devel@gnu.org; Mon, 01 May 2006 17:42:58 -0400 Original-Received: from smtp.podval.org (k39.podval.org[24.60.134.201]) by comcast.net (sccrmhc12) with ESMTP id <2006050121425601200mjgtje>; Mon, 1 May 2006 21:42:57 +0000 Original-Received: from quant8.janestcapital.quant (unknown [209.213.205.130]) by smtp.podval.org (Postfix) with ESMTP id 5B3133A2FCE; Mon, 1 May 2006 17:42:56 -0400 (EDT) Original-To: emacs-devel@gnu.org Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53750 Archived-At: GNU Emacs 22.0.50.24 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2006-05-01 on quant8 I use Emacs on various machines with different X screen parameters, and I like Emacs frames to have maximum possible height. I used to use this: (defun sds-frame-normaize (&optional frame move) "the frame --> top right; almost full size" (interactive) (unless frame (setq frame (selected-frame))) (set-frame-parameter frame 'fullscreen nil) (set-frame-parameter frame 'fullscreen 'fullheight) (set-frame-parameter frame 'fullscreen nil) (when move (set-frame-position frame 0 0)) (let ((height (- (frame-height) (eval-when-compile (if sds-winnt 1 4))))) (set-frame-height frame height) (set-frame-width frame 80) (set-frame-parameter frame 'top '(+ -5)) height)) (I welcome suggestion on how to accomplish the same easier!) recently I noticed the following unpleasant behavior: $ emacs -q (frame-height) C-j ==> 43 (set-frame-parameter nil 'fullscreen 'fullheight) C-j ==> nil (frame-height) C-j ==> 43 now the X window has the correct size, but the emacs frame does not! ((frame-height) returns the old value) also, set-frame-parameter takes several seconds to execute! -- Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux) http://memri.org http://palestinefacts.org http://iris.org.il http://camera.org http://openvotingconsortium.org http://thereligionofpeace.com You think Oedipus had a problem -- Adam was Eve's mother.