diff options
| author | Geoff Voelker | 1995-11-07 07:47:22 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1995-11-07 07:47:22 +0000 |
| commit | 39d6d6be553cba67fa6390d263e741d3fe31efe6 (patch) | |
| tree | 01fba1bdd4c7136bfb21bbc64d5dedcfd917f9e4 /lisp | |
| parent | a3af21431056994d43ee2644814140d0cb0f0ad7 (diff) | |
| download | emacs-39d6d6be553cba67fa6390d263e741d3fe31efe6.tar.gz emacs-39d6d6be553cba67fa6390d263e741d3fe31efe6.zip | |
[win32] (normal-top-level, command-line, command-line-1):
Test for 'win32 window system as well as 'x.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/startup.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 0917557a497..c387b519d8e 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -301,7 +301,7 @@ this prefix to create a unique file name.") | |||
| 301 | (and window-setup-hook | 301 | (and window-setup-hook |
| 302 | (run-hooks 'window-setup-hook)) | 302 | (run-hooks 'window-setup-hook)) |
| 303 | (or menubar-bindings-done | 303 | (or menubar-bindings-done |
| 304 | (if (eq window-system 'x) | 304 | (if (or (eq window-system 'x) (eq window-system 'win32)) |
| 305 | (precompute-menubar-bindings))))))) | 305 | (precompute-menubar-bindings))))))) |
| 306 | 306 | ||
| 307 | ;; Precompute the keyboard equivalents in the menu bar items. | 307 | ;; Precompute the keyboard equivalents in the menu bar items. |
| @@ -456,7 +456,7 @@ this prefix to create a unique file name.") | |||
| 456 | (if (fboundp 'frame-initialize) | 456 | (if (fboundp 'frame-initialize) |
| 457 | (frame-initialize)) | 457 | (frame-initialize)) |
| 458 | ;; If frame was created with a menu bar, set menu-bar-mode on. | 458 | ;; If frame was created with a menu bar, set menu-bar-mode on. |
| 459 | (if (or (not (eq window-system 'x)) | 459 | (if (or (not (or (eq window-system 'x) (eq window-system 'win32))) |
| 460 | (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0)) | 460 | (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0)) |
| 461 | (menu-bar-mode t)) | 461 | (menu-bar-mode t)) |
| 462 | 462 | ||
| @@ -606,7 +606,7 @@ this prefix to create a unique file name.") | |||
| 606 | (setq window-setup-hook nil) | 606 | (setq window-setup-hook nil) |
| 607 | ;; Do this now to avoid an annoying delay if the user | 607 | ;; Do this now to avoid an annoying delay if the user |
| 608 | ;; clicks the menu bar during the sit-for. | 608 | ;; clicks the menu bar during the sit-for. |
| 609 | (if (eq window-system 'x) | 609 | (if (or (eq window-system 'x) (eq window-system 'win32)) |
| 610 | (precompute-menubar-bindings)) | 610 | (precompute-menubar-bindings)) |
| 611 | (setq menubar-bindings-done t) | 611 | (setq menubar-bindings-done t) |
| 612 | (unwind-protect | 612 | (unwind-protect |