diff options
author | Bozhidar Batsov <bozhidar@tradeo.com> | 2013-11-10 09:52:14 +0200 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@tradeo.com> | 2013-11-10 09:52:14 +0200 |
commit | 8fbb5f27e927b993a1c7ad13f8cb9c02b82cd81b (patch) | |
tree | eff6fcd002d322c970f5ba1b98528ed9e07fce13 /cider-selector.el | |
parent | 9c4a0b970684c1cfdfeaa475e6058cf433234649 (diff) |
Fix build
Diffstat (limited to 'cider-selector.el')
-rw-r--r-- | cider-selector.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cider-selector.el b/cider-selector.el index 39ac2d9f..e6b48eb5 100644 --- a/cider-selector.el +++ b/cider-selector.el @@ -46,9 +46,8 @@ DESCRIPTION is a one-line description of what the key selects.") "Return the most recently visited buffer whose `major-mode' is MODE. Only considers buffers that are not already visible." (loop for buffer in (buffer-list) - when (and (with-current-buffer buffer (derived-mode-p mode)) + when (and (with-current-buffer buffer (eq major-mode mode)) (not (string-match "^ " (buffer-name buffer))) - (not (string-match "^\\*" (buffer-name buffer))) (null (get-buffer-window buffer 'visible))) return buffer finally (error "Can't find unshown buffer in %S" mode))) |