From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: 'fullscreen 'fullheight Date: Tue, 02 May 2006 10:25:59 -0600 Organization: IHS Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146587271 18511 80.91.229.2 (2 May 2006 16:27:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 May 2006 16:27:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 02 18:27:48 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 1Faxix-00019B-OF for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 18:27:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Faxix-0003sJ-50 for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 12:27:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Faxic-0003mL-D3 for emacs-devel@gnu.org; Tue, 02 May 2006 12:27:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FaxiZ-0003kw-Uy for emacs-devel@gnu.org; Tue, 02 May 2006 12:27:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaxiZ-0003kq-JM for emacs-devel@gnu.org; Tue, 02 May 2006 12:27:19 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Faxil-0003ta-4r for emacs-devel@gnu.org; Tue, 02 May 2006 12:27:31 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FaxiH-00011O-3B for emacs-devel@gnu.org; Tue, 02 May 2006 18:27:01 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 May 2006 18:27:01 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 May 2006 18:27:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 47 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) In-Reply-To: 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:53797 Archived-At: Sam Steingold wrote: > 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! What is your intent in specifying fullscreen as nil, then fullheight, then nil, and then specifying height explicitly anyway? What should Emacs do when the frame parameters include both fullscreen and height or width, which may conflict? -- Kevin Rodgers