[Top][All Lists]

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

`menu-bar-mode' and `tool-bar-mode' problems

From: Paul Pogonyshev
Subject: `menu-bar-mode' and `tool-bar-mode' problems
Date: Fri, 30 May 2003 14:41:43 -0400
User-agent: KMail/1.5.9

Hi! I'm pretty new to GNU Emacs, but i hope i haven't missed anything.

GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)

./configure --with-x

Unmodified source code.

Other information that might be relevant:
X-System 4.3.0
KDE 3.1 (some mid-May CVS checkout) and KDE's window manager

First problem:

Type `M-x menu-bar-mode'. The size of Emacs X window changes.
When you `M-x tool-bar-mode' the size remains the same.

I think the second behaviour is much better and `menu-bar-mode'
shouldn't resize the whole window, just hide/show the menu bar.

Second problem:


  (tool-bar-mode 0)

to `.emacs' file. Restart Emacs. Its window shrinks by the height of
the toolbar. That is, `tool-bar-mode' in `.emacs' behaves the same
way as `menu-bar-mode' always does - changes the size of Emacs window.
This makes autohiding toolbar on Emacs startup very inconvenient.
Making the toolbar hide automatically through `M-x customize' has the
same effect.

There is a workaround for the second problem:

  (defun hide-toolbar()
    (tool-bar-mode 0))
  (add-hook 'window-setup-hook 'hide-toolbar)

`'window-setup-hook' is essential, `'after-init-hook' doesn't work.

  Paul Pogonyshev

reply via email to

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