From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#14233: 24.3; Don't constrain frame size to character multiples Date: Sun, 21 Apr 2013 09:17:34 -0700 Message-ID: References: <2r7gjy2gyy.fsf@fencepost.gnu.org> <83bo991z00.fsf@gnu.org> <517257A0.4080607@gmx.at> <071A708E-3A98-4D11-A15F-7AB92D5200DD@swipnet.se> <51727563.70905@gmx.at> <5172908F.7090206@swipnet.se> <15A11044A1774F1DB7F4D5E0FA8DC143@us.oracle.com> <83fvylyvlh.fsf@gnu.org> <0236F2C22122491B91D8CE2D6440AA2F@us.oracle.com> <5173B100.2050109@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366561100 10504 80.91.229.3 (21 Apr 2013 16:18:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Apr 2013 16:18:20 +0000 (UTC) Cc: esabof@gmail.com, 14233@debbugs.gnu.org To: "'martin rudalics'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 21 18:18:24 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 1UTwy5-0008Na-JI for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Apr 2013 18:18:21 +0200 Original-Received: from localhost ([::1]:48534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTwy5-00004r-4Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Apr 2013 12:18:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTwy1-0008WD-AY for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2013 12:18:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTwy0-00069O-9N for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2013 12:18:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTwy0-00069K-6L for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2013 12:18:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UTx2c-0003d0-2A for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2013 12:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Apr 2013 16:23: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.136656136213913 (code B ref 14233); Sun, 21 Apr 2013 16:23:02 +0000 Original-Received: (at 14233) by debbugs.gnu.org; 21 Apr 2013 16:22:42 +0000 Original-Received: from localhost ([127.0.0.1]:35516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UTx2H-0003cH-FB for submit@debbugs.gnu.org; Sun, 21 Apr 2013 12:22:42 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:17684) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UTx2F-0003c7-6X for 14233@debbugs.gnu.org; Sun, 21 Apr 2013 12:22:39 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r3LGHn4p017513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 21 Apr 2013 16:17:50 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3LGHmdS011941 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 21 Apr 2013 16:17:49 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r3LGHliq002361; Sun, 21 Apr 2013 16:17:47 GMT Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 21 Apr 2013 09:17:47 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <5173B100.2050109@gmx.at> Thread-Index: Ac4+cyv155o0/oljTquWS6cNcx7eiwAN4MYA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] 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:73557 Archived-At: > > You seem to be saying that such problems were solved long > > ago (Emacs 21, no less). But no, it is an open enhancement > > request to be able to compute the buffer "text" area size > > in pixels, as _displayed_ (in order, e.g., to fit a > > window/frame to it). > > I suppose you mean to (1) compute the area size in pixels as displayed > and (2) pixelwise fit the window/frame to it. This is indeed what I'm > doing here. Yes. I think (still) that my posts here have been appropriate for this thread. If I learn otherwise then I will excuse myself for being off-topic. I have code (in fit-frame.el) that tries to fit frames to their displayed buffers, typically one buffer per frame. It currently does not (cannot) take into account the kinds of things I mentioned, which amount to all the various ways in which what is displayed in the buffer ("text" area) cannot be modeled exactly by just knowing the number of text lines, the frame char size, and the maximum line length. The fit-frame code takes into account the screen real estate used for things like a toolbar and menu bar, but it does not yet take into account the buffer "text" _as displayed_. That is what the enhancement request in bug #7822 is about. And AFAICT it is also partly what this bug (#14233) is about.