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#19869: 25.0.50; default-frame-alist: width versus fullheight Date: Sun, 15 Feb 2015 12:35:52 +0100 Message-ID: <54E08498.2050603@gmx.at> References: <87twyo13h0.fsf@web.de> 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 1424000246 14738 80.91.229.3 (15 Feb 2015 11:37:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2015 11:37:26 +0000 (UTC) To: michael_heerdegen@web.de, 19869@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 15 12:37:15 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 1YMxVi-0003QM-Ri for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 12:37:15 +0100 Original-Received: from localhost ([::1]:34365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMxVi-0004F4-9J for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Feb 2015 06:37:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMxVa-0004Db-VS for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 06:37:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMxVW-0006z1-0w for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 06:37:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMxVV-0006yt-Ua for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 06:37:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YMxVV-00042n-Ol for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2015 06:37:01 -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, 15 Feb 2015 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19869 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19869-submit@debbugs.gnu.org id=B19869.142400017415464 (code B ref 19869); Sun, 15 Feb 2015 11:37:01 +0000 Original-Received: (at 19869) by debbugs.gnu.org; 15 Feb 2015 11:36:14 +0000 Original-Received: from localhost ([127.0.0.1]:44323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMxUj-00041L-RJ for submit@debbugs.gnu.org; Sun, 15 Feb 2015 06:36:14 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:56183) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMxUh-000417-6L for 19869@debbugs.gnu.org; Sun, 15 Feb 2015 06:36:12 -0500 Original-Received: from [91.113.7.165] ([91.113.7.165]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LwGDy-1XVbJq2lYM-017z4X; Sun, 15 Feb 2015 12:36:04 +0100 In-Reply-To: <87twyo13h0.fsf@web.de> X-Provags-ID: V03:K0:TFNlKqh/SFtqfOd/w8SMqP9T+cZnkazh7C7rH61+qRX6+2VGGyU 3hJ61RjHp+RgGP+arsnwn6+gpoiLeUw2o3tiYeUcgCdDWY1gHv/hTmWW5dAtmasqrf7jX1m CiLwpLO6ewbep1TFUdBFxEC8pB6K5TJIzjEI3o63XCbAGy1JE0IM3RJIe28DYf0sGDe3m0H /A8zgBZCM/7kGQYkeTkng== 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:99429 Archived-At: > There is some inconsistent behavior when setting the with of new > frames depending on whether fullheight is specified: > > > (progn > (set-face-attribute 'default nil :height 175) > (setq default-frame-alist > '((width . 100) > ;; (fullscreen . fullheight) > )) > (frame-width (make-frame))) ==> 100 > > > OTOH: > > (progn > (set-face-attribute 'default nil :height 175) > (setq default-frame-alist > '((width . 100) > (fullscreen . fullheight) > )) > (frame-width (make-frame))) ==> 63 > > > I would expect that the results are equal. They are here (Gtk+, Lucid, Motif and Windows) so probably your window manager interferes in some way. I tried with your second form as my .emacs and by evaluating it in *scratch* with emacs -Q. > A related bug was #1522, btw. I'm not sure. Doesn't your behavior depend on doing `set-face-attribute' first?. Anyway, this gives us a good case for doing some forensics. Please evaluate (setq frame-size-history '(1000)) (defun window-display-history () "..." (interactive) (with-current-buffer-window "*history*" nil nil (let ((history (cdr frame-size-history)) element sizes rest) (while history (setq element (car history)) (when (eq (car element) (selected-frame)) (when (setq sizes (nth 2 element)) (insert (format "%sx%s -> %sx%s " (nth 0 sizes) (nth 1 sizes) (nth 2 sizes) (nth 3 sizes)))) (insert (format "%s" (nth 1 element))) (when (setq rest (nth 3 element)) (while rest (insert (format " %s" (car rest))) (setq rest (cdr rest)))) (insert "\n")) (setq history (cdr history))))) 'history) in *scratch* and evaluate your second form (the one where you set fullheight). Go to the new frame you created this way, type M-x: window-display-history in it and post the contents of the *history* buffer here. If you want to do the same when that form is in your .emacs we'll have to proceed in a slightly different way. Let's do that later. Thanks, martin