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: Mon, 22 Apr 2013 21:21:29 +0300 Message-ID: <83ehe2xw7q.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> <83sj2lz6nm.fsf@gnu.org> <5172EBEF.7030301@swipnet.se> <5173B0D8.4010408@gmx.at> <9CE9273D-8550-478F-8CB9-0C0D693C0BB8@swipnet.se> <5175042E.5020508@gmx.at> <5064BF03-8A61-4C0E-AA6C-5197A177B61A@swipnet.se> <517558ED.7080907@gmx.at> <5175679B.8010903@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1366654933 15624 80.91.229.3 (22 Apr 2013 18:22:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2013 18:22:13 +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 Mon Apr 22 20:22:17 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 1UULNY-0007GV-7M for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2013 20:22:16 +0200 Original-Received: from localhost ([::1]:49026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UULNX-0005ou-Q2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Apr 2013 14:22:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UULNT-0005m1-Hr for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2013 14:22:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UULNS-0004cj-Km for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2013 14:22:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UULNS-0004cf-I7 for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2013 14:22:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UULSA-0006ks-Ie for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2013 14:27:02 -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: Mon, 22 Apr 2013 18:27: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.136665519425859 (code B ref 14233); Mon, 22 Apr 2013 18:27:02 +0000 Original-Received: (at 14233) by debbugs.gnu.org; 22 Apr 2013 18:26:34 +0000 Original-Received: from localhost ([127.0.0.1]:37530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UULRh-0006j2-T1 for submit@debbugs.gnu.org; Mon, 22 Apr 2013 14:26:34 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:50944) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UULRg-0006ip-AM for 14233@debbugs.gnu.org; Mon, 22 Apr 2013 14:26:33 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MLO00I005GZAK00@a-mtaout22.012.net.il> for 14233@debbugs.gnu.org; Mon, 22 Apr 2013 21:21:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MLO00HSK5NX4GS0@a-mtaout22.012.net.il>; Mon, 22 Apr 2013 21:21:33 +0300 (IDT) In-reply-to: <5175679B.8010903@gmx.at> 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:73591 Archived-At: > Date: Mon, 22 Apr 2013 18:38:51 +0200 > From: martin rudalics > CC: Eli Zaretskii , "esabof@gmail.com" , > "14233@debbugs.gnu.org" <14233@debbugs.gnu.org> > > change_frame_size has no idea whether it is called for a text or a > graphical frame. That is done very easily, given the frame pointer (which change_frame_size accepts as its 1st argument). E.g.: if (FRAME_WINDOW_P (f)) /* do the GUI thing */ > Text frames might want to call it as before using character sizes. On text-mode frames, each character is one pixel. Emacs knows that already. > In any case, the callers have to strip space used for tool- or > menubars because change_frame_size does not know whether these are > part of the frame or not. Why can't change_frame_size know that?