1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00
Commit Graph

58 Commits

Author SHA1 Message Date
Kim F. Storm
ec441ab583 (ido-make-merged-file-list-1): New defun split from
ido-make-merged-file-list.
(ido-make-merged-file-list): Bind throw-on-input around call to
ido-make-merged-file-list-1.  Return input-pending-p if
interrupted by more input available.
(ido-read-internal): Handle input-pending-p return value from
ido-make-merged-file-list.
2005-06-03 23:21:58 +00:00
Kim F. Storm
cc2691b7ee (ido-magic-forward-char): Enter ido-find-file at end of input.
(ido-magic-backward-char): Enter ido-switch-buffer at start of input.
2005-05-19 21:08:14 +00:00
Kim F. Storm
ae9d279d44 (ido-magic-forward-char, ido-magic-backward-char)
(ido-magic-delete-char): New commands for C-f, C-b, C-d.
(ido-wide-find-dir-or-delete-dir): New command for M-d.
(ido-define-mode-map): Bind them.  Add C-x prefix to fallback commands.
(ido-read-file-name): Handle commands with ido property value
equal to find-file as reading a file name, to allow C-d to enter dired.
(ibuffer-find-file): Add ido property with value find-file.
2005-05-15 23:03:36 +00:00
Kim F. Storm
3729cc8734 (ido-setup-hook): New hook.
(ido-define-mode-map-hook): Remove hook; use ido-setup-hook instead.
(ido-input-stack): New var.
(ido-define-mode-map): Bind M-b to ido-push-dir. Move old
ido-next-work-file binding to M-O.
Bind M-f to ido-wide-find-file-or-pop-dir.
(ido-define-mode-map): Don't run ido-define-mode-map-hook.
(ido-read-internal): Run ido-setup-hook.
Catch quit in read-file-name and read-string to cancel edit.
Handle new push, pop, and pop-all exit codes (for M-b/M-f).
Automatically pop-all when completing a directory name (RET).
(ido-file-internal): Add with-no-warnings around ffap and dired code.
(ido-exit-minibuffer): Use exit-minibuffer instead of throw.
(ido-wide-find-file, ido-wide-find-dir): Catch quit to cancel find.
(ido-push-dir, ido-pop-dir, ido-wide-find-file-or-pop-dir): New
functions for M-b/M-f to move among the directory components.
(ido-make-merged-file-list): Catch quit to cancel merge.
(ido-make-dir-list): Delete "." when ido-input-stack is non-empty.
(ido-completion-help): No warnings for ido-completion-buffer-full.
2005-05-05 22:15:58 +00:00
Kim F. Storm
1aeb255d5f Fix emacs version in commentary. 2005-05-03 14:29:11 +00:00
Kim F. Storm
d6810a2d5d (ido-everywhere): Fix last change. 2005-04-28 15:09:34 +00:00
Kim F. Storm
bb7216f7eb (ido-everywhere): Save and restore old read-buffer-function
and read-file-name-function values.  Don't overwrite existing
non-nil values if ido-mode is enabled without ido-everywhere.
2005-04-24 19:09:13 +00:00
Kim F. Storm
2a5095fba0 (ido-read-internal): Fix `list' completion. 2005-04-22 15:09:48 +00:00
Dan Nicolaescu
ea81d57ec5 * mh-customize.el (mh-speedbar-selected-folder-face): Special case
high number of colors displays.

* textmodes/table.el (table-cell-face): Add special case for
displays supporting a high number of colors.
* progmodes/vhdl-mode.el (vhdl-font-lock-prompt-face)
(vhdl-font-lock-reserved-words-face)
(vhdl-speedbar-architecture-face)
(vhdl-speedbar-instantiation-face)
(vhdl-speedbar-architecture-selected-face)
(vhdl-speedbar-instantiation-selected-face): Likewise.
* progmodes/sh-script.el (sh-heredoc-face): Likewise.
* progmodes/idlw-help.el (idlwave-help-link-face): Likewise.
* progmodes/ebrowse.el (ebrowse-tree-mark-face)
(ebrowse-root-class-face, ebrowse-member-attribute-face)
(ebrowse-progress-face): Likewise.
* progmodes/compile.el (compilation-info-face): Likewise.
* progmodes/cc-fonts.el (c-invalid-face): Likewise.
* emacs-lisp/re-builder.el (reb-match-3): Likewise.
* calendar/calendar.el (diary-face): Likewise.
* woman.el (woman-italic-face, woman-bold-face)
(woman-unknown-face): Likewise.
* wid-edit.el (widget-button-pressed-face): Likewise.
* whitespace.el (whitespace-highlight-face): Likewise.
* smerge-mode.el (smerge-mine-face, smerge-base-face): Likewise.
* pcvs-info.el (cvs-marked-face): Likewise.
* info.el (info-xref): Likewise.
* ido.el (ido-subdir-face, ido-indicator-face): Likewise.
* hilit-chg.el (highlight-changes-face)
(highlight-changes-delete-face): Likewise.
* hi-lock.el (hi-yellow, hi-green, hi-blue-b, hi-green-b)
(hi-red-b): Likewise.
* generic-x.el (show-tabs-tab-face, show-tabs-space-face): Likewise.
* font-lock.el (font-lock-keyword-face)
(font-lock-function-name-face, font-lock-warning-face): Likewise.
* cus-edit.el (custom-invalid-face, custom-modified-face)
(custom-set-face, custom-changed-face, custom-variable-tag-face)
(custom-group-tag-face-1, custom-group-tag-face): Likewise.
* comint.el (comint-highlight-prompt): Likewise.
2005-04-08 14:26:13 +00:00
Kim F. Storm
94da3cf111 (ido-file-internal): Fall back to non-ido command if
initial directory is on slow ftp (or tramp) host.
2005-03-31 22:22:45 +00:00
Kim F. Storm
4260edddba (ido-fallback-command): Pass user input to fallback command. 2005-02-16 21:36:41 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Kim F. Storm
1de0ae85b3 (ido-file-extensions-order): New defcustom.
(ido-file-extension-lessp, ido-file-extension-aux)
(ido-file-extension-order): New advanced file ordering.
(ido-file-lessp): New simple file ordering.
(ido-sort-list): Remove.
(ido-make-file-list): Use ido-file-lessp or ido-file-extension-lessp.
(ido-make-dir-list, ido-completion-help): Use ido-file-lessp.
2005-02-08 23:51:31 +00:00
Kim F. Storm
b3da0db521 (ido-read-internal): Fix require-match check when
ido-directory-too-big is set.
2004-11-23 15:18:16 +00:00
Kim F. Storm
ad1432eea1 (group ido): Add :version keyword.
(ido-mode): Remove :version keyword.
2004-10-30 22:39:27 +00:00
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