1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00
Commit Graph

43 Commits

Author SHA1 Message Date
Kim F. Storm
cb65c373de (ido-max-directory-size): New defcustom.
(ido-decorations): Add "too big" element.
(ido-directory-too-big): New dynamic var.
(ido-may-cache-directory): Don't cache big directories.
(ido-directory-too-big-p): New defun.
(ido-set-current-directory): Update ido-directory-too-big.
(ido-read-internal): Make empty ido-cur-item if too-big.
(ido-buffer-internal): Use ido-read-internal directly instead of
ido-read-buffer.
(ido-file-internal): Init ido-directory-too-big.
(ido-complete): <TAB> If ido-directory-too-big is set, clear it,
and redo completion with full list.
(ido-toggle-ignore): <C-a> If ido-directory-too-big is set, clear
it, and show completions.
(ido-all-completions): Let bind ido-directory-too-big to nil.
(ido-exhibit): Handle ido-directory-too-big.
(ido-read-buffer): Handle fallback to read-buffer.  Init
ido-directory-too-big.
(ido-read-file-name, ido-read-directory-name, ido-completing-read):
Init ido-directory-too-big.
2004-09-24 23:48:48 +00:00
Kim F. Storm
db9f395b92 (ido-choice-list): New dynamic var for `list' context.
(ido-context-switch-command): New dynamic var.
(ido-define-mode-map): Generalize switch between file/buffer contexts.
(ido-read-internal): Handle new `list' context.
Handle insert-buffer and insert-file ido-exit values.
(ido-buffer-internal): New arg switch-cmd.  Use it to setup
ido-context-switch-command. Handle insert-file ido-exit value.
(ido-read-buffer): Set ido-context-switch-command to 'ignore
unless it is already bound by caller.
(ido-file-internal): New arg switch-cmd.  Use it to setup
ido-context-switch-command.  Handle insert-buffer ido-exit value.
(ido-enter-insert-buffer, ido-enter-insert-file): New commands
used for context switching.
(ido-all-completions): Handle new `list' context.
(ido-make-choice-list): Return choices for `list' context.
(ido-find-file-in-dir, ido-display-file, ido-write-file)
(ido-display-buffer, ido-kill-buffer): Disable context switching.
(ido-insert-buffer, ido-insert-file): Setup context switching.
(ido-exhibit): Handle `list' context.
(ido-read-file-name): Disable context switching.  Handle fallback.
(ido-read-directory-name): Disable context switching.
(ido-completing-read): New defun like completing-read.  Setup and
use new `list' context.
2004-09-22 22:49:07 +00:00
Kim F. Storm
6d8b6cbde4 (ido-enable-dot-prefix): Doc fix.
(ido-enable-dot-prefix): New defcustom.
(ido-set-matches1): Use it.
2004-09-11 21:43:42 +00:00
David Kastrup
90a02640b4 Update AUCTeX information. 2004-08-22 10:58:41 +00:00
Kim F. Storm
0b3c2fe469 Update copyright and commentary. 2004-05-04 13:33:20 +00:00
Kim F. Storm
84263efb62 (ido-read-file-name): If command has ido property, don't use ido
if value is ignore, or read as directory if value is dir.
Set ido ignore property for dired-do-rename command.
2004-05-04 13:27:02 +00:00
Kim F. Storm
3f2b52ad64 (ido-read-internal): Fix call to read-file-name for edit.
Must expand directory for completion to work; and don't mess with
process-environment.
2004-05-04 13:05:19 +00:00
Kim F. Storm
d81aa76a11 (ido-confirm-unique-completion): New defcustom.
(ido-complete): Use it.
(ido-write-file): Set it to t unconditionally.
2004-04-10 21:41:06 +00:00
Kim F. Storm
866f22396f (ido-nonreadable-directory-p): New defun to check for
nonreadable directory without activating tramp to avoid problems
with checking incomplete tramp paths.
(ido-set-current-directory, ido-file-internal)
(ido-file-name-all-completions1): Use it.
2003-12-31 00:00:12 +00:00
Kim F. Storm
a70343bdfd Handle non-readable directories.
(ido-decorations): Add 9th element for non-readable directory.
(ido-directory-nonreadable): New dynamic var.
(ido-set-current-directory): Set it.
(ido-read-buffer, ido-file-internal):
(ido-read-file-name, ido-read-directory-name): Let-bind it.
(ido-file-name-all-completions1): Return empty list for
non-readable directory.
(ido-exhibit): Print [Not readable] if directory is not readable.
(ido-expand-directory): New defun (based on tiny fix from Karl Chen).
(ido-read-file-name, ido-file-internal, ido-read-directory-name):
Use it.
2003-12-27 21:56:51 +00:00
Kim F. Storm
310682e6eb * ido.el (ido-use-filename-at-point, ido-use-url-at-point):
New defcustoms to add ffap-like functionality to ido.
(ido-saved-vc-hb): Rename from ido-saved-vc-mt.  Uses changed.
(ido-no-final-slash): New defun.
(ido-make-prompt, ido-file-internal, ido-toggle-vc)
(ido-read-file-name): ): Toggle VC checking via
vc-handled-backends instead of vc-master-templates.
(ido-file-internal): Handle ido-use-url-at-point and
ido-use-filename-at-point via code borrowed from ffap-guesser.
Handle new ido-exit code ffap.
(ido-sort-list): Ignore final slash when sorting file names.
2003-11-25 22:10:21 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Kim F. Storm
b0df3884b1 (ido-mode): Remove unused NOBIND arg. Fix doc string accordingly.
(ido-define-mode-map): Bind C-l for both file and dir modes.
(ido-wide-find-file, ido-wide-find-dir, ido-make-directory):
Let-bind enable-recursive-minibuffers to t around read-string.
2003-03-22 01:21:09 +00:00
Kim F. Storm
9f781d7e1b (ido-define-mode-map):
Undo last change (duplicates part of 2003-02-04 change).
Remap `viper' delete commands only in file or dir mode.
2003-02-05 22:04:02 +00:00
Kai Großjohann
e37344094a (ido-define-mode-map): Interact with Viper. From Kim F
Storm.
2003-02-05 20:12:56 +00:00
Juanma Barranquero
71296446d3 Trailing whitespace deleted. 2003-02-04 11:26:42 +00:00
Kim F. Storm
f0a73ccce1 (ido-define-mode-map): Remap viper delete char/word
commands to their ido specific equivalents.  Disable ESC in
viper mode (to avoid exiting insert mode), since ido doesn't
work in viper command mode.
(ido-delete-backward-updir, ido-delete-backward-word-updir):
Handle remapped viper commands.
2003-02-03 22:33:13 +00:00
Richard M. Stallman
337d2b6676 Many doc fixes.
(ido-complete): Fix message.
2003-01-25 19:42:15 +00:00
Kim F. Storm
c4d9ba398e Update copyright. 2003-01-24 12:07:09 +00:00
Kim F. Storm
4d80e3ae6d (ido-make-file-list, ido-make-dir-list): Don't move
visited directories to end of list; it's the wrong thing to do if
we want to find a file or directory in such directories.
2003-01-21 22:13:23 +00:00
Kim F. Storm
84f6c6d05e (ido-read-internal, ido-file-internal)
(ido-copy-current-file-name, ido-wide-find-dirs-or-files):
Don't use `path' as name of local variables holding a file name.
2003-01-14 21:31:47 +00:00
Kim F. Storm
1b69d8e271 Remove final period from error message. 2003-01-14 21:12:20 +00:00
Kim F. Storm
a42e9704f2 Rename ido-max-prompt-width to ido-max-file-prompt-width for consistency. 2003-01-13 23:05:51 +00:00
Kim F. Storm
362cdb6189 (ido-ignore-directories-merge): Doc fix.
(ido-max-prompt-width): Renamed from ido-max-prompt-path.
(ido-enable-last-directory-history): Doc fix.
(ido-work-directory-list-ignore-regexps): Doc fix.
(ido-enable-tramp-completion): Doc fix.
(ido-record-ftp-work-directories): Doc fix.
(ido-merge-ftp-work-directories): Doc fix.
(ido-rewrite-file-prompt-functions): Renamed from
ido-make-file-prompt-hook.  Directory name is now in dynamic
variable `dirname' (instead of `path').
(ido-rewrite-file-prompt-rules): Renamed from
ido-rewrite-prompt-path-rules.
(ido-read-file-name-as-directory-commands): Doc fix.
(ido-last-directory-list): Doc fix.
(ido-work-directory-list): Doc fix.
(ido-work-file-list): Doc fix.
(ido-make-prompt): Directory name now in `dirname' var.
(ido-edit-input): Doc fix.
(ido-complete): Fix error message.
(ido-copy-current-word): Doc fix.
(ido-find-file): Doc fix.
2003-01-13 22:56:53 +00:00
Kim F. Storm
bad111c2d4 (ido-enable-tramp-completion): New defcustom.
(ido-enter-single-matching-directory): Change default to 'slash.
(ido-is-tramp-root): New defun.
(ido-is-root-directory, ido-is-ftp-directory, ido-is-slow-ftp-host)
(ido-may-cache-directory, ido-final-slash, ido-read-internal)
(ido-complete, ido-make-file-list1, ido-make-dir-list1):
Handle tramp completion.
(ido-file-name-all-completions1): New defun for tramp completion.
(ido-file-name-all-completions): Use it.
(ido-set-matches1): Relax matching of text with trailing slash.
(ido-exhibit): Handle tramp completion.
Simplified code using nested cond forms using new `refresh' var.
Fixed handling of /~user/ paths.
2003-01-12 22:27:17 +00:00
Kim F. Storm
93ec302e30 (ido-read-file-name): Removed debug message. 2002-12-16 12:05:37 +00:00
Kim F. Storm
1518d6e35b (ido-xemacs): Remove defvar. All uses changed to
check (featurep 'xemacs) instead.
(ido-visit-buffer): Use select-frame-set-input-focus
unconditionally.
2002-11-27 23:13:27 +00:00
Kim F. Storm
6968582fe0 (ido-read-file-name): Removed leftover debug message "gotit". 2002-11-01 09:18:40 +00:00
Kim F. Storm
81173429ea (ido-wide-find-dirs-or-files): Fixed problem that caused
incomplete list of matches to be returned.
2002-10-29 14:14:56 +00:00
Kim F. Storm
d1a0acacb3 (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.
2002-10-27 21:31:19 +00:00
Kim F. Storm
08bfde76b7 (ido-restrict-to-matches): New command.
(ido-define-mode-map): Bind it to C-SPC and C-@ in ido-mode-map.
2002-10-22 22:27:50 +00:00
Kim F. Storm
69beb26d2f (ido-ignore-item-temp-list): New variable.
(ido-read-internal): Don't set ido-default-item if the default is
member of ido-ignore-item-temp-list.
Don't return first match for C-j if no text is entered.
(ido-buffer-internal): Check for empty string return.
(ido-make-buffer-list1): Use member instead of memq.
(ido-window-buffer-p): Likewise.
(ido-get-bufname): Ignore buffers on ido-ignore-item-temp-list.
(ido-ignore-item-p): Ignore items on ido-ignore-item-temp-list.
2002-09-02 10:40:56 +00:00
Markus Rost
610a4f6486 (ido-separator): Fix type. 2002-07-23 02:26:56 +00:00
Richard M. Stallman
0fe826e987 Comment change. 2002-07-12 23:25:26 +00:00
Kim F. Storm
e20b31732a (ido-make-merged-file-list): Fix last change again. 2002-07-10 11:08:01 +00:00
Juanma Barranquero
df31d96b4d (ido-enter-single-matching-directory): Delete leftover comment. 2002-07-10 08:18:31 +00:00
Kim F. Storm
4e85a73353 (ido-make-merged-file-list): Fix last change. 2002-07-09 09:08:18 +00:00
Kim F. Storm
9a08196a0b (ido-make-merged-file-list): Move fully matching item to head of list. 2002-07-08 22:22:12 +00:00
Kim F. Storm
9066a4d070 (ido-find-common-substring): Return substring instead of t. 2002-07-08 22:03:02 +00:00
Kim F. Storm
030fa15b8f (ido-set-matches1): Use regexp-quote instead of identity.
(ido-complete-space): New function.
(ido-define-mode-map): Bind it to SPACE.
2002-07-07 23:02:54 +00:00
Kim F. Storm
6c1bc24638 Changed xemacs specific code to avoid byte compiler warning in GNU
emacs.
2002-07-07 21:16:23 +00:00
Juanma Barranquero
319a586a30 (ido-minibuffer-setup-hook): Doc fix. 2002-07-01 16:11:39 +00:00
Kim F. Storm
789d1bf0f0 New file. 2002-06-27 22:39:10 +00:00