[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5cfe6e6 148/167: Fixes on the previous docstring edits
From: |
Oleh Krehel |
Subject: |
[elpa] master 5cfe6e6 148/167: Fixes on the previous docstring edits |
Date: |
Tue, 08 Dec 2015 10:50:38 +0000 |
branch: master
commit 5cfe6e6a765b04bacbe4a72f64b2d028601a9611
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Fixes on the previous docstring edits
---
doc/ivy.texi | 32 ++++++++++++------------
ivy.el | 75 ++++++++++++++++++++++++++++-----------------------------
2 files changed, 53 insertions(+), 54 deletions(-)
diff --git a/doc/ivy.texi b/doc/ivy.texi
index 811b59e..555fc7a 100644
--- a/doc/ivy.texi
+++ b/doc/ivy.texi
@@ -78,13 +78,13 @@ Getting started
Key bindings
* Global key bindings::
-* minibuffer key bindings::
+* Minibuffer key bindings::
-minibuffer key bindings
+Minibuffer key bindings
* Key bindings for navigation::
-* Key bindings for single selection, action, then exit minibuffer: Key
bindings for single selection action then exit minibuffer.
-* Key bindings for multiple selections and actions, keep minibuffer open: Key
bindings for multiple selections and actions keep minibuffer open.
+* Key bindings for single selection, action, then exit minibuffer: Key
bindings for single selection action then exit minibuffer.
+* Key bindings for multiple selections and actions, keep minibuffer open: Key
bindings for multiple selections and actions keep minibuffer open.
* Key bindings that alter minibuffer input::
* Other key bindings::
* Hydra in the minibuffer::
@@ -113,10 +113,10 @@ Ivy strives for minimalism, simplicity, customizability
and
discoverability.
@subsubheading Minimalism
-Uncluttered minibuffer is minimalism. Ivy shows completion
-defaults, number of matches, and 10 candidate matches below the input
-line. Customize @verb{~ivy-length~} to adjust the number of candidate matches
-displayed in the minibuffer.
+Uncluttered minibuffer is minimalism. Ivy shows the completion
+defaults, the number of matches, and 10 candidate matches below the
+input line. Customize @verb{~ivy-length~} to adjust the number of candidate
+matches displayed in the minibuffer.
@subsubheading Simplicity
Simplicity is about Ivy's behavior in the minibuffer. It is also about
@@ -258,7 +258,7 @@ documentation.
@menu
* Global key bindings::
-* minibuffer key bindings::
+* Minibuffer key bindings::
@end menu
@node Global key bindings
@@ -293,8 +293,8 @@ Recommended key bindings are:
(global-set-key (kbd "C-c C-r") 'ivy-resume)
@end lisp
address@hidden minibuffer key bindings
address@hidden minibuffer key bindings
address@hidden Minibuffer key bindings
address@hidden Minibuffer key bindings
Ivy includes several minibuffer bindings, which are defined in the
@verb{~ivy-minibuffer-map~} keymap variable. The most frequently used ones
@@ -305,8 +305,8 @@ are described here.
under their respective commands.
@menu
* Key bindings for navigation::
-* Key bindings for single selection, action, then exit minibuffer: Key
bindings for single selection action then exit minibuffer.
-* Key bindings for multiple selections and actions, keep minibuffer open: Key
bindings for multiple selections and actions keep minibuffer open.
+* Key bindings for single selection, action, then exit minibuffer: Key
bindings for single selection action then exit minibuffer.
+* Key bindings for multiple selections and actions, keep minibuffer open: Key
bindings for multiple selections and actions keep minibuffer open.
* Key bindings that alter minibuffer input::
* Other key bindings::
* Hydra in the minibuffer::
@@ -511,8 +511,8 @@ The default is:
@end lisp
The default @verb{~ivy--regex-plus~} narrowing is always invoked unless
-specified otherwise. For example, file name completion can have its
-own custom completion function:
+specified otherwise. For example, file name completion may have a
+custom completion function:
@lisp
(setq ivy-re-builders-alist
@@ -588,4 +588,4 @@ of hits. Yet some searches need these extra hits. Ivy
sorts such
large lists using @verb{~flx~} package's scoring mechanism, if it's
installed.
address@hidden
\ No newline at end of file
address@hidden
diff --git a/ivy.el b/ivy.el
index 8138365..ff7b2b2 100644
--- a/ivy.el
+++ b/ivy.el
@@ -53,11 +53,11 @@
(defface ivy-confirm-face
'((t :foreground "ForestGreen" :inherit minibuffer-prompt))
- "Face used by Ivy for confirmation prompt.")
+ "Face used by Ivy for a confirmation prompt.")
(defface ivy-match-required-face
'((t :foreground "red" :inherit minibuffer-prompt))
- "Face used by Ivy for match required prompt.")
+ "Face used by Ivy for a match required prompt.")
(defface ivy-subdir
'((t (:inherit 'dired-directory)))
@@ -65,7 +65,7 @@
(defface ivy-modified-buffer
'((t :inherit 'default))
- "Face used by Ivy for highlighting those buffers visiting files.")
+ "Face used by Ivy for highlighting modified file visiting buffers.")
(defface ivy-remote
'((t (:foreground "#110099")))
@@ -76,9 +76,9 @@
:type 'integer)
(defcustom ivy-count-format "%-4d "
- "The style to use for displying the current candidate count for
-`ivy-read'. Set style to \"\" to suppress counts visiblity. Set
-style to \"(%d/%d) \" to display both the index and the count."
+ "The style to use for displaying the current candidate count for `ivy-read'.
+Set this to \"\" to suppress the count visibility.
+Set this to \"(%d/%d) \" to display both the index and the count."
:type '(choice
(const :tag "Count disabled" "")
(const :tag "Count matches" "%-4d ")
@@ -86,7 +86,7 @@ style to \"(%d/%d) \" to display both the index and the
count."
string))
(defcustom ivy-wrap nil
- "Wrap around after the first and last candidate."
+ "When non-nil, wrap around after the first and the last candidate."
:type 'boolean)
(defcustom ivy-display-style (unless (version< emacs-version "24.5") 'fancy)
@@ -105,8 +105,8 @@ earlier versions of Emacs."
(const :tag "Fancy" fancy)))
(defcustom ivy-on-del-error-function 'minibuffer-keyboard-quit
- "The handler for when `ivy-backward-delete-char' throws --
-usually a quick exit out of the minibuffer."
+ "The handler for when `ivy-backward-delete-char' throws.
+Usually a quick exit out of the minibuffer."
:type 'function)
(defcustom ivy-extra-directories '("../" "./")
@@ -201,7 +201,7 @@ Only \"./\" and \"../\" apply here. They appear in reverse
order."
caller)
(defvar ivy-last nil
- "The last parameter passed to `ivy-read'.
+ "The last parameters passed to `ivy-read'.
This should eventually become a stack so that you could use
`ivy-read' recursively.")
@@ -213,10 +213,10 @@ This should eventually become a stack so that you could
use
"History list of candidates entered in the minibuffer.
Maximum length of the history list is determined by the value
-of `history-length'")
+of `history-length'.")
(defvar ivy--directory nil
- "Current directory to use when completing file names.")
+ "Current directory when completing file names.")
(defvar ivy--length 0
"Store the amount of viable candidates.")
@@ -231,7 +231,8 @@ of `history-length'")
"Store the index of the current candidate.")
(defvar ivy-exit nil
- "Store 'done if the completion was successfully selected, otherwise store
nil.")
+ "Store 'done if the completion was successfully selected.
+Otherwise, store nil.")
(defvar ivy--all-candidates nil
"Store the candidates passed to `ivy-read'.")
@@ -869,10 +870,10 @@ On error (read-only), call `ivy-on-del-error-function'."
'(add-to-list 'avy-styles-alist '(ivy-avy . pre)))
(defun ivy-avy ()
- "Jump to a current ivy candidate."
+ "Jump to one of the current ivy candidates."
(interactive)
(unless (require 'avy nil 'noerror)
- (error "Avy package is not installed"))
+ (error "Package avy isn't installed"))
(let* ((avy-all-windows nil)
(avy-keys (or (cdr (assq 'ivy-avy avy-keys-alist))
avy-keys))
@@ -1031,12 +1032,12 @@ UPDATE-FN is called each time the current candidate(s)
is changed.
When SORT is t, use `ivy-sort-functions-alist' for sorting.
-ACTION is a lambda function call after selecting a result. It
+ACTION is a lambda function to call after selecting a result. It
takes a single string argument.
-UNWIND is a lambda function call before exiting.
+UNWIND is a lambda function to call before exiting.
-RE-BUILDER is a lambda function call to transform text into a
+RE-BUILDER is a lambda function to call to transform text into a
regex pattern.
MATCHER is to override matching.
@@ -1044,7 +1045,7 @@ MATCHER is to override matching.
DYNAMIC-COLLECTION is a boolean to specify if the list of
candidates is updated after each input by calling COLLECTION.
-CALLER is symbol to uniquely identify the caller to `ivy-read'.
+CALLER is a symbol to uniquely identify the caller to `ivy-read'.
It is used, along with COLLECTION, to determine which
customizations apply to the current completion session."
(let ((extra-actions (plist-get ivy--actions-list this-command)))
@@ -1245,8 +1246,8 @@ This is useful for recursive `ivy-read'."
;;;###autoload
(defun ivy-completing-read (prompt collection
- &optional predicate require-match
initial-input
- history def _inherit-input-method)
+ &optional predicate require-match initial-input
+ history def _inherit-input-method)
"Read a string in the minibuffer, with completion.
This interface conforms to `completing-read' and can be used for
@@ -1257,7 +1258,7 @@ COLLECTION can be a list of strings, an alist, an obarray
or a hash table.
PREDICATE limits completion to a subset of COLLECTION.
REQUIRE-MATCH is specified with a boolean value. See `completing-read'.
INITIAL-INPUT is a string that can be inserted into the minibuffer initially.
-_HISTORY is currently ignored.
+HISTORY is a list of previously selected inputs.
DEF is the default value.
_INHERIT-INPUT-METHOD is currently ignored."
@@ -1308,7 +1309,7 @@ Minibuffer bindings:
(setq completing-read-function 'completing-read-default)))
(defun ivy--preselect-index (preselect candidates)
- "Return the index of PRESELECT from CANDIDATES."
+ "Return the index of PRESELECT in CANDIDATES."
(cond ((integerp preselect)
preselect)
((cl-position preselect candidates :test #'equal))
@@ -1326,9 +1327,9 @@ Minibuffer bindings:
"Store pre-computed regex.")
(defun ivy--split (str)
- "Split STR into a list by single space characters.
-If any remaining consequtive spaces, stick left. This allows for
-\"quote\" N spaces by inputting N+1 spaces."
+ "Split STR into a list by single spaces.
+The remaining spaces stick to their left.
+This allows to \"quote\" N spaces by inputting N+1 spaces."
(let ((len (length str))
start0
(start1 0)
@@ -1392,7 +1393,7 @@ Ignore the order of each group.
ATTENTION: This is just a proof of concept and may not work as
expected. Besides ignoring the order of the tokens where 'foo'
and 'bar', 'bar' and 'foo' are matched, it also matches multiple
-occurances of 'foo' and 'bar'. To ignore the sort order and avoid
+occurrences of 'foo' and 'bar'. To ignore the sort order and avoid
multiple matches, use `ivy-restrict-to-matches' instead.
"
(let* ((subs (split-string str " +" t))
@@ -1531,7 +1532,7 @@ Insert .* between each char."
(constrain-to-field nil (point-max))))))
(defun ivy--set-match-props (str match props)
- "Set STR text proprties that match MATCH to PROPS."
+ "Set STR text properties that match MATCH to PROPS."
(when (string-match match str)
(set-text-properties
(match-beginning 0)
@@ -1738,14 +1739,12 @@ CANDIDATES are assumed to be static."
(setq ivy--old-cands (ivy--sort name cands))))))
(defcustom ivy-sort-matches-functions-alist '((t . nil))
- "An alist of functions for sorting after each input change.
+ "An alist of functions used to sort the matching candidates.
-These functions are for sorting matching list of candidates after
-each input change. Sorting is applied repeatedly to the matching
-candidates if the list changes after each input change.
-
-`ivy-sort-functions-alist', on the other hand, sorts the whole
-collection of candidates only once.
+This is different from `ivy-sort-functions-alist', which is used
+to sort the whole collection only once. The functions taken from
+here are instead used on each input change, but they are used
+only on already matching candidates, not on all of them.
The alist KEY is a collection function or t to match previously
not matched collection functions.
@@ -2238,7 +2237,7 @@ Don't finish completion."
(defun ivy-reverse-i-search ()
"Enter a recursive `ivy-read' session using the current history.
-The selected history element will be inserted into the minibufer."
+The selected history element will be inserted into the minibuffer."
(interactive)
(let ((enable-recursive-minibuffers t)
(history (symbol-value (ivy-state-history ivy-last)))
@@ -2299,11 +2298,11 @@ buffer would modify `ivy-last'.")
(defvar counsel-git-grep-cmd)
(defun ivy-occur ()
- "Stops completion and puts the current matches into a new buffer.
+ "Stop completion and put the current matches into a new buffer.
The new buffer remembers current action(s).
-While in the *ivy-occur* buffer, selecting a cadidate with RET or
+While in the *ivy-occur* buffer, selecting a candidate with RET or
a mouse click will call the appropriate action for that candidate.
There is no limit on the number of *ivy-occur* buffers."
- [elpa] master 3b67044 145/167: Convert ivy formatting functions to dotted pairs., (continued)
- [elpa] master 3b67044 145/167: Convert ivy formatting functions to dotted pairs., Oleh Krehel, 2015/12/08
- [elpa] master ac09f6b 152/167: Fix the issue caused by recursive swiper calls, Oleh Krehel, 2015/12/08
- [elpa] master a34e532 155/167: swiper.el: Use show-all if outline-show-all isn't there, Oleh Krehel, 2015/12/08
- [elpa] master b57c57d 153/167: Fix the preselect for (swiper "one") again, Oleh Krehel, 2015/12/08
- [elpa] master a585fcd 156/167: Fix due to visual-line-mode weirdness, Oleh Krehel, 2015/12/08
- [elpa] master 1cf32c8 138/167: ivy.org manual edits, Oleh Krehel, 2015/12/08
- [elpa] master 7377445 147/167: Edit documentation strings in ivy.el, Oleh Krehel, 2015/12/08
- [elpa] master 1cceac1 154/167: Fix ivy-resume issue caused by the recursive calls change, Oleh Krehel, 2015/12/08
- [elpa] master ed9169d 158/167: swiper.el (swiper--update-input-ivy): Add a work-around for "M-j", Oleh Krehel, 2015/12/08
- [elpa] master 0332b3e 151/167: Remove 'field text property for twittering-mode, Oleh Krehel, 2015/12/08
- [elpa] master 5cfe6e6 148/167: Fixes on the previous docstring edits,
Oleh Krehel <=
- [elpa] master 435e9d4 159/167: Use :caller for ivy-re-builders-alist, Oleh Krehel, 2015/12/08
- [elpa] master 8dd88e4 149/167: doc/Changelog.org: Update up to 2bec99d, Oleh Krehel, 2015/12/08
- [elpa] master 706349f 160/167: swiper.el (swiper-font-lock-ensure): Add vc-dir-mode, Oleh Krehel, 2015/12/08
- [elpa] master 2a55ada 163/167: doc/Changelog.org: Update up to 706349f, Oleh Krehel, 2015/12/08
- [elpa] master 98a4548 164/167: swiper.el: Bump version to 0.7.0, Oleh Krehel, 2015/12/08
- [elpa] master 84533bb 139/167: Minor fixes to ivy.org and export to ivy.texi, Oleh Krehel, 2015/12/08
- [elpa] master 17872ba 157/167: ivy.el: Structure all faces into ivy-faces custom group, Oleh Krehel, 2015/12/08
- [elpa] master 5a6217a 161/167: counsel.el (counsel-tmm): New command, Oleh Krehel, 2015/12/08
- [elpa] master e264139 166/167: doc/ivy.org: Add "Variable Index" node, Oleh Krehel, 2015/12/08
- [elpa] master c5661c0 162/167: ivy.el (ivy-completing-read): Use completing-read-default for tmm, Oleh Krehel, 2015/12/08