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#16013: 24.3.50; Rows in height is interpreted as pixels. Date: Sun, 12 Jan 2014 12:46:03 +0100 Message-ID: <52D2807B.3090705@gmx.at> References: <5579FC36-5F75-4679-87F6-048C5B7326F6@swipnet.se> <5299FD88.2090600@gmx.at> <529A33F4.5030606@swipnet.se> <529B0519.3010902@gmx.at> <529B1C71.9020707@gmx.at> <529CCE48.9090404@gmx.at> <529D8F3E.30400@gmx.at> <93EF122E-7EFC-4ACF-A216-E83981DD511A@swipnet.se> <529E2441.8030808@gmx.at> <9E083836-7DF3-4AC3-8711-A0E4757C9691@swipnet.se> <01BCA22D-62F2-4F04-B14C-85452A9D1201@swipnet.se> <52D14EA5.9060900@gmx.at> <52D18361.5050308@swipnet.se> <52D2663A.3020201@gmx.at> 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 1389527243 22241 80.91.229.3 (12 Jan 2014 11:47:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2014 11:47:23 +0000 (UTC) Cc: "16013@debbugs.gnu.org" <16013@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 Sun Jan 12 12:47:29 2014 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 1W2JVm-0005v5-Fr for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jan 2014 12:47:26 +0100 Original-Received: from localhost ([::1]:37358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2JVl-0003gm-Ef for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jan 2014 06:47:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2JVb-0003gc-Fp for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2014 06:47:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2JVT-0003Zq-Va for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2014 06:47:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2JVT-0003Zm-ST for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2014 06:47:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W2JVN-0007hm-Sl for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2014 06:47:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jan 2014 11:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16013 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16013-submit@debbugs.gnu.org id=B16013.138952717129526 (code B ref 16013); Sun, 12 Jan 2014 11:47:01 +0000 Original-Received: (at 16013) by debbugs.gnu.org; 12 Jan 2014 11:46:11 +0000 Original-Received: from localhost ([127.0.0.1]:47447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W2JUZ-0007g9-7r for submit@debbugs.gnu.org; Sun, 12 Jan 2014 06:46:11 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:65171) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W2JUW-0007g1-LB for 16013@debbugs.gnu.org; Sun, 12 Jan 2014 06:46:09 -0500 Original-Received: from [62.47.40.118] ([62.47.40.118]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M3zT0-1VAttF2Xx4-00rZcS for <16013@debbugs.gnu.org>; Sun, 12 Jan 2014 12:46:07 +0100 In-Reply-To: X-Provags-ID: V03:K0:rxhVqrZOxU663844l120MjuUyiC6xrzyGo5X5692e55PEIvSjLs BoVOyG03AqERrZkcIooZb0taa2oxIJuM0LdTiRuOcXlK85S8actIM4xsuWPUR7PbM3L8Jwu b/M7grWl2SORrer1gZMt2eUpKzZz0cgrS/mI/D77IJC4sy60+aEdiSF7L8m6y5sJoINRM2K G9I4JMquZVciPtihLItTA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:83341 Archived-At: > This has been inconsistent historically, i.e. Lucid/Motif/No toolkit counts differently than Gtk/NS. > I think the Gtk count makes more sense. If a user requests 50 lines he probably means 50 editable lines, not 47. So I think we should not count tool bar or menu bar. I agree. Obviously, the fact that initial and subsequent frames have different heights is a bug per se but I wanted a directive in either direction. > The documentation says > "The height of the frame contents, in characters." > I don't think menu and tool bar is content. > > This may break some lisp code that counts lines and does it differently for the two cases. I don't know if there are any such code though. > > BTW what values does the frame parameter height have now that pixelwise resize may show partial lines? A floating point value? No. It's calculated thusly height = (f->new_height ? (f->new_pixelwise ? (f->new_height / FRAME_LINE_HEIGHT (f)) : f->new_height) : FRAME_LINES (f)); store_in_alist (&alist, Qheight, make_number (height)); so it's rounded down. martin