diff options
| author | Dave Love | 2001-02-13 19:18:01 +0000 |
|---|---|---|
| committer | Dave Love | 2001-02-13 19:18:01 +0000 |
| commit | dfe5e27fc10ac88383f5080f7b792d85f56ff6c8 (patch) | |
| tree | f1d94b0cdd91b17d695becb9b68aba09ec49cbe3 | |
| parent | 0a41199524577dadaf29652a6edb5bcd07b3560c (diff) | |
| download | emacs-dfe5e27fc10ac88383f5080f7b792d85f56ff6c8.tar.gz emacs-dfe5e27fc10ac88383f5080f7b792d85f56ff6c8.zip | |
(menu-bar-select-frame): Adjust for
last-command-event being a frame name.
(menu-bar-update-buffers): Build frame menu (like the buffer menu)
using frame names.
| -rw-r--r-- | lisp/menu-bar.el | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 65c9f7d76dc..ab14632b716 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; menu-bar.el --- define a default menu bar. | 1 | ;;; menu-bar.el --- define a default menu bar. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1995, 2000 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: RMS | 5 | ;; Author: RMS |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -992,9 +992,13 @@ key (or menu-item)")) | |||
| 992 | 992 | ||
| 993 | (defun menu-bar-select-frame () | 993 | (defun menu-bar-select-frame () |
| 994 | (interactive) | 994 | (interactive) |
| 995 | (make-frame-visible last-command-event) | 995 | (let (frame) |
| 996 | (raise-frame last-command-event) | 996 | (dolist (f (frame-list)) |
| 997 | (select-frame last-command-event)) | 997 | (when (equal last-command-event (frame-parameter f 'name)) |
| 998 | (setq frame f))) | ||
| 999 | (make-frame-visible frame) | ||
| 1000 | (raise-frame frame) | ||
| 1001 | (select-frame frame))) | ||
| 998 | 1002 | ||
| 999 | (defun menu-bar-update-buffers-1 (elt) | 1003 | (defun menu-bar-update-buffers-1 (elt) |
| 1000 | (cons (format | 1004 | (cons (format |
| @@ -1122,7 +1126,7 @@ key (or menu-item)")) | |||
| 1122 | (mapcar | 1126 | (mapcar |
| 1123 | (lambda (frame) | 1127 | (lambda (frame) |
| 1124 | (nconc | 1128 | (nconc |
| 1125 | (list frame | 1129 | (list (frame-parameter frame 'name) |
| 1126 | (frame-parameter frame 'name) | 1130 | (frame-parameter frame 'name) |
| 1127 | (cons nil nil)) | 1131 | (cons nil nil)) |
| 1128 | 'menu-bar-select-frame)) | 1132 | 'menu-bar-select-frame)) |