unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off
@ 2009-01-01  3:05 Chong Yidong
  2009-01-01  5:17 ` Drew Adams
  0 siblings, 1 reply; 51+ messages in thread
From: Chong Yidong @ 2009-01-01  3:05 UTC (permalink / raw)
  To: Drew Adams; +Cc: 1754

Arguably, Emacs 23 is now doing the right thing.  Your
default-frame-alist specifies a tool-bar-lines frame parameter of 1,
which means the tool-bar should be enabled in new frames.  If you remove
that frame parameter from your default-frame-alist, or set it to 0, new
frames will not show a tool-bar.

I am not 100% sure why previous version of Emacs did not show the
tool-bar, but they probably ought to have.  Possibly it's because we now
set up the contents of the tool-bar at startup even if the initial frame
cannot or does not display it (a change required by the new multi-tty
functionality).






^ permalink raw reply	[flat|nested] 51+ messages in thread
* bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off
@ 2009-01-01 13:47 grischka
  2009-01-01 13:51 ` Jason Rumney
  0 siblings, 1 reply; 51+ messages in thread
From: grischka @ 2009-01-01 13:47 UTC (permalink / raw)
  To: jasonr; +Cc: 1754

Jason Rumney wrote:
> But you also set tool-bar-lines to 1 in popup-frame-alist, which overrides
> default-frame-alist for popup frames in any case. tool-bar-mode may override
> settings in default-frame-alist, but it doesn't go any further than that, as
> the more specialized -frame-alist settings are probably more important than
> the global setting of tool-bar-mode.

Sorry, but "probably" is not a category that matters with binary logic like
whether something is "on" or "off".

In this case: As long as it is possible to make a new frame and that frame
does not have a toolbar and at the same time typing "M-: tool-bar-mode" in
that frame returns t,  there is something wrong with it. Not probably, but
definitely.







^ permalink raw reply	[flat|nested] 51+ messages in thread
* bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off
@ 2008-12-31 22:15 Drew Adams
  2009-01-01 15:24 ` martin rudalics
  2009-01-09 19:37 ` martin rudalics
  0 siblings, 2 replies; 51+ messages in thread
From: Drew Adams @ 2008-12-31 22:15 UTC (permalink / raw)
  To: emacs-pretest-bug

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'
 







^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2009-01-17 18:33 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-01  3:05 bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off Chong Yidong
2009-01-01  5:17 ` Drew Adams
2009-01-01  7:03   ` Chong Yidong
2009-01-01 21:28     ` Drew Adams
2009-01-01 21:51       ` Drew Adams
2009-01-02  0:01       ` Jason Rumney
2009-01-02  1:14         ` Drew Adams
2009-01-02  2:27           ` Drew Adams
2009-01-02  2:47             ` Drew Adams
2009-01-02 11:57             ` Jason Rumney
2009-01-02 14:50               ` martin rudalics
2009-01-01  7:36   ` Jason Rumney
2009-01-01 21:28     ` Drew Adams
2009-01-01 23:53       ` Jason Rumney
2009-01-02  1:14         ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2009-01-01 13:47 grischka
2009-01-01 13:51 ` Jason Rumney
2009-01-01 14:30   ` grischka
2008-12-31 22:15 Drew Adams
2009-01-01 15:24 ` martin rudalics
2009-01-01 15:53   ` Jason Rumney
2009-01-01 16:09     ` martin rudalics
2009-01-01 21:28   ` Drew Adams
2009-01-01 21:51     ` Drew Adams
2009-01-02  7:52       ` martin rudalics
2009-01-02  7:52     ` martin rudalics
2009-01-03  3:12       ` Stefan Monnier
2009-01-03 10:13         ` martin rudalics
2009-01-05  4:10           ` Stefan Monnier
2009-01-05  7:57             ` martin rudalics
2009-01-05 22:20               ` Stefan Monnier
2009-01-06 13:37                 ` martin rudalics
2009-01-09 19:37                 ` martin rudalics
2009-01-10  2:29                   ` Stefan Monnier
2009-01-10 10:04                     ` martin rudalics
2009-01-10 22:38                       ` Stefan Monnier
2009-01-11 11:22                         ` martin rudalics
2009-01-11 14:56                           ` Stefan Monnier
2009-01-11 17:14                             ` martin rudalics
2009-01-11 23:12                               ` Stefan Monnier
2009-01-12  9:58                                 ` martin rudalics
2009-01-12 15:23                                   ` Stefan Monnier
2009-01-12 16:00                                     ` martin rudalics
2009-01-12 18:29                                       ` Stefan Monnier
2009-01-12 19:33                                         ` Lennart Borgman
2009-01-12 20:57                                           ` Stefan Monnier
2009-01-12 21:59                                         ` Drew Adams
2009-01-14 14:20                                         ` martin rudalics
2009-01-17 18:33           ` Drew Adams
2009-01-09 19:37 ` martin rudalics
2009-01-09 20:21   ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).