emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/menu-bar.el


From: Juri Linkov
Subject: [Emacs-diffs] Changes to emacs/lisp/menu-bar.el
Date: Tue, 20 Dec 2005 21:41:31 +0000

Index: emacs/lisp/menu-bar.el
diff -u emacs/lisp/menu-bar.el:1.286 emacs/lisp/menu-bar.el:1.287
--- emacs/lisp/menu-bar.el:1.286        Fri Dec 16 20:37:23 2005
+++ emacs/lisp/menu-bar.el      Tue Dec 20 21:41:31 2005
@@ -1418,8 +1418,7 @@
 (defun menu-bar-menu-frame-live-and-visible-p ()
   "Return non-nil if the menu frame is alive and visible.
 The menu frame is the frame for which we are updating the menu."
-  (let ((menu-frame (if (display-multi-frame-p) menu-updating-frame
-                     (selected-frame))))
+  (let ((menu-frame (or menu-updating-frame (selected-frame))))
     (and (frame-live-p menu-frame)
         (frame-visible-p menu-frame))))
 
@@ -1428,8 +1427,7 @@
 
 See the documentation of `menu-bar-menu-frame-live-and-visible-p'
 for the definition of the menu frame."
-  (let ((menu-frame (if (display-multi-frame-p) menu-updating-frame
-                     (selected-frame))))
+  (let ((menu-frame (or menu-updating-frame (selected-frame))))
     (not (window-minibuffer-p (frame-selected-window menu-frame)))))
 
 (defun kill-this-buffer ()     ; for the menu bar




reply via email to

[Prev in Thread] Current Thread [Next in Thread]