aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-03-16 21:25:52 +0000
committerKarl Heuer1995-03-16 21:25:52 +0000
commitb65be6a80d77ba8ca72c2e2294422d7d47cb8de4 (patch)
treebebb7df526393ea4b1d97172fd6b5f2eb8eac13c
parent0759c4d083666eecd0cbd903bbdaf761ec39f11f (diff)
downloademacs-b65be6a80d77ba8ca72c2e2294422d7d47cb8de4.tar.gz
emacs-b65be6a80d77ba8ca72c2e2294422d7d47cb8de4.zip
(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.el16
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'.")
203(defun frame-notice-user-settings () 203(defun frame-notice-user-settings ()
204 204
205 ;; Make menu-bar-mode and default-frame-alist consistent. 205 ;; Make menu-bar-mode and default-frame-alist consistent.
206 (let ((default (assq 'menu-bar-lines default-frame-alist))) 206 (if (boundp 'menu-bar-mode)
207 (if default 207 (let ((default (assq 'menu-bar-lines default-frame-alist)))
208 (setq menu-bar-mode (not (eq (cdr default) 0))) 208 (if default
209 (setq default-frame-alist 209 (setq menu-bar-mode (not (eq (cdr default) 0)))
210 (cons (cons 'menu-bar-lines (if menu-bar-mode 1 0)) 210 (setq default-frame-alist
211 default-frame-alist)))) 211 (cons (cons 'menu-bar-lines (if menu-bar-mode 1 0))
212 default-frame-alist)))))
212 213
213 ;; Creating and deleting frames may shift the selected frame around, 214 ;; Creating and deleting frames may shift the selected frame around,
214 ;; and thus the current buffer. Protect against that. We don't 215 ;; and thus the current buffer. Protect against that. We don't
@@ -495,7 +496,8 @@ A negative ARG moves in the opposite order."
495 (raise-frame frame) 496 (raise-frame frame)
496 (select-frame frame) 497 (select-frame frame)
497 (set-mouse-position (selected-frame) (1- (frame-width)) 0) 498 (set-mouse-position (selected-frame) (1- (frame-width)) 0)
498 (unfocus-frame))) 499 (if (fboundp 'unfocus-frame)
500 (unfocus-frame))))
499 501
500;;;; Frame configurations 502;;;; Frame configurations
501 503