diff options
author | Syohei YOSHIDA <syohex@gmail.com> | 2015-04-22 16:12:08 +0900 |
---|---|---|
committer | Syohei YOSHIDA <syohex@gmail.com> | 2015-04-22 16:12:08 +0900 |
commit | b7d0b16a480d6dddec71f029f8057c69590ac571 (patch) | |
tree | 50736b22552d489fcf29541c29593313427c76d6 /cider-selector.el | |
parent | 1c8fb7edc4a2c670720266d12630de9709844fbf (diff) |
Use string-match-p/looking-at-p as possible
Diffstat (limited to 'cider-selector.el')
-rw-r--r-- | cider-selector.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cider-selector.el b/cider-selector.el index 9c77f658..162e3a6a 100644 --- a/cider-selector.el +++ b/cider-selector.el @@ -50,7 +50,7 @@ DESCRIPTION is a one-line description of what the key selects.") Only considers buffers that are not already visible." (cl-loop for buffer in (buffer-list) when (and (with-current-buffer buffer (eq major-mode mode)) - (not (string-match "^ " (buffer-name buffer))) + (not (string-match-p "^ " (buffer-name buffer))) (null (get-buffer-window buffer 'visible))) return buffer finally (error "Can't find unshown buffer in %S" mode))) |