summaryrefslogtreecommitdiff
path: root/lisp/ido.el
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2002-10-27 21:31:19 +0000
committerKim F. Storm <storm@cua.dk>2002-10-27 21:31:19 +0000
commitd1a0acacb3fa88cb75a0367fc6b8c1e56779e5f9 (patch)
tree455db79e5a8b024b90af686427d39691077a145d /lisp/ido.el
parent14781a94b23ad62fef949a8bdf219835df9a8297 (diff)
downloademacs-d1a0acacb3fa88cb75a0367fc6b8c1e56779e5f9.tar.gz
(ido-cannot-complete-command): New defcustom, default to
ido-completion-help (similar to iswitchb-cannot-complete-hook). (ido-complete): Call value of ido-cannot-complete-command rather than ido-completion-help when no common completion.
Diffstat (limited to 'lisp/ido.el')
-rw-r--r--lisp/ido.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ido.el b/lisp/ido.el
index f9ba8178cba..93ecfc1755a 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -489,6 +489,15 @@ Value can be toggled within `ido' using `ido-toggle-prefix'."
:type 'boolean
:group 'ido)
+(defcustom ido-cannot-complete-command 'ido-completion-help
+ "*Command run when `ido-complete' can't complete any more.
+The most useful values are `ido-completion-help', which pops up a
+window with completion alternatives, or `ido-next-match' or
+`ido-prev-match', which cycle the buffer list."
+ :type 'function
+ :group 'ido)
+
+
(defcustom ido-record-commands t
"*Non-nil means that `ido' will record commands in command history.
Note that the non-ido equivalent command is recorded."
@@ -1928,8 +1937,7 @@ If INITIAL is non-nil, it specifies the initial input string."
((not ido-matches)
(when ido-completion-buffer
- (setq this-command 'ido-completion-help)
- (ido-completion-help)))
+ (call-interactively (setq this-command ido-cannot-complete-command))))
((= 1 (length ido-matches))
;; only one choice, so select it.
@@ -1946,7 +1954,7 @@ If INITIAL is non-nil, it specifies the initial input string."
(delete-region (minibuffer-prompt-end) (point))
(insert res))
;; else nothing to complete
- (ido-completion-help)
+ (call-interactively (setq this-command ido-cannot-complete-command))
)))))
(defun ido-complete-space ()