emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r104485: * lisp/iswitchb.el (iswitchb


From: Deniz Dogan
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104485: * lisp/iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of `memq'.
Date: Sat, 04 Jun 2011 13:02:37 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104485
fixes bug(s): http://debbugs.gnu.org/8799
committer: Deniz Dogan <address@hidden>
branch nick: emacs-trunk
timestamp: Sat 2011-06-04 13:02:37 +0200
message:
  * lisp/iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of `memq'.
modified:
  lisp/ChangeLog
  lisp/iswitchb.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2011-06-02 18:04:44 +0000
+++ b/lisp/ChangeLog    2011-06-04 11:02:37 +0000
@@ -1,3 +1,8 @@
+2011-06-04  Deniz Dogan  <address@hidden>
+
+       * iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of
+       `memq' (Bug#8799).
+
 2011-06-02  Stefan Monnier  <address@hidden>
 
        * subr.el (make-progress-reporter): Add "..." by default (bug#8785).

=== modified file 'lisp/iswitchb.el'
--- a/lisp/iswitchb.el  2011-05-23 17:57:17 +0000
+++ b/lisp/iswitchb.el  2011-06-04 11:02:37 +0000
@@ -1118,10 +1118,9 @@
 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
       )))
 


reply via email to

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