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: Sat, 20 Apr 2013 13:00:51 +0200 Message-ID: <51727563.70905@gmx.at> References: <2r7gjy2gyy.fsf@fencepost.gnu.org> <83bo991z00.fsf@gnu.org> <517257A0.4080607@gmx.at> <071A708E-3A98-4D11-A15F-7AB92D5200DD@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 1366455686 13735 80.91.229.3 (20 Apr 2013 11:01:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2013 11:01:26 +0000 (UTC) Cc: esabof@gmail.com, 14233@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 20 13:01:30 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 1UTVXs-0006MO-GV for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Apr 2013 13:01:28 +0200 Original-Received: from localhost ([::1]:44672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTVXs-0000Ls-6x for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Apr 2013 07:01:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTVXp-0000Ln-7U for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2013 07:01:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTVXo-0006T3-2C for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2013 07:01:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTVXn-0006Sw-V8 for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2013 07:01:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UTVcI-0002Et-Lk for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2013 07:06: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: Sat, 20 Apr 2013 11:06: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.13664559438551 (code B ref 14233); Sat, 20 Apr 2013 11:06:02 +0000 Original-Received: (at 14233) by debbugs.gnu.org; 20 Apr 2013 11:05:43 +0000 Original-Received: from localhost ([127.0.0.1]:33154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UTVby-0002Dp-IW for submit@debbugs.gnu.org; Sat, 20 Apr 2013 07:05:42 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:58146) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UTVbv-0002Dc-Nt for 14233@debbugs.gnu.org; Sat, 20 Apr 2013 07:05:41 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.17]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0M7nJe-1Ugl6Q3iPg-00vSCs for <14233@debbugs.gnu.org>; Sat, 20 Apr 2013 13:00:58 +0200 Original-Received: (qmail invoked by alias); 20 Apr 2013 11:00:58 -0000 Original-Received: from 62-47-49-41.adsl.highway.telekom.at (EHLO [62.47.49.41]) [62.47.49.41] by mail.gmx.net (mp017) with SMTP; 20 Apr 2013 13:00:58 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/tE+530QPtnxDe9Nv8MFSHNOLCFWG//3L4gkwYwx ogQwm77aVNbuYy In-Reply-To: <071A708E-3A98-4D11-A15F-7AB92D5200DD@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:73512 Archived-At: >> - An option `frame-resize-pixelwise' which, when non-nil, passes resize >> requests from the window manager pixelwise to the frame and window >> resizing routines. [...] > How does these interact with WM size hints? Are you turning them off when resizing pixelwise? No. But I've tested this on Windows only where in an initial stage I did in x_wm_set_size_hint SetWindowLong (window, WND_FONTWIDTH_INDEX, 1); SetWindowLong (window, WND_LINEHEIGHT_INDEX, 1); which worked. But later I found out that this was not needed - all I had to do was turning off rounding in the case of WM_WINDOWPOSCHANGING in w32_wnd_proc. So you will probably have to tell me on which platforms turning off WM size hints is needed. > Are you proposing that the width of the scroll bar and the fringe be included in the text width? You need to explain this better. Yes. Have you tried the scenario of bug#14222 ? I think it's a direct consequence of the dichotomy that OT1H we do want changing fringe widths affect the size of the frame on the screen but OTOH do not want these changes to have any impact immediately. BTW: When the toolbar is part of the frame we do include its height in the frame's text height (obviously so, because otherwise wrapping the toolbar would resize the frame) and IIUC we always include margins in the frame's text width but do refuse to so with fringes and scrollbars. > This is dependent on the port. For the Gtk+ port, toolbar and menubar height has no restriction to be in lines. A value > 0 means "on". The actual height is not the height of a line, but whatever height the toolkit chooses. I know. I just wanted to know whether we should do that on other ports as well and how to specify that. martin