]> code.delx.au - gnu-emacs/blobdiff - lisp/isearchb.el
Add `predicate' arg to `read-buffer' and use it for erc-iswitchb
[gnu-emacs] / lisp / isearchb.el
index ffd4d62be38cd223907cf562b0daba02a3d64edb..5e7771cea524ad7eb1684c5a054fd4330b6972f5 100644 (file)
@@ -75,7 +75,9 @@
 ;;   killing iswitchb.el and then trying to switch back is broken
 ;;   make sure TAB isn't broken
 
-(require 'iswitchb)
+;;; Code:
+
+(require 'iswitchb)                     ;FIXME: Don't rely on iswitchb!
 
 (defgroup isearchb nil
   "Switch between buffers using a mechanism like isearch."
@@ -118,7 +120,7 @@ Its purpose is to pass different call arguments to
   (interactive)
   (let* ((prompt "iswitch ")
         (iswitchb-method 'samewindow)
-        (buf (iswitchb-read-buffer prompt nil nil iswitchb-text t)))
+        (buf (iswitchb-read-buffer prompt nil nil nil iswitchb-text t)))
     (if (eq iswitchb-exit 'findfile)
        (call-interactively 'find-file)
       (when buf