From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Toolbar mode on/off Date: Tue, 25 Sep 2007 07:46:17 +0200 Message-ID: <85r6knguvq.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190699249 32354 80.91.229.12 (25 Sep 2007 05:47:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2007 05:47:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 25 07:47:24 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ia3GW-00063t-5a for ged-emacs-devel@m.gmane.org; Tue, 25 Sep 2007 07:47:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ia3GT-0002B0-8i for ged-emacs-devel@m.gmane.org; Tue, 25 Sep 2007 01:47:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ia3Fk-000221-V3 for emacs-devel@gnu.org; Tue, 25 Sep 2007 01:46:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ia3Fi-000214-Uz for emacs-devel@gnu.org; Tue, 25 Sep 2007 01:46:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ia3Fi-00020t-DN for emacs-devel@gnu.org; Tue, 25 Sep 2007 01:46:34 -0400 Original-Received: from mail-in-08.arcor-online.net ([151.189.21.48]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ia3Fh-00063o-Jq for emacs-devel@gnu.org; Tue, 25 Sep 2007 01:46:33 -0400 Original-Received: from mail-in-04-z2.arcor-online.net (mail-in-04-z2.arcor-online.net [151.189.8.16]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 065512F312A; Tue, 25 Sep 2007 07:46:28 +0200 (CEST) Original-Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id EC767ABAE7; Tue, 25 Sep 2007 07:46:27 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-056-073.pools.arcor-ip.net [84.61.56.73]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id A8DAE28ABA2; Tue, 25 Sep 2007 07:46:19 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 5E32A1C1E252; Tue, 25 Sep 2007 07:46:18 +0200 (CEST) In-Reply-To: (Drew Adams's message of "Mon\, 24 Sep 2007 15\:46\:44 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.2/4388/Tue Sep 25 04:51:32 2007 on mail-in-07.arcor-online.net X-Virus-Status: Clean X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79777 Archived-At: "Drew Adams" writes: >> at the current point of time, enabling the toolbar and disabling it >> again is not a noop, but rather causes shrinking. > > Shrinking of what? The frame? The font? The frame. > In Emacs 22.1, I don't see shrinking of anything. The number of > lines displayed is reduced or increased - that's the only change I > see. If you say M-x tool-bar-mode RET 4 times in a row, you end up with the same size frame as before? Guess you are lucky then. >> That's ugly. On the other side, Emacs should not increase its >> frame size beyond the given initial frame size. >> >> So I think that Emacs should record its startup frame size in _pixels_ >> (or just record whether it started its geometry calculation with the >> toolbar on or off). Turning the toolbar on and off should then cause >> the text size to have the largest size fitting inside of the original >> startup frame size. >> >> Of course, it would be nicer (and simpler altogether) if Emacs did not >> change its frame pixel size at all when turning toolbar (or menubar or >> whatever) on and off. > > Just to be sure I understand. Are you saying that turning the > tool-bar on or off should have the (side-)effect of changing the > font size? Nonsense. > If so, my answer would be no, it should not. Better to change the > frame size (if necessary) than the font size, IMO. But I don't see > either one change in Emacs 22.1 (and that's good). You don't see the frame size change at all? Then you must have a particularly lucky relation between toolbar height and font size, or your toolkit behaves different from mine (GTK+). -- David Kastrup, Kriemhildstr. 15, 44793 Bochum