Commit 9234aedc authored by Chong Yidong's avatar Chong Yidong

Backport 2011-06-04T11:02:37Z!deniz@dogan.se (Bug#8799) from trunk

parent 8e818c45
2011-08-21 Deniz Dogan <deniz@dogan.se>
* iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of
`memq' (Bug#8799).
2011-08-09 Chong Yidong <cyd@stupidchicken.com>
* hi-lock.el (hi-lock-unface-buffer): Fix interactive spec
......
......@@ -1112,10 +1112,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
(unless (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