From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14233: 24.3; Don't constrain frame size to character multiples Date: Sat, 20 Apr 2013 20:12:42 +0300 Message-ID: <83fvylyvlh.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1366478005 18691 80.91.229.3 (20 Apr 2013 17:13:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2013 17:13:25 +0000 (UTC) Cc: esabof@gmail.com, 14233@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 20 19:13:28 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 1UTbLr-0008OC-Ol for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Apr 2013 19:13:27 +0200 Original-Received: from localhost ([::1]:33467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTbLr-0005pk-AQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Apr 2013 13:13:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTbLm-0005oq-C0 for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2013 13:13:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTbLl-0004pt-AK for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2013 13:13:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTbLl-0004po-70 for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2013 13:13:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UTbQH-0007Gf-Hr for bug-gnu-emacs@gnu.org; Sat, 20 Apr 2013 13:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Apr 2013 17:18:01 +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.136647825927901 (code B ref 14233); Sat, 20 Apr 2013 17:18:01 +0000 Original-Received: (at 14233) by debbugs.gnu.org; 20 Apr 2013 17:17:39 +0000 Original-Received: from localhost ([127.0.0.1]:33760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UTbPu-0007Fx-Mo for submit@debbugs.gnu.org; Sat, 20 Apr 2013 13:17:39 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:39901) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UTbPr-0007Fo-Dt for 14233@debbugs.gnu.org; Sat, 20 Apr 2013 13:17:37 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MLK00400D4M7J00@a-mtaout21.012.net.il> for 14233@debbugs.gnu.org; Sat, 20 Apr 2013 20:12:52 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MLK0046OD5G4I30@a-mtaout21.012.net.il>; Sat, 20 Apr 2013 20:12:52 +0300 (IDT) In-reply-to: <15A11044A1774F1DB7F4D5E0FA8DC143@us.oracle.com> X-012-Sender: halo1@inter.net.il 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:73523 Archived-At: > From: "Drew Adams" > Date: Sat, 20 Apr 2013 09:22:05 -0700 > Cc: esabof@gmail.com, 14233@debbugs.gnu.org > > There are other exceptions too, besides tiling WMs and fullscreen. The "text" > area can include images, boxed text (which can increase the apparent char > height/width), fonts of different sizes in the same line, and various other > display artifacts/properties. Yes. But there are no problems with that, and it is unrelated to this discussion. > IOW, "Text" and the text area are not just about lines and columns anymore, at > least when it comes to resizing a window or frame to fit it. "Lines and columns" are just units of measurement in the context of this discussion. No one is saying that Emacs should be able to display only integral number of characters and lines; that restriction was removed in Emacs 21, and no one would even dream about going back. > Users should be able to calculate the needed "text" area to display a given > buffer portion well (i.e. to fit it). Users cannot calculate that, because the dimensions of the images and even characters of non-default fonts are not exposed to Lisp. Lisp programs can only guess what the required dimensions will be. In "normal" windows that display some buffer, you could perhaps use posn-at-point and such to find some approximation, but in special windows like the tool bar you cannot do even that (because they are produced from strings, not from some buffer, and those strings are constructed internally by the display engine and not accessible from Lisp). And with some modern toolkits, the tool bar is not even built by Emacs. The character units dimensions discussed here are for the "canonical" characters, which means _some_ character from the frame's default face's font. IOW, I cannot possibly see how your comments are related to what is being discussed here.