diff options
| author | Deniz Dogan | 2011-06-04 13:02:37 +0200 |
|---|---|---|
| committer | Deniz Dogan | 2011-06-04 13:02:37 +0200 |
| commit | 6c4cab0308a5568a84639f0b6fe6daa12dcc80b2 (patch) | |
| tree | bc2eb631254b5ead0ae64f694653f1546dc7cfa5 | |
| parent | 8264569dfef471db86361761a8a0f7e167cc4b8a (diff) | |
| download | emacs-6c4cab0308a5568a84639f0b6fe6daa12dcc80b2.tar.gz emacs-6c4cab0308a5568a84639f0b6fe6daa12dcc80b2.zip | |
* lisp/iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of `memq'.
Fixes: debbugs:8799
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/iswitchb.el | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 101384cee7d..81de3b4b0f1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-06-04 Deniz Dogan <deniz@dogan.se> | ||
| 2 | |||
| 3 | * iswitchb.el (iswitchb-window-buffer-p): Use `member' instead of | ||
| 4 | `memq' (Bug#8799). | ||
| 5 | |||
| 1 | 2011-06-02 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2011-06-02 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * subr.el (make-progress-reporter): Add "..." by default (bug#8785). | 8 | * subr.el (make-progress-reporter): Add "..." by default (bug#8785). |
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index e0da2563c1a..c782295c794 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el | |||
| @@ -1118,10 +1118,9 @@ Return the modified list with the last element prepended to it." | |||
| 1118 | If BUFFER is visible in the current frame, return nil." | 1118 | If BUFFER is visible in the current frame, return nil." |
| 1119 | (interactive) | 1119 | (interactive) |
| 1120 | (let ((blist (iswitchb-get-buffers-in-frames 'current))) | 1120 | (let ((blist (iswitchb-get-buffers-in-frames 'current))) |
| 1121 | ;;If the buffer is visible in current frame, return nil | 1121 | ;; If the buffer is visible in current frame, return nil |
| 1122 | (if (memq buffer blist) | 1122 | (when (member buffer blist) |
| 1123 | nil | 1123 | ;; maybe in other frame or icon |
| 1124 | ;; maybe in other frame or icon | ||
| 1125 | (get-buffer-window buffer 0) ; better than 'visible | 1124 | (get-buffer-window buffer 0) ; better than 'visible |
| 1126 | ))) | 1125 | ))) |
| 1127 | 1126 | ||