diff options
| author | Richard M. Stallman | 2003-01-25 19:42:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-01-25 19:42:15 +0000 |
| commit | 337d2b6676c6292de515ee72fe4fcbe20c57ef39 (patch) | |
| tree | 646efcf8a90b7f3b84e3bcffde9794d30f1736e0 | |
| parent | 5f23d8367c525c804c92d0812322859d58de7e5c (diff) | |
| download | emacs-337d2b6676c6292de515ee72fe4fcbe20c57ef39.tar.gz emacs-337d2b6676c6292de515ee72fe4fcbe20c57ef39.zip | |
Many doc fixes.
(ido-complete): Fix message.
| -rw-r--r-- | lisp/ido.el | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 608386bfb68..cef907be3b4 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -344,11 +344,11 @@ | |||
| 344 | (defcustom ido-mode nil | 344 | (defcustom ido-mode nil |
| 345 | "Determines for which functional group \(buffer and files) ido behavior | 345 | "Determines for which functional group \(buffer and files) ido behavior |
| 346 | should be enabled. The following values are possible: | 346 | should be enabled. The following values are possible: |
| 347 | - 'buffer: Turn only on ido buffer behavior \(switching, killing, | 347 | - `buffer': Turn only on ido buffer behavior \(switching, killing, |
| 348 | displaying...) | 348 | displaying...) |
| 349 | - 'file: Turn only on ido file behavior \(finding, writing, inserting...) | 349 | - `file': Turn only on ido file behavior \(finding, writing, inserting...) |
| 350 | - 'both: Turn on ido buffer and file behavior. | 350 | - `both': Turn on ido buffer and file behavior. |
| 351 | - nil: Turn off any ido switching. | 351 | - `nil': Turn off any ido switching. |
| 352 | 352 | ||
| 353 | Setting this variable directly does not take effect; | 353 | Setting this variable directly does not take effect; |
| 354 | use either \\[customize] or the function `ido-mode'." | 354 | use either \\[customize] or the function `ido-mode'." |
| @@ -560,12 +560,12 @@ A tramp file name uses the following syntax: /method:user@host:filename." | |||
| 560 | :group 'ido) | 560 | :group 'ido) |
| 561 | 561 | ||
| 562 | (defcustom ido-record-ftp-work-directories t | 562 | (defcustom ido-record-ftp-work-directories t |
| 563 | "*Non-nil means that remote directories are recorded in work directory list." | 563 | "*Non-nil means record ftp file names in the work directory list." |
| 564 | :type 'boolean | 564 | :type 'boolean |
| 565 | :group 'ido) | 565 | :group 'ido) |
| 566 | 566 | ||
| 567 | (defcustom ido-merge-ftp-work-directories nil | 567 | (defcustom ido-merge-ftp-work-directories nil |
| 568 | "*Nil means that remote directories in work directory list are ignored during merge." | 568 | "*If nil means merging ignores ftp file names in the work directory list." |
| 569 | :type 'boolean | 569 | :type 'boolean |
| 570 | :group 'ido) | 570 | :group 'ido) |
| 571 | 571 | ||
| @@ -739,15 +739,17 @@ Each function on the list may modify the dynamically bound variable | |||
| 739 | "*List of functions to run when the find-file prompt is created. | 739 | "*List of functions to run when the find-file prompt is created. |
| 740 | Each function on the list may modify the following dynamically bound | 740 | Each function on the list may modify the following dynamically bound |
| 741 | variables: | 741 | variables: |
| 742 | dirname - the (abbreviated) directory name to be modified by the hook functions | 742 | dirname - the (abbreviated) directory name |
| 743 | max-width - the max width of the resulting dirname; set to nil to inhibit truncation | 743 | to be modified by the hook functions |
| 744 | prompt - the basic prompt (e.g. \"Find File: \") | 744 | max-width - the max width of the resulting dirname; nil means no limit |
| 745 | literal - the string shown if doing `literal' find; set to nil to omit | 745 | prompt - the basic prompt (e.g. \"Find File: \") |
| 746 | vc-off - the string shown if version control is inhibited; set to nit to omit | 746 | literal - the string shown if doing \"literal\" find; set to nil to omit |
| 747 | prefix - normally nil, but may be set to a fixed prefix for the dirname | 747 | vc-off - the string shown if version control is inhibited; set to nit to omit |
| 748 | prefix - either nil or a fixed prefix for the dirname | ||
| 749 | |||
| 748 | The following variables are available, but should not be changed: | 750 | The following variables are available, but should not be changed: |
| 749 | ido-current-directory - the unabbreviated directory name | 751 | ido-current-directory - the unabbreviated directory name |
| 750 | item - equals 'file or 'dir depending on the current mode." | 752 | item - equals `file' or `dir' depending on the current mode." |
| 751 | :type 'hook | 753 | :type 'hook |
| 752 | :group 'ido) | 754 | :group 'ido) |
| 753 | 755 | ||
| @@ -841,12 +843,13 @@ file is opened with ido-find-file and family.") | |||
| 841 | 843 | ||
| 842 | (defvar ido-work-file-list nil | 844 | (defvar ido-work-file-list nil |
| 843 | "List of actual work file names. | 845 | "List of actual work file names. |
| 844 | The current file name (sans directory) is inserted at the front of this list | 846 | Opening a file with `ido-find-file' and similar functions |
| 845 | whenever a file is opened with ido-find-file and family.") | 847 | inserts the current file name (relative to its containing directory) |
| 848 | at the front of this list.") | ||
| 846 | 849 | ||
| 847 | (defvar ido-dir-file-cache nil | 850 | (defvar ido-dir-file-cache nil |
| 848 | "List of file-name-all-completions results. | 851 | "List of `file-name-all-completions' results. |
| 849 | Each element in the list is of the form (dir (mtime) file...).") | 852 | Each element in the list is of the form (DIR (MTIME) FILE...).") |
| 850 | 853 | ||
| 851 | (defvar ido-ignore-item-temp-list nil | 854 | (defvar ido-ignore-item-temp-list nil |
| 852 | "List of items to ignore in current ido invocation. | 855 | "List of items to ignore in current ido invocation. |
| @@ -1958,7 +1961,7 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 1958 | (string-match "[$]" ido-text)) | 1961 | (string-match "[$]" ido-text)) |
| 1959 | (let ((evar (substitute-in-file-name (concat ido-current-directory ido-text)))) | 1962 | (let ((evar (substitute-in-file-name (concat ido-current-directory ido-text)))) |
| 1960 | (if (not (file-exists-p (file-name-directory evar))) | 1963 | (if (not (file-exists-p (file-name-directory evar))) |
| 1961 | (message "Expansion generates non-existing directory") | 1964 | (message "Expansion generates non-existing directory name") |
| 1962 | (if (file-directory-p evar) | 1965 | (if (file-directory-p evar) |
| 1963 | (ido-set-current-directory evar) | 1966 | (ido-set-current-directory evar) |
| 1964 | (let ((d (or (file-name-directory evar) "/")) | 1967 | (let ((d (or (file-name-directory evar) "/")) |