]> code.delx.au - gnu-emacs-elpa/commit
Change `ivy-read' to a cl-defun
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 22 Apr 2015 10:56:19 +0000 (12:56 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Wed, 22 Apr 2015 11:11:24 +0000 (13:11 +0200)
commit1fad83142ed5512548b0d9e7a927da4145437591
tree8b75239d2596bb9869c0d3a548412efd1292b3d1
parent6da7819ee274b13ec49c012984123d8733594f39
Change `ivy-read' to a cl-defun

* ivy.el (ivy-read): All args but PROMPT and COLLECTION are now keys.
The existing basic calls to `ivy-read' should still work, the others
need to be updated. It's best to try to use `ivy-completing-read' if
possible, since it conforms to the `completing-read' arguments.
New arguments: REQUIRE-MATCH and HISTORY. If HISTORY is nil, `ivy-history'
is used.

(ivy--sorted-files): Don't try to extend the collection.
(ivy-completing-read): Update.

* swiper.el (swiper--ivy): Update.

* counsel.el (counsel-describe-symbol-history): New defvar.
(counsel-describe-variable): Update the call, require match, use
`counsel-describe-symbol-history'.
(counsel-describe-function): Update the call, require match, use
`counsel-describe-symbol-history'.

* ivy-test.el: Update tests, since zero and one length input doesn't
  return immediately any more.

Re #46
counsel.el
ivy-test.el
ivy.el
swiper.el