* riece-layout.el (riece-reconfigure-windows-predicate): Simplified.
authorueno <ueno>
Tue, 14 Oct 2003 02:07:28 +0000 (02:07 +0000)
committerueno <ueno>
Tue, 14 Oct 2003 02:07:28 +0000 (02:07 +0000)
lisp/ChangeLog
lisp/riece-layout.el

index 4ef0bc2..a6c7568 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-14  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-layout.el (riece-reconfigure-windows-predicate): Simplified.
+
 2003-10-13  Daiki Ueno  <ueno@unixuser.org>
 
        * Riece: Version 0.1.3 released.
index 469235b..44d1576 100644 (file)
@@ -128,14 +128,8 @@ This function is used by \"default\" layout."
 (defun riece-reconfigure-windows-predicate ()
   "Return t, if window reconfiguration is needed.
 This function is used by \"default\" layout."
-  ;; Check whether there is a buffer which belongs to Riece is visible.
-  (let ((buffers riece-buffer-list))
-    (catch 'found
-      (while buffers
-       (if (and (buffer-live-p (car buffers))
-                (get-buffer-window (car buffers)))
-           (throw 'found t)
-         (setq buffers (cdr buffers)))))))
+  (memq (window-buffer (selected-window))
+       riece-buffer-list))
 
 (defun riece-configure-windows-top (&optional plist)
   "Candidate of `riece-configure-windows-function'.