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: Toolbar mode on/off Date: Tue, 25 Sep 2007 00:20:32 +0200 Message-ID: <85ve9zhfin.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190672467 31077 80.91.229.12 (24 Sep 2007 22:21:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2007 22:21:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 25 00:21:03 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 1IZwIY-0006yq-HB for ged-emacs-devel@m.gmane.org; Tue, 25 Sep 2007 00:21:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZwIV-0003Vc-H8 for ged-emacs-devel@m.gmane.org; Mon, 24 Sep 2007 18:20:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZwIL-0003Ol-Sl for emacs-devel@gnu.org; Mon, 24 Sep 2007 18:20:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZwIJ-0003Mg-30 for emacs-devel@gnu.org; Mon, 24 Sep 2007 18:20:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZwII-0003MX-Qs for emacs-devel@gnu.org; Mon, 24 Sep 2007 18:20:46 -0400 Original-Received: from mail-in-11.arcor-online.net ([151.189.21.51]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IZwII-0004ga-MW for emacs-devel@gnu.org; Mon, 24 Sep 2007 18:20:46 -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-11.arcor-online.net (Postfix) with ESMTP id E341B2816A4 for ; Tue, 25 Sep 2007 00:20:36 +0200 (CEST) Original-Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-04-z2.arcor-online.net (Postfix) with ESMTP id D2964ABAE7 for ; Tue, 25 Sep 2007 00:20:36 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-091-140.pools.arcor-ip.net [84.61.91.140]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id BC0CC2C29E2 for ; Tue, 25 Sep 2007 00:20:32 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 140C41C1E252; Tue, 25 Sep 2007 00:20:32 +0200 (CEST) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Virus-Scanned: ClamAV 0.91.2/4382/Mon Sep 24 23:24:56 2007 on mail-in-08.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:79764 Archived-At: Hi, at the current point of time, enabling the toolbar and disabling it again is not a noop, but rather causes shrinking. 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. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum