From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off Date: Wed, 31 Dec 2008 14:15:46 -0800 Message-ID: <005301c96b95$547ae890$c2b22382@us.oracle.com> Reply-To: Drew Adams , 1754@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230763418 25083 80.91.229.12 (31 Dec 2008 22:43:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 22:43:38 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 31 23:44:45 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LI9nw-0005mc-Ee for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 23:44:44 +0100 Original-Received: from localhost ([127.0.0.1]:42445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI9mi-0003it-AM for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Dec 2008 17:43:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LI9mf-0003io-L7 for bug-gnu-emacs@gnu.org; Wed, 31 Dec 2008 17:43:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LI9me-0003ic-UL for bug-gnu-emacs@gnu.org; Wed, 31 Dec 2008 17:43:25 -0500 Original-Received: from [199.232.76.173] (port=58651 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI9me-0003iZ-Rm for bug-gnu-emacs@gnu.org; Wed, 31 Dec 2008 17:43:24 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36546) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LI9me-0007U2-Iy for bug-gnu-emacs@gnu.org; Wed, 31 Dec 2008 17:43:24 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBVMhM5C015724; Wed, 31 Dec 2008 14:43:22 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBVMP4L6011155; Wed, 31 Dec 2008 14:25:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 31 Dec 2008 22:25:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1754 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12307617569809 (code B ref -1); Wed, 31 Dec 2008 22:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 31 Dec 2008 22:15:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBVMFrtb009803 for ; Wed, 31 Dec 2008 14:15:54 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:54840) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LI9Ky-0004Y4-I0 for emacs-pretest-bug@gnu.org; Wed, 31 Dec 2008 17:14:48 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LI9Ly-0004Rg-VH for emacs-pretest-bug@gnu.org; Wed, 31 Dec 2008 17:15:52 -0500 Original-Received: from rcsinet13.oracle.com ([148.87.113.125]:39745 helo=rgminet13.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LI9Ly-0004RW-7s for emacs-pretest-bug@gnu.org; Wed, 31 Dec 2008 17:15:50 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBVMGOpe019273 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 31 Dec 2008 22:16:25 GMT Original-Received: from acsmt707.oracle.com (acsmt707.oracle.com [141.146.40.85]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mBVM9iHh029119 for ; Wed, 31 Dec 2008 22:09:45 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 31 Dec 2008 22:15:43 +0000 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AclrlVP3DPuJbLvSQfazuoG2vnyNvg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt707.oracle.com [141.146.40.85] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.495BEF11.0124:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 31 Dec 2008 17:43:25 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23624 gmane.emacs.pretest.bugs:23586 Archived-At: This is a regression wrt Emacs 20, 21, and 22. 1. Put this code in a file named `bug-tool-bar.el': (tool-bar-mode -1) (defvar my-minibuffer-frame nil "") (defun foo () "" (interactive) (setq default-frame-alist (append (list (cons 'tool-bar-lines 1)) default-frame-alist)) (setq pop-up-frames t pop-up-frame-alist (append default-frame-alist pop-up-frame-alist)) (setq minibuffer-frame-alist (append (list (cons 'minibuffer 'only)) minibuffer-frame-alist)) (if my-minibuffer-frame (modify-frame-parameters my-minibuffer-frame (list (cons 'minibuffer 'only))) (setq my-minibuffer-frame (let ((after-make-frame-functions nil)) (make-frame (list (cons 'minibuffer 'only))))))) It doesn't matter where the (tool-bar-mode -1) is, and you could alternatively leave it out altogether and then do `M-x tool-bar-mode' to turn it off (step 3). 2. Start Emacs this way: runemacs.exe -Q --debug-init -l "bug-tool-bar.el" -f "foo" You get one frame with buffer *scratch* and a standalone minibuffer frame. Neither frame has a tool bar. However, `tool-bar-mode' is t - it should be nil. You can see this by typing `tool-bar-mode' in buffer *scratch* and using `C-x C-e'. 3. Optional step: `M-x tool-bar-mode'. This turns off tool-bar mode, though it should already have been off because of the code in `bug-tool-bar.el'. 4. Do `C-x 4 f some-file.el'. The file is visited in a new frame, and the frame has a tool bar. And tool-bar mode is now on. And this is so regardless of whether you skip step 3. The mode should remain off, and no tool bar should be shown. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-12-30 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping'