From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#14233: 24.3; Don't constrain frame size to character multiples Date: Thu, 25 Apr 2013 09:31:12 +0200 Message-ID: <5178DBC0.7020700@gmx.at> References: <2r7gjy2gyy.fsf@fencepost.gnu.org> <83bo991z00.fsf@gnu.org> <517257A0.4080607@gmx.at> <8338ul1rmb.fsf@gnu.org> <517275A0.1040702@gmx.at> <83wqrxzbc7.fsf@gnu.org> <51729A6A.7090404@gmx.at> <83mwstyxre.fsf@gnu.org> <5172D1D6.8030200@gmx.at> <83bo99ys79.fsf@gnu.org> <5173B0B2.9070607@gmx.at> <51750438.5060106@gmx.at> <8C0357F6-5720-42E5-90EB-B83416F0344E@swipnet.se> <51762F4D.7070101@gmx.at> <8361zdxll8.fsf@gnu.org> <51777DF3.5030206@gmx.at> <83fvyfx3c1.fsf@gnu.org> <004BEB10-9044-45AC-8F85-7BC225C293C2@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366875128 31120 80.91.229.3 (25 Apr 2013 07:32:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Apr 2013 07:32:08 +0000 (UTC) Cc: 14233@debbugs.gnu.org, esabof@gmail.com To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 25 09:32:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UVGf2-0007cO-Ea for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Apr 2013 09:32:08 +0200 Original-Received: from localhost ([::1]:46756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVGf2-0006ss-2S for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Apr 2013 03:32:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVGeu-0006sO-PY for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2013 03:32:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVGeq-0007nO-3x for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2013 03:32:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVGeq-0007nD-0E for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2013 03:31:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UVGjm-00026P-4E for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2013 03:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Apr 2013 07:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14233 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14233-submit@debbugs.gnu.org id=B14233.13668753967930 (code B ref 14233); Thu, 25 Apr 2013 07:37:02 +0000 Original-Received: (at 14233) by debbugs.gnu.org; 25 Apr 2013 07:36:36 +0000 Original-Received: from localhost ([127.0.0.1]:42243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UVGjF-000235-9v for submit@debbugs.gnu.org; Thu, 25 Apr 2013 03:36:36 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:57458) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UVGj8-00022Y-IH for 14233@debbugs.gnu.org; Thu, 25 Apr 2013 03:36:28 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.32]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0Lx1nj-1UXXjP3gE5-016iMu for <14233@debbugs.gnu.org>; Thu, 25 Apr 2013 09:31:14 +0200 Original-Received: (qmail invoked by alias); 25 Apr 2013 07:31:14 -0000 Original-Received: from 62-47-46-229.adsl.highway.telekom.at (EHLO [62.47.46.229]) [62.47.46.229] by mail.gmx.net (mp032) with SMTP; 25 Apr 2013 09:31:14 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+UkG1XCQCUUEcV9uieuXeGnPhXF/7qrzpYlnillC R3spHaF8TRHgS5 In-Reply-To: <004BEB10-9044-45AC-8F85-7BC225C293C2@swipnet.se> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73670 Archived-At: > I don't see how. The problem is what to do with leftover pixels when > the removed element isn't a multiple of the character size. Measuring > the frame in pixels does not help when removing, for example, a tool > bar that is 1.5 character high. It is the same problem, what to do > with 0.5 character height. Now if windows are measured in pixels, we > can give those pixels to windows, but frames measured in pixels does > not help. Maybe we are just miscommunicating. IIUC the above scenario is of interest only with an "external" element on a tiled/fullscreen/maximized frame (if the frame is not of that kind we just remove the external element). If you agree on that, we have to find out what to do with the leftover pixels. And I earlier said that "you" should pass these leftover pixels via change_frame_size to the window resizing subsystem. This means that the routine that removes the element has to (1) calculate the number of pixels occupied by it, (2) communicate the removal of the element to the window manager, if necessary, and (3) add the number of pixels of the element to the number of pixels occupied by the frame's text size and call change_frame_size with the new value. What am I missing? martin