From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: frame size&position woes Date: Wed, 24 Jul 2013 16:51:01 +0200 Message-ID: References: <51EBEA23.2000805@gmx.at> <51ECEBDB.8010203@gmx.at> <837ggiy4ko.fsf@gnu.org> <83y58yvvse.fsf@gnu.org> <83ppu8wr1d.fsf@gnu.org> <83hafkvxb6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1374677511 21974 80.91.229.3 (24 Jul 2013 14:51:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jul 2013 14:51:51 +0000 (UTC) Cc: martin rudalics , Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 24 16:51:53 2013 Return-path: Envelope-to: ged-emacs-devel@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 1V20Pt-0002eZ-7t for ged-emacs-devel@m.gmane.org; Wed, 24 Jul 2013 16:51:49 +0200 Original-Received: from localhost ([::1]:39740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V20Ps-0006Ty-PW for ged-emacs-devel@m.gmane.org; Wed, 24 Jul 2013 10:51:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V20Pp-0006Td-76 for emacs-devel@gnu.org; Wed, 24 Jul 2013 10:51:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V20Po-0002Wu-37 for emacs-devel@gnu.org; Wed, 24 Jul 2013 10:51:45 -0400 Original-Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:37550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V20Pm-0002Ve-48; Wed, 24 Jul 2013 10:51:42 -0400 Original-Received: by mail-ee0-f44.google.com with SMTP id c13so301428eek.3 for ; Wed, 24 Jul 2013 07:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=vA8TVuOx8l5NK2ekyxdNYr+oNkaDn321TUr0yWoeIdY=; b=SftaRz8Iym5kpFFZlWZldGMuPMD4DcRm4x7Ip9YcaihOD/qPtKXRz/UsAj0YX/ZojM GhpjkoDvhD8MMdL/cKkgkSkohlDPYVyFbzo/Y3YeAsvHAQXcVQD5K0L11X4YEGvG1rgz DJGKzQbET+mgqBgIzsOzwStWO2Z4/xaqiPmUha/U+RWJFwhodzpFLlGqqbxwL+46+hCS IKh2M9mBfrATUpRsG5ss6AfMbCstUXxWDoooRAjNf4cFKhB+FLmTYfyDWEQB8ZWcAazm l1+mFGGfovpzDMR7TK8Y36mmV+2YZ9IHGfXq1iX4sqbzQ7FJTehOFNfuKJZ/ykIYMAHG xW3A== X-Received: by 10.14.48.5 with SMTP id u5mr2540067eeb.89.1374677501220; Wed, 24 Jul 2013 07:51:41 -0700 (PDT) Original-Received: by 10.14.142.4 with HTTP; Wed, 24 Jul 2013 07:51:01 -0700 (PDT) In-Reply-To: <83hafkvxb6.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162109 Archived-At: On Wed, Jul 24, 2013 at 4:37 PM, Eli Zaretskii wrote: > Then "crude" must be non-derogatory description. It's contrastive, against "non-crude" or "refined" ;-) > Is that something rounding up to the next integral multiple of the > default font size couldn't take care of? IIRC, there are ways to change the default values of the non-client parts of a Windows window (borders, height of the title bar, etc.) If not directly to the user, then through add-ons (WindowBlinds, etc.). Any way to compute the dimensions that does not come directly from the window manager is going to be approximate. > IOW, err on the safe side. In fact, the safest default is to assume that the frame is narrower/shorter than it really is, which will err towards having to force it onscreen. So (* (frame-height) (frame-char-height)) and (* (frame-width) (frame-char-width)) are good defaults. > No. May I ask why? If you're having trouble with desktop-restore-frames, I certainly would be interested in knowing about it. Juanma