aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXue Fuqiao2013-07-24 16:00:36 +0800
committerXue Fuqiao2013-07-24 16:00:36 +0800
commit0e55c076ae7e22b1fecd6bbfca1356d5b2a9223e (patch)
tree2a33704c151e1e715ad08ca40683c558a3be7ddf
parent73600831f34b22ea82c02b2f2005c1ab6004f39c (diff)
downloademacs-0e55c076ae7e22b1fecd6bbfca1356d5b2a9223e.tar.gz
emacs-0e55c076ae7e22b1fecd6bbfca1356d5b2a9223e.zip
* lisp/ido.el: Doc fix.
* lisp/ido.el (ido-fractionp): (ido-cache-ftp-work-directory-time, ido-max-prospects, ido-mode) (ido-max-file-prompt-width, ido-unc-hosts-cache) (ido-max-directory-size, ido-max-dir-file-cache) (ido-decorations): Doc fix.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/ido.el53
2 files changed, 38 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 141c3fc6344..2ff5a50e171 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12013-07-24 Xue Fuqiao <xfq.free@gmail.com> 12013-07-24 Xue Fuqiao <xfq.free@gmail.com>
2 2
3 * ido.el (ido-fractionp):
4 (ido-cache-ftp-work-directory-time, ido-max-prospects, ido-mode)
5 (ido-max-file-prompt-width, ido-unc-hosts-cache)
6 (ido-max-directory-size, ido-max-dir-file-cache)
7 (ido-decorations): Doc fix.
8
3 * ansi-color.el: Fix old URL. 9 * ansi-color.el: Fix old URL.
4 10
52013-07-23 Michael R. Mauger <michael@mauger.com> 112013-07-23 Michael R. Mauger <michael@mauger.com>
diff --git a/lisp/ido.el b/lisp/ido.el
index 43a0cc0a665..d3c0e0f09f7 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -161,10 +161,10 @@
161;; --------------- 161;; ---------------
162;; 162;;
163;; The standard way of completion with Unix-shells and Emacs is to insert a 163;; The standard way of completion with Unix-shells and Emacs is to insert a
164;; PREFIX and then hitting TAB (or another completion key). Cause of this 164;; PREFIX and then hitting TAB (or another completion key). Cause of this
165;; behavior has become second nature to a lot of emacs users `ido' offers in 165;; behavior has become second nature to a lot of Emacs users `ido' offers in
166;; addition to the default substring-matching-method (look above) also the 166;; addition to the default substring-matching-method (look above) also the
167;; prefix-matching-method. The kind of matching is the only difference to 167;; prefix-matching-method. The kind of matching is the only difference to
168;; the description of the substring-matching above. 168;; the description of the substring-matching above.
169;; 169;;
170;; You can toggle prefix matching with C-p. 170;; You can toggle prefix matching with C-p.
@@ -271,7 +271,7 @@
271;; To use ido for all buffer and file selections in Emacs, customize the 271;; To use ido for all buffer and file selections in Emacs, customize the
272;; variable `ido-everywhere'. 272;; variable `ido-everywhere'.
273 273
274;; Using ido-like behavior in other lisp packages 274;; Using ido-like behavior in other Lisp packages
275;; ----------------------------------------------- 275;; -----------------------------------------------
276 276
277;; If you don't want to rely on the `ido-everywhere' functionality, 277;; If you don't want to rely on the `ido-everywhere' functionality,
@@ -312,7 +312,7 @@
312;; so I invented a common "ido-" namespace for the merged packages. 312;; so I invented a common "ido-" namespace for the merged packages.
313;; 313;;
314;; This version is based on ido.el version 1.57 released on 314;; This version is based on ido.el version 1.57 released on
315;; gnu.emacs.sources adapted for emacs 22.1 to use command remapping 315;; gnu.emacs.sources adapted for Emacs 22.1 to use command remapping
316;; and optionally hooking the read-buffer and read-file-name functions. 316;; and optionally hooking the read-buffer and read-file-name functions.
317;; 317;;
318;; Prefix matching was added by Klaus Berndl <klaus.berndl@sdm.de> based on 318;; Prefix matching was added by Klaus Berndl <klaus.berndl@sdm.de> based on
@@ -328,6 +328,7 @@
328;; These are some things you might want to change. 328;; These are some things you might want to change.
329 329
330(defun ido-fractionp (n) 330(defun ido-fractionp (n)
331 "Return t if N is a fraction."
331 (and (numberp n) (> n 0.0) (<= n 1.0))) 332 (and (numberp n) (> n 0.0) (<= n 1.0)))
332 333
333(defgroup ido nil 334(defgroup ido nil
@@ -340,13 +341,13 @@
340 341
341;;;###autoload 342;;;###autoload
342(defcustom ido-mode nil 343(defcustom ido-mode nil
343 "Determines for which functional group \(buffer and files) ido behavior 344 "Determines for which buffer/file Ido should be enabled.
344should be enabled. The following values are possible: 345The following values are possible:
345- `buffer': Turn only on ido buffer behavior \(switching, killing, 346- `buffer': Turn only on ido buffer behavior (switching, killing,
346 displaying...) 347 displaying...)
347- `file': Turn only on ido file behavior \(finding, writing, inserting...) 348- `file': Turn only on ido file behavior (finding, writing, inserting...)
348- `both': Turn on ido buffer and file behavior. 349- `both': Turn on ido buffer and file behavior.
349- `nil': Turn off any ido switching. 350- nil: Turn off any ido switching.
350 351
351Setting this variable directly does not take effect; 352Setting this variable directly does not take effect;
352use either \\[customize] or the function `ido-mode'." 353use either \\[customize] or the function `ido-mode'."
@@ -528,15 +529,20 @@ Note that the non-ido equivalent command is recorded."
528 :group 'ido) 529 :group 'ido)
529 530
530(defcustom ido-max-prospects 12 531(defcustom ido-max-prospects 12
531 "Non-zero means that the prospect list will be limited to that number of items. 532 "Upper limit of the prospect list if non-zero.
532For a long list of prospects, building the full list for the minibuffer can take a 533Zero means no limit for the prospect list.
533non-negligible amount of time; setting this variable reduces that time." 534For a long list of prospects, building the full list for the
535minibuffer can take a non-negligible amount of time; setting this
536variable reduces that time."
534 :type 'integer 537 :type 'integer
535 :group 'ido) 538 :group 'ido)
536 539
537(defcustom ido-max-file-prompt-width 0.35 540(defcustom ido-max-file-prompt-width 0.35
538 "Non-zero means that the prompt string be limited to that number of characters. 541 "Upper limit of the prompt string.
539If value is a floating point number, it specifies a fraction of the frame width." 542If value is an integer, it specifies the number of characters of
543the string.
544If value is a floating point number, it specifies a fraction of
545the frame width."
540 :type '(choice 546 :type '(choice
541 (integer :tag "Characters" :value 20) 547 (integer :tag "Characters" :value 20)
542 (restricted-sexp :tag "Fraction of frame width" 548 (restricted-sexp :tag "Fraction of frame width"
@@ -612,7 +618,8 @@ A tramp file name uses the following syntax: /method:user@host:filename."
612 618
613(defcustom ido-cache-ftp-work-directory-time 1.0 619(defcustom ido-cache-ftp-work-directory-time 1.0
614 "Maximum time to cache contents of an ftp directory (in hours). 620 "Maximum time to cache contents of an ftp directory (in hours).
615Use C-l in prompt to refresh list. 621\\<ido-file-completion-map>
622Use \\[ido-reread-directory] in prompt to refresh list.
616If zero, ftp directories are not cached." 623If zero, ftp directories are not cached."
617 :type 'number 624 :type 'number
618 :group 'ido) 625 :group 'ido)
@@ -630,7 +637,7 @@ equivalent function, e.g. `find-file' rather than `ido-find-file'."
630 :group 'ido) 637 :group 'ido)
631 638
632(defvar ido-unc-hosts-cache t 639(defvar ido-unc-hosts-cache t
633 "Cached value from `ido-unc-hosts' function.") 640 "Cached value from the function `ido-unc-hosts'.")
634 641
635(defcustom ido-unc-hosts nil 642(defcustom ido-unc-hosts nil
636 "List of known UNC host names to complete after initial //. 643 "List of known UNC host names to complete after initial //.
@@ -658,7 +665,8 @@ Case is ignored if `ido-downcase-unc-hosts' is set."
658 665
659(defcustom ido-cache-unc-host-shares-time 8.0 666(defcustom ido-cache-unc-host-shares-time 8.0
660 "Maximum time to cache shares of an UNC host (in hours). 667 "Maximum time to cache shares of an UNC host (in hours).
661Use C-l in prompt to refresh list. 668\\<ido-file-completion-map>
669Use \\[ido-reread-directory] in prompt to refresh list.
662If zero, UNC host shares are not cached." 670If zero, UNC host shares are not cached."
663 :type 'number 671 :type 'number
664 :group 'ido) 672 :group 'ido)
@@ -704,20 +712,22 @@ When a (partial) file name matches this regexp, merging is inhibited."
704 712
705(defcustom ido-max-dir-file-cache 100 713(defcustom ido-max-dir-file-cache 100
706 "Maximum number of working directories to be cached. 714 "Maximum number of working directories to be cached.
715\\<ido-file-completion-map>
707This is the size of the cache of `file-name-all-completions' results. 716This is the size of the cache of `file-name-all-completions' results.
708Each cache entry is time stamped with the modification time of the 717Each cache entry is time stamped with the modification time of the
709directory. Some systems, like Windows, have unreliable directory 718directory. Some systems, like Windows, have unreliable directory
710modification times, so you may choose to disable caching on such 719modification times, so you may choose to disable caching on such
711systems, or explicitly refresh the cache contents using the command 720systems, or explicitly refresh the cache contents using the command
712`ido-reread-directory' command (C-l) in the minibuffer. 721`ido-reread-directory' command (\\[ido-reread-directory]) in the minibuffer.
713See also `ido-dir-file-cache' and `ido-save-directory-list-file'." 722See also `ido-dir-file-cache' and `ido-save-directory-list-file'."
714 :type 'integer 723 :type 'integer
715 :group 'ido) 724 :group 'ido)
716 725
717(defcustom ido-max-directory-size nil 726(defcustom ido-max-directory-size nil
718 "Maximum size (in bytes) for directories to use ido completion. 727 "Maximum size (in bytes) for directories to use ido completion.
728\\<ido-completion-map>
719If you enter a directory with a size larger than this size, ido will 729If you enter a directory with a size larger than this size, ido will
720not provide the normal completion. To show the completions, use C-a." 730not provide the normal completion. To show the completions, use \\[ido-toggle-ignore]."
721 :type '(choice (const :tag "No limit" nil) 731 :type '(choice (const :tag "No limit" nil)
722 (integer :tag "Size in bytes" 30000)) 732 (integer :tag "Size in bytes" 30000))
723 :group 'ido) 733 :group 'ido)
@@ -767,7 +777,8 @@ Obsolete. Set 3rd element of `ido-decorations' instead."
767 "List of strings used by ido to display the alternatives in the minibuffer. 777 "List of strings used by ido to display the alternatives in the minibuffer.
768There are between 11 and 13 elements in this list: 778There are between 11 and 13 elements in this list:
7691st and 2nd elements are used as brackets around the prospect list, 7791st and 2nd elements are used as brackets around the prospect list,
7703rd element is the separator between prospects (ignored if `ido-separator' is set), 7803rd element is the separator between prospects (ignored if
781`ido-separator' is set),
7714th element is the string inserted at the end of a truncated list of prospects, 7824th element is the string inserted at the end of a truncated list of prospects,
7725th and 6th elements are used as brackets around the common match string which 7835th and 6th elements are used as brackets around the common match string which
773can be completed using TAB, 784can be completed using TAB,