Mercurial > emacs
comparison lisp/startup.el @ 35736:b0dd419f0534
(command-line): Remove manipulation of frame
height for tool bars.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 30 Jan 2001 15:07:08 +0000 |
parents | 7402e353c6e4 |
children | 5b6e4f82f267 |
comparison
equal
deleted
inserted
replaced
35735:e20f7bc75418 | 35736:b0dd419f0534 |
---|---|
747 | 747 |
748 ;; Re-attach the program name to the front of the arg list. | 748 ;; Re-attach the program name to the front of the arg list. |
749 (and command-line-args (setcdr command-line-args args))) | 749 (and command-line-args (setcdr command-line-args args))) |
750 | 750 |
751 ;; Under X Windows, this creates the X frame and deletes the terminal frame. | 751 ;; Under X Windows, this creates the X frame and deletes the terminal frame. |
752 (if (fboundp 'frame-initialize) | 752 (when (fboundp 'frame-initialize) |
753 (frame-initialize)) | 753 (frame-initialize)) |
754 | |
754 ;; If frame was created with a menu bar, set menu-bar-mode on. | 755 ;; If frame was created with a menu bar, set menu-bar-mode on. |
755 (if (and (not noninteractive) | 756 (if (and (not noninteractive) |
756 (or (not (memq window-system '(x w32))) | 757 (or (not (memq window-system '(x w32))) |
757 (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0))) | 758 (> (cdr (assq 'menu-bar-lines (frame-parameters))) 0))) |
758 (menu-bar-mode t)) | 759 (menu-bar-mode t)) |
932 (setq user-mail-address (concat (user-login-name) "@" | 933 (setq user-mail-address (concat (user-login-name) "@" |
933 (or mail-host-address | 934 (or mail-host-address |
934 (system-name))))) | 935 (system-name))))) |
935 | 936 |
936 (run-hooks 'after-init-hook) | 937 (run-hooks 'after-init-hook) |
937 | |
938 ;; When the tool-bar is on, increase the frame's height by the | |
939 ;; number of lines it usually occupies. The normal height of images | |
940 ;; in the tool bar is assumed to be `tool-bar-images-pixel-height'. | |
941 (when tool-bar-mode | |
942 (let* ((char-height (frame-char-height)) | |
943 (bar-height (+ tool-bar-images-pixel-height | |
944 tool-bar-button-margin | |
945 tool-bar-button-relief)) | |
946 (lines (/ (+ bar-height (1- char-height)) char-height))) | |
947 (set-frame-height nil (+ (frame-height) lines)))) | |
948 | |
949 ;; Now, make the frame visible. If we make it visible before this | |
950 ;; point, ugly flickering can happens because of possibly changing | |
951 ;; frame heights. Note that any message or error make the frame | |
952 ;; visible automatically. | |
953 (make-frame-visible) | |
954 | 938 |
955 ;; If *scratch* exists and init file didn't change its mode, initialize it. | 939 ;; If *scratch* exists and init file didn't change its mode, initialize it. |
956 (if (get-buffer "*scratch*") | 940 (if (get-buffer "*scratch*") |
957 (save-excursion | 941 (save-excursion |
958 (set-buffer "*scratch*") | 942 (set-buffer "*scratch*") |