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#14233: 24.3; Don't constrain frame size to character multiples Date: Sun, 28 Apr 2013 14:17:52 +0200 Message-ID: <517D1370.5070603@gmx.at> References: <2r7gjy2gyy.fsf@fencepost.gnu.org> <83bo991z00.fsf@gnu.org><517257A0.4080607@gmx.at> <8338ul1rmb.fsf@gnu.org><517275A0.1040702@gmx.at> <83wqrxzbc7.fsf@gnu.org><51729A6A.7090404@gmx.at> <83mwstyxre.fsf@gnu.org><5172D1D6.8030200@gmx.at> <83bo99ys79.fsf@gnu.org><5173B0B2.9070607@gmx.at><51750438.5060106@gmx.at><8C0357F6-5720-42E5-90EB-B83416F0344E@swipnet.se><51762F4D.7070101@gmx.at> <8361zdxll8.fsf@gnu.org><51777DF3.5030206@gmx.at> <83fvyfx3c1.fsf@gnu.org><5178DB50.20404@gmx.at> <834neuvas1.fsf@gnu.org> <517A2FCE.30006@gmx.at> <97FD826D96FF4DAA91192817D475A0B3@us.oracle.com> <517B776B.2080007@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 1367151532 15962 80.91.229.3 (28 Apr 2013 12:18:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Apr 2013 12:18:52 +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 Sun Apr 28 14:18:56 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 1UWQZE-0001fE-7l for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Apr 2013 14:18:56 +0200 Original-Received: from localhost ([::1]:46880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UWQZD-0002Lw-KV for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Apr 2013 08:18:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UWQZ9-0002Lj-O7 for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2013 08:18:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UWQZ8-0005vS-Ic for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2013 08:18:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UWQZ8-0005vO-FX for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2013 08:18:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UWQZJ-0001ip-MW for bug-gnu-emacs@gnu.org; Sun, 28 Apr 2013 08:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Apr 2013 12:19: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.13671514966531 (code B ref 14233); Sun, 28 Apr 2013 12:19:01 +0000 Original-Received: (at 14233) by debbugs.gnu.org; 28 Apr 2013 12:18:16 +0000 Original-Received: from localhost ([127.0.0.1]:47982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UWQYa-0001hI-Et for submit@debbugs.gnu.org; Sun, 28 Apr 2013 08:18:16 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:54054) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UWQYX-0001h4-4H for 14233@debbugs.gnu.org; Sun, 28 Apr 2013 08:18:15 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.20]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MNOMB-1UPXjC3vQ1-006si5 for <14233@debbugs.gnu.org>; Sun, 28 Apr 2013 14:17:59 +0200 Original-Received: (qmail invoked by alias); 28 Apr 2013 12:17:59 -0000 Original-Received: from 62-47-63-143.adsl.highway.telekom.at (EHLO [62.47.63.143]) [62.47.63.143] by mail.gmx.net (mp020) with SMTP; 28 Apr 2013 14:17:59 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/Zs5QzAk/ZHxHBRvUevWVnrnmCbRCO689YHumyX+ ScXFPtQHTpL/KS In-Reply-To: X-Y-GMX-Trusted: 0 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:73798 Archived-At: >> > I would not like to see this behavior change, so that, >> > e.g., Emacs stopped resizing the frame when I change the >> > font size for the frame. >> >> It depends on the interface you use. > > Already that does not sound very good. Why should the behavior be different > depending on how you change a frame parameter? > >> The function `set-frame-font' has the KEEP-SIZE argument >> and I don't intend to change its semantics (I'll probably >> remove the rounding when `frame-resize-pixelwise' is non-nil). > > I use `modify-frame-parameters', providing a new value for parameter `font'. Conceptually, `modify-frame-parameters' allows to change several frame parameters for the next redisplay. But the outcome depends on the evaluation order of the ALIST argument. Suppose you want to change a frame's font and size in one and the same call. The result would depend on which element is evaluated first due to the fact that changing the font allows to change the size of the frame too. This is not my idea of clean semantics. > The new value is calculated this way (in frame-cmds.el): [...] > (modify-frame-parameters frame (list (cons 'font fontname))) I suppose it would be trivial to change this single line to use `set-frame-font' in order to deal with the change I propose. But if people like the current behavior I can obviously leave things as they are now. martin