diff options
| author | Eli Zaretskii | 2000-10-12 22:36:37 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-10-12 22:36:37 +0000 |
| commit | 66c24e1e0cb1ede39d4a419599669f69cf3bc93d (patch) | |
| tree | 4d107a87fd01cdf82a0e46fbe4a440756aabce75 | |
| parent | a0f1813d9d2125518536674bc638ac7217f192f4 (diff) | |
| download | emacs-66c24e1e0cb1ede39d4a419599669f69cf3bc93d.tar.gz emacs-66c24e1e0cb1ede39d4a419599669f69cf3bc93d.zip | |
(normal-top-level): Use display-popup-menus-p instead
of window-system.
(command-line): Use display-graphic-p instead of window-system.
(command-line-1): Use display-popup-menus-p and display-mouse-p
instead of window-system.
| -rw-r--r-- | lisp/startup.el | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 4e478f5882f..e4d1e8f7f31 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -479,9 +479,8 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 479 | (and window-setup-hook | 479 | (and window-setup-hook |
| 480 | (run-hooks 'window-setup-hook)) | 480 | (run-hooks 'window-setup-hook)) |
| 481 | (or menubar-bindings-done | 481 | (or menubar-bindings-done |
| 482 | (if (memq window-system '(x w32)) | 482 | (if (display-popup-menus-p) |
| 483 | (precompute-menubar-bindings) | 483 | (precompute-menubar-bindings))))))) |
| 484 | )))))) | ||
| 485 | 484 | ||
| 486 | ;; Precompute the keyboard equivalents in the menu bar items. | 485 | ;; Precompute the keyboard equivalents in the menu bar items. |
| 487 | (defun precompute-menubar-bindings () | 486 | (defun precompute-menubar-bindings () |
| @@ -655,7 +654,7 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 655 | 654 | ||
| 656 | ;; If frame was created with a tool bar, switch tool-bar-mode on. | 655 | ;; If frame was created with a tool bar, switch tool-bar-mode on. |
| 657 | (when (and (not noninteractive) | 656 | (when (and (not noninteractive) |
| 658 | (memq window-system '(x w32)) | 657 | (display-graphic-p) |
| 659 | (> (frame-parameter nil 'tool-bar-lines) 0)) | 658 | (> (frame-parameter nil 'tool-bar-lines) 0)) |
| 660 | (tool-bar-mode t)) | 659 | (tool-bar-mode t)) |
| 661 | 660 | ||
| @@ -1092,7 +1091,7 @@ where FACE is a valid face specification, as it can be used with | |||
| 1092 | (run-hooks 'window-setup-hook) | 1091 | (run-hooks 'window-setup-hook) |
| 1093 | (setq window-setup-hook nil)) | 1092 | (setq window-setup-hook nil)) |
| 1094 | 1093 | ||
| 1095 | (when (memq window-system '(x w32)) | 1094 | (when (display-popup-menus-p) |
| 1096 | (precompute-menubar-bindings)) | 1095 | (precompute-menubar-bindings)) |
| 1097 | (setq menubar-bindings-done t) | 1096 | (setq menubar-bindings-done t) |
| 1098 | 1097 | ||
| @@ -1172,9 +1171,7 @@ Activate menubar F10 or ESC ` or M-`") | |||
| 1172 | (insert (substitute-command-keys " | 1171 | (insert (substitute-command-keys " |
| 1173 | Activate menubar \\[tmm-menubar]"))) | 1172 | Activate menubar \\[tmm-menubar]"))) |
| 1174 | 1173 | ||
| 1175 | ;; Windows and MSDOS (currently) do not count as | 1174 | (if (display-mouse-p) |
| 1176 | ;; window systems, but do have mouse support. | ||
| 1177 | (if window-system | ||
| 1178 | (insert " | 1175 | (insert " |
| 1179 | Mode-specific menu C-mouse-3 (third button, with CTRL)")) | 1176 | Mode-specific menu C-mouse-3 (third button, with CTRL)")) |
| 1180 | ;; Many users seem to have problems with these. | 1177 | ;; Many users seem to have problems with these. |