* lisp/iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of `memq'.
authorDeniz Dogan <deniz@dogan.se>
Sat, 4 Jun 2011 11:02:37 +0000 (13:02 +0200)
committerDeniz Dogan <deniz@dogan.se>
Sat, 4 Jun 2011 11:02:37 +0000 (13:02 +0200)
Fixes: debbugs:8799

lisp/ChangeLog
lisp/iswitchb.el

index 101384c..81de3b4 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-04  Deniz Dogan  <deniz@dogan.se>
+
+       * iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of
+       `memq' (Bug#8799).
+
 2011-06-02  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * subr.el (make-progress-reporter): Add "..." by default (bug#8785).
index e0da256..c782295 100644 (file)
@@ -1118,10 +1118,9 @@ Return the modified list with the last element prepended to it."
 If BUFFER is visible in the current frame, return nil."
   (interactive)
   (let ((blist (iswitchb-get-buffers-in-frames 'current)))
-    ;;If the buffer is visible in current frame, return nil
-    (if (memq buffer blist)
-       nil
-      ;;  maybe in other frame or icon
+    ;; If the buffer is visible in current frame, return nil
+    (when (member buffer blist)
+      ;; maybe in other frame or icon
       (get-buffer-window buffer 0) ; better than 'visible
       )))