Commit 6c4cab03 authored by Deniz Dogan's avatar Deniz Dogan
Browse files

* lisp/iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of `memq'.

Fixes: debbugs:8799
parent 8264569d
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).
......
......@@ -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
)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment