bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off


From: Chong Yidong
Subject: bug#1754: 23.0.60; tool-bar is shown with tool-bar-mode off
Date: Thu, 01 Jan 2009 02:03:21 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Drew Adams" <address@hidden> writes:

> Huh? Why is that the right thing?

Because your function `foo' tells Emacs to add a tool-bar to new frames.
Here is a much, much simpler version of your "bug":

 In foo.el;
  (tool-bar-mode -1)
  (defun foo ()
    (interactive)
    (setq default-frame-alist
          (append (list (cons 'tool-bar-lines 1))
                  default-frame-alist)))

 emacs -Q -l "foo.el" -f "foo"

When foo.el is loaded, that turns off tool-bar-mode (internally, this
works by modifying default-frame-alist and changing the frame parameter
`tool-bar-lines' to 0).

Next, the function `foo' is run.  That modifies default-frame-alist by
adding (tool-bar-lines . 1).  So, all new frames get a tool-bar.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]