unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* `menu-bar-mode' and `tool-bar-mode' problems
@ 2003-05-30 18:41 Paul Pogonyshev
  0 siblings, 0 replies; only message in thread
From: Paul Pogonyshev @ 2003-05-30 18:41 UTC (permalink / raw)


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:

Add

  (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.


regards,
  Paul Pogonyshev

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-30 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-30 18:41 `menu-bar-mode' and `tool-bar-mode' problems Paul Pogonyshev

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).