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#5491: Inconsistencies in Setting Frame Size Date: Sat, 03 Jan 2015 19:45:55 +0100 Message-ID: <54A838E3.5020209@gmx.at> References: <422878.5492.qm@web58605.mail.re3.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1420310839 7214 80.91.229.3 (3 Jan 2015 18:47:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2015 18:47:19 +0000 (UTC) Cc: Bostjan Vilfan To: 5491@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 03 19:47:12 2015 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 1Y7TjB-0007P6-JT for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jan 2015 19:47:09 +0100 Original-Received: from localhost ([::1]:55086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7TjB-0004ed-61 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Jan 2015 13:47:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7Tj7-0004eX-6O for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 13:47:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7Tj4-0004yn-0Y for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 13:47:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7Tj3-0004yj-Tc for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 13:47:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y7Tj3-0004hD-L0 for bug-gnu-emacs@gnu.org; Sat, 03 Jan 2015 13:47:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <422878.5492.qm@web58605.mail.re3.yahoo.com> Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jan 2015 18:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5491 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5491-submit@debbugs.gnu.org id=B5491.142031077117969 (code B ref 5491); Sat, 03 Jan 2015 18:47:01 +0000 Original-Received: (at 5491) by debbugs.gnu.org; 3 Jan 2015 18:46:11 +0000 Original-Received: from localhost ([127.0.0.1]:35810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7TiF-0004fl-51 for submit@debbugs.gnu.org; Sat, 03 Jan 2015 13:46:11 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:49230) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7TiC-0004fc-JD for 5491@debbugs.gnu.org; Sat, 03 Jan 2015 13:46:09 -0500 Original-Received: from [194.166.85.1] ([194.166.85.1]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lj1Xa-1XXrhw1Fks-00dJMw; Sat, 03 Jan 2015 19:46:06 +0100 X-Provags-ID: V03:K0:ye5deMTuYOeWBLp5cKc2QU/TiFBQbDd+YW4RR96ioXf75vI3uM/ eZEYmAo8BAPe/KuwkeM8fhHxiHB2XQk1GaU0MR1AB4YCtTYzm9fjD1JkqmpiL8sdr6tJuDQ MXLOhTcfhcvJXdOscoQ5SUubHDFx4cehshpnHu97lVMCPe6kOQPalXaUkVuwnEKKjbAM1KR YbZ/Dyysey/5asDwCVbIw== X-UI-Out-Filterresults: notjunk:1; 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:97968 Archived-At: > I've noticed that the effect of setting frame size is not consistent among the various methods of performing the task. I can illustrate this with the following example involving several steps: > > 1. Define the function > > (defun testfn () "tests frame creation" > (interactive nil) > > (other-frame 1) > > (let ((frms (frame-list))) > (set-frame-size (car frms) ) ; e.g. =76 =40 > ) > > (setq default-frame-alist '((width . ) (height . ))) > > ) > > 2. Start off with one frame, and create a second frame; > > 3. Evaluation of testfn will set the size of the second frame; at the same time > the default size for future frames will be set. > > 4. Create a third frame. It will be seen that the size of the third frame is different from the size of the second frame that was set in testfn. In my opinion the default-frame-alist parameters should have the same effect as the set-frame-size parameters, but apparently they do not. This should work now with current master/trunk. Tested with Gtk, Lucid and Motif as well as on Windows. Please have a look. Thanks, martin