diff options
| author | Kim F. Storm | 2007-01-22 22:37:25 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2007-01-22 22:37:25 +0000 |
| commit | cba9a3a5eecbaccff2d620a94d810059927b1515 (patch) | |
| tree | 06da22c50e882150c9ffd6a8e45311197cd47210 | |
| parent | 67155dc3f4e665d14fd0b567a805b1ca8eb3eb2c (diff) | |
| download | emacs-cba9a3a5eecbaccff2d620a94d810059927b1515.tar.gz emacs-cba9a3a5eecbaccff2d620a94d810059927b1515.zip | |
(ido-active): Add xemacs test from ido-minibuffer-setup.
(ido-initiate-auto-merge, ido-exhibit, ido-minibuffer-setup)
(ido-tidy): Use ido-active.
| -rw-r--r-- | lisp/ido.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index c1f0066b655..6c51fb075cd 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1119,7 +1119,9 @@ so that it doesn't interfere with other minibuffer usage.") | |||
| 1119 | (defun ido-active (&optional merge) | 1119 | (defun ido-active (&optional merge) |
| 1120 | (if merge | 1120 | (if merge |
| 1121 | ido-use-merged-list | 1121 | ido-use-merged-list |
| 1122 | (and (boundp 'ido-completing-read) (= ido-use-mycompletion-depth (minibuffer-depth))))) | 1122 | (and (boundp 'ido-completing-read) |
| 1123 | (or (featurep 'xemacs) | ||
| 1124 | (= ido-use-mycompletion-depth (minibuffer-depth)))))) | ||
| 1123 | 1125 | ||
| 1124 | (defvar ido-trace-enable nil) | 1126 | (defvar ido-trace-enable nil) |
| 1125 | 1127 | ||
| @@ -4121,7 +4123,7 @@ For details of keybindings, do `\\[describe-function] ido-find-file'." | |||
| 4121 | (ido-trace "\n*merge timeout*" buffer) | 4123 | (ido-trace "\n*merge timeout*" buffer) |
| 4122 | (setq ido-auto-merge-timer nil) | 4124 | (setq ido-auto-merge-timer nil) |
| 4123 | (when (and (buffer-live-p buffer) | 4125 | (when (and (buffer-live-p buffer) |
| 4124 | (= ido-use-mycompletion-depth (minibuffer-depth)) | 4126 | (ido-active) |
| 4125 | (boundp 'ido-eoinput) ido-eoinput) | 4127 | (boundp 'ido-eoinput) ido-eoinput) |
| 4126 | (let ((contents (buffer-substring-no-properties (minibuffer-prompt-end) ido-eoinput))) | 4128 | (let ((contents (buffer-substring-no-properties (minibuffer-prompt-end) ido-eoinput))) |
| 4127 | (ido-trace "request merge") | 4129 | (ido-trace "request merge") |
| @@ -4141,7 +4143,7 @@ For details of keybindings, do `\\[describe-function] ido-find-file'." | |||
| 4141 | ;; 1. It prints a default file name when there is no text yet entered. | 4143 | ;; 1. It prints a default file name when there is no text yet entered. |
| 4142 | ;; 2. It calls my completion routine rather than the standard completion. | 4144 | ;; 2. It calls my completion routine rather than the standard completion. |
| 4143 | 4145 | ||
| 4144 | (when (= ido-use-mycompletion-depth (minibuffer-depth)) | 4146 | (when (ido-active) |
| 4145 | (let ((contents (buffer-substring-no-properties (minibuffer-prompt-end) (point-max))) | 4147 | (let ((contents (buffer-substring-no-properties (minibuffer-prompt-end) (point-max))) |
| 4146 | (buffer-undo-list t) | 4148 | (buffer-undo-list t) |
| 4147 | try-single-dir-match | 4149 | try-single-dir-match |
| @@ -4444,9 +4446,7 @@ For details of keybindings, do `\\[describe-function] ido-find-file'." | |||
| 4444 | (defun ido-minibuffer-setup () | 4446 | (defun ido-minibuffer-setup () |
| 4445 | "Minibuffer setup hook for `ido'." | 4447 | "Minibuffer setup hook for `ido'." |
| 4446 | ;; Copied from `icomplete-minibuffer-setup-hook'. | 4448 | ;; Copied from `icomplete-minibuffer-setup-hook'. |
| 4447 | (when (and (boundp 'ido-completing-read) | 4449 | (when (ido-active) |
| 4448 | (or (featurep 'xemacs) | ||
| 4449 | (= ido-use-mycompletion-depth (minibuffer-depth)))) | ||
| 4450 | (add-hook 'pre-command-hook 'ido-tidy nil t) | 4450 | (add-hook 'pre-command-hook 'ido-tidy nil t) |
| 4451 | (add-hook 'post-command-hook 'ido-exhibit nil t) | 4451 | (add-hook 'post-command-hook 'ido-exhibit nil t) |
| 4452 | (setq cua-inhibit-cua-keys t) | 4452 | (setq cua-inhibit-cua-keys t) |
| @@ -4465,8 +4465,7 @@ For details of keybindings, do `\\[describe-function] ido-find-file'." | |||
| 4465 | (cancel-timer ido-auto-merge-timer) | 4465 | (cancel-timer ido-auto-merge-timer) |
| 4466 | (setq ido-auto-merge-timer nil)) | 4466 | (setq ido-auto-merge-timer nil)) |
| 4467 | 4467 | ||
| 4468 | (if (and (boundp 'ido-use-mycompletion-depth) | 4468 | (if (ido-active) |
| 4469 | (= ido-use-mycompletion-depth (minibuffer-depth))) | ||
| 4470 | (if (and (boundp 'ido-eoinput) | 4469 | (if (and (boundp 'ido-eoinput) |
| 4471 | ido-eoinput) | 4470 | ido-eoinput) |
| 4472 | 4471 | ||