Commit graph

199 commits

Author SHA1 Message Date
Kim F. Storm
f1d0c70d70 (ido-file-internal): Pass full file name to write-file. 2006-06-07 22:45:27 +00:00
Kim F. Storm
2490c7406c (ido-copy-current-file-name): Repeating C-w inserts whole file name. 2006-06-07 22:25:55 +00:00
Kim F. Storm
a3f4d4d43c (ido-take-first-match, ido-push-dir-first): New commands.
(ido-init-completion-maps): Bind them to M-SPC and M-v.
2006-06-07 22:05:05 +00:00
Kim F. Storm
a11ad595d4 (ido-default-file-method, ido-default-buffer-method):
Make choice values consistent with corresponding command names.
(ido-visit-buffer): Update accordingly.  Default to selected-window.
2006-06-05 22:22:41 +00:00
Kim F. Storm
fcbc95a904 (ido-read-file-name): Bind ido-show-dot-for-dired to nil
if default-filename is specified.
2006-05-20 22:33:54 +00:00
Kim F. Storm
2d38f869f6 (ido-read-internal): Use only nondirectory part of default item. 2006-05-17 21:25:59 +00:00
Kim F. Storm
b97f1994c4 (ido-mode): Remove ido-ignore-unc-host-regexps from the :set-after list.
(ido-downcase-unc-hosts): New user option.  Default on.
(ido-ignore-unc-host-regexps): Don't reset ido-unc-hosts-cache
when it is set, as regexps are now applied on the fly.
(ido-unc-hosts): Keep all known hosts in ido-unc-hosts-cache.
Make C-a DTRT--filter hosts through ido-ignore-unc-host-regexps
on the fly, but only when ido-process-ignore-lists is set.
Do case insensitive filtering if ido-downcase-unc-hosts is set.
Only downcase names if ido-downcase-unc-hosts is set.
2006-04-06 10:35:22 +00:00
Juanma Barranquero
d36995c61a (ido-unc-hosts-cache): Fix typo in docstring. 2006-04-06 08:47:07 +00:00
Kim F. Storm
1b00bc649c (ido-mode): Set after ido-unc-hosts and ido-ignore-unc-host-regexps.
(ido-save-history): Save ido-unc-hosts-cache.
(ido-load-history): Load ido-unc-hosts-cache.
(ido-reread-directory): Refresh unc hosts cache in // dir.
2006-04-05 14:17:08 +00:00
Kim F. Storm
4c2ee078aa (ido-unc-hosts-cache): New defvar.
(ido-unc-hosts): If value of defcustom is a function, call it to
get list of UNC hosts.  Add function-item choices to specify
ido-unc-hosts-net-view or user function.
(ido-ignore-unc-host-regexps): New defcustom.
(ido-unc-hosts-net-view, ido-unc-hosts): New functions.
(ido-is-unc-root, ido-is-unc-host, ido-file-name-all-completions)
(ido-exhibit): Call ido-unc-hosts to get list of UNC hosts.
2006-03-31 23:47:02 +00:00
Juanma Barranquero
a2cf021231 (ido-report-no-match, ido-switch-buffer,
ido-read-file-name-as-directory-commands): Fix typos in docstrings.
2006-03-31 16:03:46 +00:00
Juanma Barranquero
3903655d82 (ido-cache-unc-host-shares-time, ido-max-work-file-list, ido-switch-buffer):
Fix typos in docstrings.
2006-03-31 11:46:44 +00:00
Kim F. Storm
dfebc0ae14 (ido-cache-ftp-work-directory-time): Doc fix.
(ido-unc-hosts): New user option to explicitly define list of know
UNC-style hosts for completion.
(ido-cache-unc-host-shares-time): New user option.
(ido-is-unc-root, ido-is-unc-host, ido-cache-unc-valid): New
helper functions for UNC file-name support.
(ido-may-cache-directory): Check for UNC host.  Simplify.
(ido-wash-history): Clean out old UNC hosts.
(ido-nonreadable-directory-p): UNC hosts are always readable.
(ido-directory-too-big-p): UNC hosts are never too big.
(ido-set-current-directory): Handle UNC root path.
(ido-file-name-all-completions): Complete UNC host names from
ido-unc-hosts list.  Cache UNC host shares.
(ido-make-file-list-1): Don't filter UNC root.
(ido-exhibit): Check for // in root directory, and switch to UNC
mode by setting ido-current-directory to //.
2006-03-18 01:48:52 +00:00
Kim F. Storm
6c2a568a1b (ido-edit-input): Use selected match, if any. 2006-03-16 22:23:22 +00:00
Kim F. Storm
782ea71aba (ido-save-history, ido-load-history): Simplify. Don't
use find-file-noselect to avoid interference from other modes.
2006-02-26 00:48:27 +00:00
Kim F. Storm
2d13e5880d (ido-buffer-internal): Set mark for ido-insert-buffer.
Don't use insert-buffer; do insert-buffer-substring directly.
(ido-file-internal): Set mark for ido-insert-file. Use insert-file-1.
2006-02-11 20:30:49 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Kim F. Storm
04c9514757 Move Acknowledgements and History after Commentary.
Minor changes to Commentary.
2005-12-08 16:23:03 +00:00
Kim F. Storm
facf67fd3c (ido-completion-map): Renamed from ido-mode-map.
(ido-common-completion-map, ido-file-completion-map)
(ido-file-dir-completion-map, ido-buffer-completion-map):
Renamed from ido-mode-....-map.
(ido-init-completion-maps): Renamed from ido-init-mode-maps.
(ido-setup-completion-map): Renamed from ido-define-mode-map.
(ido-read-internal): Bind minibuffer-local-filename-completion-map
to ido-completion-map.
2005-12-07 09:22:53 +00:00
Kim F. Storm
973495ca25 (ido-mode-map): Doc fix.
(ido-mode-common-map, ido-mode-file-map)
(ido-mode-file-dir-map, ido-mode-buffer-map): New keymaps.
(ido-define-mode-map): Rewrite.  Select one of the new maps as
parent for ido-mode-map instead of building from scratch.
(ido-init-mode-maps): New defun to initialize new maps.
(ido-mode): Call it.
(ido-switch-buffer): Doc fix -- use \<ido-mode-buffer-map>.
(ido-find-file): Doc fix -- use \<ido-mode-file-map>.
2005-11-26 19:25:36 +00:00
Kim F. Storm
c577a4d245 (ido-is-tramp-root): Simplify regexp matching tramp root.
(ido-set-current-directory): Don't add / after final @.
(ido-file-name-all-completions-1): Adapt to fixed tramp completion.
Explicitly handle ange-ftp completion oddities.
(ido-make-file-list): Don't rotate list at tramp root to avoid
triggering tramp file handler for expand-file-name via get-file-buffer.
2005-10-19 22:21:18 +00:00
Kim F. Storm
64fb500aac (ido-mode): Use custom-initialize-set. 2005-10-03 16:45:35 +00:00
Romain Francoise
ce5a3ac01e 2005-09-25 Romain Francoise <romain@orebokech.com>
* dired-aux.el (dired-copy-file-recursive):
	* dired.el (dired-delete-file):
	* ediff-mult.el (ediff-dir-diff-copy-file):
	* ediff-util.el (ediff-test-save-region):
	* forms.el (forms-mode):
	* ido.el (ido-file-internal, ido-delete-file-at-head):
	* log-edit.el (log-edit-done):
	* ses.el (ses-yank-resize):
	* play/gomoku.el (gomoku-human-plays, gomoku)
	(gomoku-human-resigns, gomoku-prompt-for-other-game)
	(gomoku-offer-a-draw):
	* play/landmark.el (lm-human-resigns, lm):
	* net/eudcb-ldap.el (eudc-ldap-check-base):
	* play/mpuz.el (mpuz-offer-abort, mpuz-try-letter, mpuz-close-game):
	* progmodes/ebrowse.el (ebrowse-find-pattern):
	* progmodes/idlw-shell.el (idlwave-shell-set-bp-check):
	* textmodes/reftex-index.el (reftex-index-initialize-phrases-buffer):
	End `yes-or-no-p' and `y-or-n-p' prompts with question mark and
	space.

	* vc.el (vc-delete-file):
	* play/gomoku.el (gomoku-terminate-game, gomoku)
	(gomoku-prompt-for-move, gomoku-human-takes-back):
	* play/landmark.el (lm-human-takes-back, lm-prompt-for-move)
	(lm-start-robot, lm-human-plays): Remove extraneous spaces in
	messages.
2005-09-24 23:26:28 +00:00
Juanma Barranquero
b2ddf2d264 (cua-inhibit-cua-keys): Add defvar. 2005-08-31 13:50:14 +00:00
Kim F. Storm
d6049c7884 (ido-ignore-item-p): Use save-match-data.
Bind case-fold-search to ido-case-fold locally.
2005-08-21 21:26:07 +00:00
Kim F. Storm
9d144e95df (ido-everywhere): Fix defcustom :set function to disable
rather than toggle mode when custom value is nil.
(ido-everywhere): Fix defun doc string.
2005-08-18 09:29:48 +00:00
Kim F. Storm
5702da696e (ido-enter-matching-directory): Rename from
ido-enter-single-matching-directory.  Change 'slash choice to
'only. 	Add 'first choice.
(ido-exhibit): Adapt to above changes.
2005-08-17 11:17:41 +00:00
Kim F. Storm
edc42f569e (ido-buffer-internal): Use with-no-warnings.
(ido-make-merged-file-list): Use while-no-input.
2005-08-15 12:29:54 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Kim F. Storm
76ce3ae6eb (dired-other-window): Put ido property on dired-other-window. 2005-07-17 00:32:57 +00:00
Kim F. Storm
83a12f3a55 (ido-file-internal, ido-read-file-name, ido-read-directory-name):
Let bind minibuffer-completing-file-name to t.
2005-07-15 13:09:03 +00:00
Kim F. Storm
f2801d2a99 Fix commentary. 2005-07-15 12:53:17 +00:00
Kim F. Storm
bf67f27b0c (ido-define-mode-map): Move ido-next-work-file to C-M-o.
Use with-no-warnings around ffap-guesser.
2005-07-15 09:19:53 +00:00
Kim F. Storm
3c88bdc560 * ido.el (ido-use-filename-at-point): New choice `guess'.
(ido-file-internal): Try ffap-guesser if selected.
2005-07-08 10:07:39 +00:00
Kim F. Storm
b2d4c118dd (ido-before-fallback-functions): New hook.
(ido-buffer-internal, ido-file-internal, ido-read-buffer)
(ido-read-file-name): Run it.
2005-07-08 09:44:47 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Kim F. Storm
665ed61ac2 2005-06-15 Matt Hodges <MPHodges@member.fsf.org>
* ido.el (ido-incomplete-regexp): New variable.
	(ido-set-matches-1): Handle invalid-regexp error and set
	ido-incomplete-regexp.
	(ido-incomplete-regexp): New face.
	(ido-completions): Use it.
	(ido-complete, ido-exit-minibuffer, ido-completions): Handle
	incomplete regexps.
	(ido-completions): Add check for complete match when entering a
	regexp.
2005-06-15 22:44:09 +00:00
Kim F. Storm
1939ac922f (ido-mode): Make a new keymap every time we enable ido,
as the coverage buffer/file/both may change.
2005-06-14 15:32:41 +00:00
Juanma Barranquero
616e8e5f5e (ido-mode, ido-file-extensions-order, ido-default-file-method,
ido-default-buffer-method, ido-max-prospects, ido-slow-ftp-hosts,
ido-setup-hook, ido-decorations,
ido-read-file-name-as-directory-commands,
ido-read-file-name-non-ido, ido-work-directory-list,
ido-ignore-item-temp-list, ido-current-directory,
ido-magic-forward-char, ido-enter-find-file,
ido-enter-switch-buffer, ido-visit-buffer, ido-switch-buffer,
ido-find-file, ido-read-buffer): Fix typos in docstrings.
2005-06-10 11:05:52 +00:00
Kim F. Storm
89a28f0b24 (ido-read-file-name): Fallback to read-file-name on C-f
also when reading directory name.
2005-06-08 12:00:46 +00:00
Kim F. Storm
ccba8bb6e2 (ido-first-match, ido-only-match, ido-subdir)
(ido-indicator): Remove -face suffix from face names.
2005-06-06 12:48:02 +00:00
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