diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-03-16 21:25:52 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-03-16 21:25:52 +0000 |
commit | b6a4418cdf078ee75b171910da3e30708b1f71b8 (patch) | |
tree | a0c98e12a66b2332daeb7ed9c111eb0903ef4736 | |
parent | e934c80abde80487698ccad97cac71a664283b02 (diff) | |
download | emacs-b6a4418cdf078ee75b171910da3e30708b1f71b8.tar.gz |
(other-frame): Don't try to unfocus in a termcap frame.
(frame-notice-user-settings): Skip menu-bar code in a termcap frame.
-rw-r--r-- | lisp/frame.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index a53b3c82eda..5f12a776119 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -203,12 +203,13 @@ These supersede the values given in `default-frame-alist'.") (defun frame-notice-user-settings () ;; Make menu-bar-mode and default-frame-alist consistent. - (let ((default (assq 'menu-bar-lines default-frame-alist))) - (if default - (setq menu-bar-mode (not (eq (cdr default) 0))) - (setq default-frame-alist - (cons (cons 'menu-bar-lines (if menu-bar-mode 1 0)) - default-frame-alist)))) + (if (boundp 'menu-bar-mode) + (let ((default (assq 'menu-bar-lines default-frame-alist))) + (if default + (setq menu-bar-mode (not (eq (cdr default) 0))) + (setq default-frame-alist + (cons (cons 'menu-bar-lines (if menu-bar-mode 1 0)) + default-frame-alist))))) ;; Creating and deleting frames may shift the selected frame around, ;; and thus the current buffer. Protect against that. We don't @@ -495,7 +496,8 @@ A negative ARG moves in the opposite order." (raise-frame frame) (select-frame frame) (set-mouse-position (selected-frame) (1- (frame-width)) 0) - (unfocus-frame))) + (if (fboundp 'unfocus-frame) + (unfocus-frame)))) ;;;; Frame configurations |