From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#7296: display-pixel-height not enough Date: Sun, 31 Oct 2010 11:51:08 +0100 Message-ID: <4CCD4A1C.6070707@swipnet.se> References: <83hbg66vt4.fsf@gnu.org> <83d3qt77lj.fsf@gnu.org> <4CCA9E5D.5060002@swipnet.se> <838w1h6zbp.fsf@gnu.org> <4CCAC90B.4070800@swipnet.se> <4CCB2713.5070104@swipnet.se> <4CCBC930.5060705@swipnet.se> <4CCBF75B.8070209@swipnet.se> <4CCC558E.5030704@swipnet.se> <7C6D3056-3E04-46E5-A731-A2E996197F03@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1288524052 27442 80.91.229.12 (31 Oct 2010 11:20:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 31 Oct 2010 11:20:52 +0000 (UTC) Cc: "7296@debbugs.gnu.org" <7296@debbugs.gnu.org> To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 31 12:20:48 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PCVxs-0005PX-75 for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Oct 2010 12:20:47 +0100 Original-Received: from localhost ([127.0.0.1]:36886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCVxo-00027N-8H for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Oct 2010 07:20:40 -0400 Original-Received: from [140.186.70.92] (port=48276 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCVr2-0000V7-Na for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 07:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCVqh-0004PV-At for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 07:13:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCVqh-0004PR-8I for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 07:13:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PCVjd-0007nT-Nz; Sun, 31 Oct 2010 07:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Oct 2010 11:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7296 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7296-submit@debbugs.gnu.org id=B7296.128852315429963 (code B ref 7296); Sun, 31 Oct 2010 11:06:01 +0000 Original-Received: (at 7296) by debbugs.gnu.org; 31 Oct 2010 11:05:54 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCVjV-0007nE-2Z for submit@debbugs.gnu.org; Sun, 31 Oct 2010 07:05:53 -0400 Original-Received: from smtprelay-h31.telenor.se ([213.150.131.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCVjS-0007n9-QU for 7296@debbugs.gnu.org; Sun, 31 Oct 2010 07:05:51 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id 50914E90AB for <7296@debbugs.gnu.org>; Sun, 31 Oct 2010 11:51:13 +0100 (CET) X-SENDER-IP: [85.225.45.100] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApQ8AGznzExV4S1kPGdsb2JhbACDCYRRmW4MAQEBATUtqSGRAoEigy9zBI1c X-IronPort-AV: E=Sophos;i="4.58,267,1286143200"; d="scan'208";a="146112098" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb1.telenor.se with ESMTP; 31 Oct 2010 11:51:09 +0100 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id BFBFD7FA05A; Sun, 31 Oct 2010 11:51:08 +0100 (CET) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.11) Gecko/20101004 Thunderbird/3.1.5 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 31 Oct 2010 07:06:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41301 Archived-At: Lennart Borgman skrev 2010-10-30 20.59: > On Sat, Oct 30, 2010 at 8:30 PM, Jan Dj=C3=A4rv wr= ote: >> >> >> Emacs should refrain from trying to maximize frames itself, because it= is >> not so simple as you state to just replace one height with another. > > I never said something about using those values for maximizing a frame.= You > simply do not do it that way on w32. Hmm, what was this about then: "Every function that tries to maximize just height will do it". > >> I know that W32 has some mechanism to maximize a window without fiddli= ng >> with height and width. You should check if there is a similar way to >> maximize just height by asking the system to do it. > > I told how to do this earlier in this thread. Or did not that message r= each > you? Actually you did not. You showed how to get display pixel sizes. More i= s=20 needed to correctly calculate the Emacs frame dimensions. One of the advantage of letting the window manager do it is that it knows= =20 about multiple displays. It seems that on w32 you have to figure out thi= s=20 yourself. I guess the lowlevel API functions can be used so that fullwid= th=20 and fullheight works on w32. That is so much better than letting lisp co= de=20 calculate frame sizes. > >> It is why Emacs only does maximizing and fullscreen by delegering it t= o >> the window manager in X. > > Yes, it should do it the same way on w32, but you can not do it for jus= t > height or just width on w32. (But you can set height (or width) to the = same > value as it is with a maximized window.) Jan D.