X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/4f9d7df139695e97cd1772d41940500480585df7..549c9aed8dc0590249df20560302756bfb48e84b:/lisp/isearchb.el diff --git a/lisp/isearchb.el b/lisp/isearchb.el index ced3781e5c..d58b0952fc 100644 --- a/lisp/isearchb.el +++ b/lisp/isearchb.el @@ -1,6 +1,7 @@ ;;; isearchb --- a marriage between iswitchb and isearch -;; Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 +;; Free Software Foundation, Inc. ;; Author: John Wiegley ;; Maintainer: FSF @@ -82,14 +83,14 @@ :group 'iswitchb) (defcustom isearchb-idle-timeout nil - "*Number of idle seconds before isearchb turns itself off. + "Number of idle seconds before isearchb turns itself off. If nil, don't use a timeout." :type '(choice (integer :tag "Seconds") (const :tag "Disable" nil)) :group 'isearchb) (defcustom isearchb-show-completions t - "*If non-nil, show possible completions in the minibuffer." + "If non-nil, show possible completions in the minibuffer." :type 'boolean :group 'isearchb) @@ -136,10 +137,10 @@ Its purpose is to pass different call arguments to (unless iswitchb-text (setq iswitchb-text "") (iswitchb-make-buflist nil)) - (if last-command-char + (if last-command-event (setq iswitchb-rescan t iswitchb-text (concat iswitchb-text - (char-to-string last-command-char)))) + (char-to-string last-command-event)))) (iswitchb-set-matches) (let* ((match (car iswitchb-matches)) (buf (and match (get-buffer match)))) @@ -176,17 +177,17 @@ Its purpose is to pass different call arguments to (substring iswitchb-text 0 (1- (length iswitchb-text)))) (if (= 0 (length iswitchb-text)) (isearchb-stop t t) - (setq last-command-char nil) + (setq last-command-event nil) (setq this-command 'isearchb))) ((or (equal keys "\C-i") (equal keys [tab])) (setq this-command 'isearchb-iswitchb)) ((equal keys "\C-s") (iswitchb-next-match) - (setq last-command-char nil) + (setq last-command-event nil) (setq this-command 'isearchb)) ((equal keys "\C-r") (iswitchb-prev-match) - (setq last-command-char nil) + (setq last-command-event nil) (setq this-command 'isearchb)) ((equal keys "\C-g") (ding)