comparison src/frame.c @ 83496:f271076dab2d

Fix toolbars on X frames when Emacs is started on a tty. (Reported by Richard Lewis.) * lisp/faces.el (x-create-frame-with-faces): Remove bogus check for first frame. Call `tool-bar-setup'. * lisp/frame.el (window-system-default-frame-alist): Enhance doc string. * lisp/frame.el (frame-notice-user-settings): Don't put 'tool-bar-lines in `default-frame-alist' when initial frame is on a tty. * lisp/frame.el (modify-all-frames-parameters): Simplify using `assq-delete-all'. Remove specified parameters from `window-system-default-frame-alist'. * lisp/fringe.el (set-fringe-mode): Simplify and fix using `modify-all-frames-parameters'. * lisp/menu-bar.el (menu-bar-mode): Ditto. * lisp/scroll-bar.el (set-scroll-bar-mode): Ditto. * lisp/tool-bar.el (tool-bar-mode): Ditto. Remove 'tool-bar-map length check before calling `tool-bar-setup'. * lisp/tool-bar.el (tool-bar-setup): New variable. * lisp/tool-bar.el (tool-bar-setup): Use it to guard against multiple calls. Add optional frame parameter, and select that frame before adding items. * src/frame.c (syms_of_frame): Enhance doc string of `default-frame-alist'. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-536
author Karoly Lorentey <lorentey@elte.hu>
date Sun, 26 Mar 2006 13:57:43 +0000
parents fc6efa09ea7a
children 57e924639750
comparison
equal deleted inserted replaced
83495:989dc6aa2eb2 83496:f271076dab2d
4371 These may be set in your init file, like this: 4371 These may be set in your init file, like this:
4372 (setq default-frame-alist '((width . 80) (height . 55) (menu-bar-lines . 1))) 4372 (setq default-frame-alist '((width . 80) (height . 55) (menu-bar-lines . 1)))
4373 These override values given in window system configuration data, 4373 These override values given in window system configuration data,
4374 including X Windows' defaults database. 4374 including X Windows' defaults database.
4375 For values specific to the first Emacs frame, see `initial-frame-alist'. 4375 For values specific to the first Emacs frame, see `initial-frame-alist'.
4376 For window-system specific values, see `window-system-default-frame-alist'.
4376 For values specific to the separate minibuffer frame, see 4377 For values specific to the separate minibuffer frame, see
4377 `minibuffer-frame-alist'. 4378 `minibuffer-frame-alist'.
4378 The `menu-bar-lines' element of the list controls whether new frames 4379 The `menu-bar-lines' element of the list controls whether new frames
4379 have menu bars; `menu-bar-mode' works by altering this element. 4380 have menu bars; `menu-bar-mode' works by altering this element.
4380 Setting this variable does not affect existing frames, only new ones. */); 4381 Setting this variable does not affect existing frames, only new ones. */);