From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#7296: display-pixel-height not enough Date: Mon, 1 Nov 2010 01:24:55 +0100 Message-ID: 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1288572227 19241 80.91.229.12 (1 Nov 2010 00:43:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Nov 2010 00:43:47 +0000 (UTC) Cc: 7296@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 01 01:43:41 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 1PCiUr-0004oE-1Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Nov 2010 01:43:37 +0100 Original-Received: from localhost ([127.0.0.1]:48076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCiUq-0005eP-EZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 Oct 2010 20:43:36 -0400 Original-Received: from [140.186.70.92] (port=60050 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCiUg-0005cZ-Dq for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 20:43:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCiUX-0007CQ-7F for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 20:43:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCiUX-0007CM-0F for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2010 20:43:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PCi90-0005JC-Ng; Sun, 31 Oct 2010 20:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Nov 2010 00:21:02 +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.128857086220400 (code B ref 7296); Mon, 01 Nov 2010 00:21:02 +0000 Original-Received: (at 7296) by debbugs.gnu.org; 1 Nov 2010 00:21:02 +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 1PCi8z-0005Iz-5j for submit@debbugs.gnu.org; Sun, 31 Oct 2010 20:21:01 -0400 Original-Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PCi8x-0005It-B0 for 7296@debbugs.gnu.org; Sun, 31 Oct 2010 20:20:59 -0400 Original-Received: by gya6 with SMTP id 6so2909241gya.3 for <7296@debbugs.gnu.org>; Sun, 31 Oct 2010 17:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=63s4CIgeXIAYSXOGrpuYXjKB6u1M+GjhaIJzG8OafJQ=; b=JwfSoG/QQfyNMrmJ6mDWYBOMMjeMpDHl2/Zu0WQnYavyt4tF6c5S1ggGYiyM2I2VvX TDCaxxQ73XOvviaD1gQi8QdKQb6nu9Qvq+AxWYPUu8fQ42R7IZYn1S/3Vd5zLaEOwzCs EpONVHpFEkTc+1UKNtLBb0jpJxST99TGVfVRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=FcFUSPEHvkD5S6akU84jOmSc7YxCs9eb7Er23OK4x/4divj+3zMxuzVaBxSwVc8Qjr GFCO1fOMlVR+CdjhDkNEcBOz0Vz/x8jK3yvTRA7erlrBiZ/agG+JQuHlVSUqEQGV6IeB C2kJbjq9XR1dG13E54QkIs/Q/rqWASNFgyITg= Original-Received: by 10.229.235.142 with SMTP id kg14mr1530314qcb.128.1288571116857; Sun, 31 Oct 2010 17:25:16 -0700 (PDT) Original-Received: by 10.229.224.199 with HTTP; Sun, 31 Oct 2010 17:24:55 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 31 Oct 2010 20:21:02 -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:41317 Archived-At: On Mon, Nov 1, 2010 at 1:10 AM, YAMAMOTO Mitsuharu wrote: >>>>>> On Sun, 31 Oct 2010 11:46:58 +0100, Lennart Borgman said: > >>> Perhaps W32 can do similar things for window position/size >>> adjustments so the window height is automatically shortened when >>> the specified height exceeds the "available" height. > >> It is possible to do this on w32. (But it is a bit more complicated >> than what I suggested here.) > > As Drew and Jan pointed out, appropriate calculation at the Lisp level > is not that simple and requires platform-specific adjustment even if > we have a primitive for available pixel width/height. Yes, but it is not possible at all without the display working area size. Could we, as a first step, do as Eli suggested, i.e. let display-pixel-height/width return the working area size instead of the total display size? Is there any reason not to do this now?