]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
9 years agoMerge commit '1380f8c1a51f31514125a08f632d017cdfb8e26e' from hydra
Oleh Krehel [Fri, 1 May 2015 14:19:05 +0000 (16:19 +0200)]
Merge commit '1380f8c1a51f31514125a08f632d017cdfb8e26e' from hydra

Conflicts:
packages/hydra/hydra.el
packages/hydra/lv.el

9 years agohydra.el: Bump version
Oleh Krehel [Fri, 1 May 2015 13:46:21 +0000 (15:46 +0200)]
hydra.el: Bump version

9 years agohydra.el: Use add/remove-function. Fix warning.
Stefan Monnier [Sun, 19 Apr 2015 20:00:53 +0000 (16:00 -0400)]
hydra.el: Use add/remove-function. Fix warning.

* hydra.el (hydra--input-method-function): Move before first use.
(hydra--imf): New function.
(hydra-default-pre, hydra-disable): Use add/remove-function.

9 years agohydra.el (hydra-cell-format): Change to defvar
Oleh Krehel [Thu, 30 Apr 2015 08:55:13 +0000 (10:55 +0200)]
hydra.el (hydra-cell-format): Change to defvar

9 years agohydra.el (hydra-key-format-spec): Declare obsolete
Oleh Krehel [Thu, 30 Apr 2015 08:55:00 +0000 (10:55 +0200)]
hydra.el (hydra-key-format-spec): Declare obsolete

9 years agohydra.el (hydra-fontify-head-default): Fixup
Oleh Krehel [Thu, 30 Apr 2015 08:18:56 +0000 (10:18 +0200)]
hydra.el (hydra-fontify-head-default): Fixup

* hydra.el (hydra-fontify-head-default): Use head-exit. The heads have
  been pre-processed to have it always set.

* hydra-test.el (hydra-format-4): Update test. The heads are passed to
  `hydra--format' in the pre-processed state now (color and hint expanded).

9 years agoRepurpose `hydra--complain' for debugging
Oleh Krehel [Thu, 30 Apr 2015 08:11:56 +0000 (10:11 +0200)]
Repurpose `hydra--complain' for debugging

hydra.el (hydra--complain): Forward to either `error' or `message'.

* lv.el (lv-use-separator): Fixup doc.

9 years agoMake *LV* window fixed size
Oleh Krehel [Thu, 30 Apr 2015 07:44:12 +0000 (09:44 +0200)]
Make *LV* window fixed size

* lv.el (lv-window): Prevent `balance-windows' and the like from messing
  things up.
(lv-message): Bind `window-size-fixed' to nil for
`fit-window-to-buffer'.

Fixes #64

9 years ago* spinner/spinner.el: Rewrite spinners as structures
Artur Malabarba [Wed, 29 Apr 2015 23:26:53 +0000 (00:26 +0100)]
* spinner/spinner.el: Rewrite spinners as structures

9 years agoAdd a work-around for pop-to-buffer / dedicated bug
Oleh Krehel [Tue, 28 Apr 2015 16:40:00 +0000 (18:40 +0200)]
Add a work-around for pop-to-buffer / dedicated bug

* hydra.el (hydra--work-around-dedicated): New defvar.
(hydra-keyboard-quit): Update.

Fixes #124
Fixes #119

9 years agolv.el (lv-message): Use `lv-use-separator'
Oleh Krehel [Tue, 28 Apr 2015 07:50:10 +0000 (09:50 +0200)]
lv.el (lv-message): Use `lv-use-separator'

* lv.el (lv-message): Check `lv-use-separator' and use `looking-back'.

Fixes #123.

9 years agolv.el (lv-force-update): Be nil by default
Oleh Krehel [Tue, 28 Apr 2015 07:49:45 +0000 (09:49 +0200)]
lv.el (lv-force-update): Be nil by default

9 years ago* packages/seq/seq.el: Update seq.el to version 1.5.
Nicolas Petton [Mon, 27 Apr 2015 21:28:09 +0000 (23:28 +0200)]
* packages/seq/seq.el: Update seq.el to version 1.5.

9 years ago.dir-locals.el: Add
Oleh Krehel [Mon, 27 Apr 2015 12:31:50 +0000 (14:31 +0200)]
.dir-locals.el: Add

9 years agoOptionally separate lv window and echo area using a thin line
Jonas Bernoulli [Sun, 26 Apr 2015 18:38:46 +0000 (20:38 +0200)]
Optionally separate lv window and echo area using a thin line

* lv.el (lv-use-separator): New option.
(lv-separator): New face.
(lv): New custom group.
(lv-message): Respect lv-use-separator using lv-separator.

Re #122

9 years ago* packages/load-relative/load-relative.el (__FILE__): bytecomp-filename problem.
Stefan Monnier [Mon, 27 Apr 2015 01:30:02 +0000 (21:30 -0400)]
* packages/load-relative/load-relative.el (__FILE__): bytecomp-filename problem.
Fix other details mentioned by `checkdoc-current-buffer'.

9 years ago* packages/test-simple/test-simple.el: Use cl-lib
Stefan Monnier [Mon, 27 Apr 2015 01:26:31 +0000 (21:26 -0400)]
* packages/test-simple/test-simple.el: Use cl-lib

(test-simple-msg): Let-bind inhibit-read-only directly.
(test-simple--ok-msg, test-simple--not-ok-msg): Rename from ok-msg and
not-ok-msg.
* packages/test-simple/ChangeLog: Remove empty file.

9 years ago* names/names.el: Use lexical-binding. Silence compiler warnings.
Stefan Monnier [Mon, 27 Apr 2015 01:23:45 +0000 (21:23 -0400)]
* names/names.el: Use lexical-binding.  Silence compiler warnings.

9 years ago* aggressive-indent/aggressive-indent.el: Use lexical-binding.
Stefan Monnier [Mon, 27 Apr 2015 01:00:50 +0000 (21:00 -0400)]
* aggressive-indent/aggressive-indent.el: Use lexical-binding.

9 years ago* packages/ahungry-theme/ahungry-theme.el: Use lexical-binding.
Stefan Monnier [Mon, 27 Apr 2015 00:59:00 +0000 (20:59 -0400)]
* packages/ahungry-theme/ahungry-theme.el: Use lexical-binding.

9 years ago* packages/company-statistics/company-statistics.el: Use lexical-binding.
Stefan Monnier [Mon, 27 Apr 2015 00:58:13 +0000 (20:58 -0400)]
* packages/company-statistics/company-statistics.el: Use lexical-binding.
Remove redundant :group args.

9 years ago* packages/minibuffer-line/minibuffer-line.el: New package.
Stefan Monnier [Mon, 27 Apr 2015 00:34:21 +0000 (20:34 -0400)]
* packages/minibuffer-line/minibuffer-line.el: New package.

9 years ago* bug-hunter.el: Bump version number
Artur Malabarba [Sun, 26 Apr 2015 18:02:30 +0000 (19:02 +0100)]
* bug-hunter.el: Bump version number

Also expand documentation.

9 years ago* bug-hunter.el: Reduce number of steps
Artur Malabarba [Sun, 26 Apr 2015 18:01:55 +0000 (19:01 +0100)]
* bug-hunter.el: Reduce number of steps

9 years ago* bug-hunter.el: Fix a couple of bugs
Artur Malabarba [Sun, 26 Apr 2015 17:59:25 +0000 (18:59 +0100)]
* bug-hunter.el: Fix a couple of bugs

9 years agoAdd lv-force-update
Oleh Krehel [Sun, 26 Apr 2015 07:21:52 +0000 (09:21 +0200)]
Add lv-force-update

* hydra.el (hydra-keyboard-quit): Don't clear the message when
  `hydra--ignore' is t.

* lv.el (lv-force-update): New defvar.
(lv-message): Refresh the window unless both the window contents haven't
changed and `lv-force-update' is nil.

Fixes #121

9 years agoUse one less ; for local vars
Oleh Krehel [Sat, 25 Apr 2015 11:32:49 +0000 (13:32 +0200)]
Use one less ; for local vars

9 years agoUpdate `outline-regexp' and `indent-tabs-mode' file locals
Oleh Krehel [Sat, 25 Apr 2015 11:28:06 +0000 (13:28 +0200)]
Update `outline-regexp' and `indent-tabs-mode' file locals

Re #120

9 years agoAdd `lv-delete-window' function
Jonas Bernoulli [Sat, 25 Apr 2015 11:03:23 +0000 (13:03 +0200)]
Add `lv-delete-window' function

* lv.el (lv-delete-window): New defun.
* hydra.el (hydra-keyboard-quit): Use it.

9 years agoFix the regex once more and add test
Oleh Krehel [Sat, 25 Apr 2015 11:06:54 +0000 (13:06 +0200)]
Fix the regex once more and add test

* hydra.el (hydra--format): Update.

* hydra-test.el (hydra-format-5): Add test.

Fixes #117

9 years agoMerge commit 'ac93b9eef9b6ac44d187b9688d68a7a5f205b3fe' from js2-mode
Dmitry Gutov [Fri, 24 Apr 2015 02:56:24 +0000 (05:56 +0300)]
Merge commit 'ac93b9eef9b6ac44d187b9688d68a7a5f205b3fe' from js2-mode

Conflicts:
packages/js2-mode/js2-mode.el

9 years agoAddress two FIXMEs; fix a regression flagged by tests
Dmitry Gutov [Fri, 24 Apr 2015 02:29:04 +0000 (05:29 +0300)]
Address two FIXMEs; fix a regression flagged by tests

9 years agoMerge commit '9790b9781aa8ca1d4bdf94d06d4e8ff2e68d37e8' into js2-mode-master
Dmitry Gutov [Fri, 24 Apr 2015 00:11:03 +0000 (03:11 +0300)]
Merge commit '9790b9781aa8ca1d4bdf94d06d4e8ff2e68d37e8' into js2-mode-master

9 years agohydra.el (hydra-face-teal): Fixup doc
Oleh Krehel [Thu, 23 Apr 2015 21:01:44 +0000 (23:01 +0200)]
hydra.el (hydra-face-teal): Fixup doc

9 years agohydra.el (hydra--format): Be non-greedy with width spec
Oleh Krehel [Thu, 23 Apr 2015 19:48:26 +0000 (21:48 +0200)]
hydra.el (hydra--format): Be non-greedy with width spec

* hydra.el (hydra--format): Since the key spec is non-greedy, the width
  spec should be non-greedy too.

Otherwise, the following will match more than _1_:
    _1_: h1         _2_: h2

Fixes #117

9 years agoMerge commit '725e12a51e837ed75361f9f2258a887cacb120cd' from swiper
Oleh Krehel [Thu, 23 Apr 2015 17:55:40 +0000 (19:55 +0200)]
Merge commit '725e12a51e837ed75361f9f2258a887cacb120cd' from swiper

9 years agoivy.el (Info-current-file): Declare
Oleh Krehel [Thu, 23 Apr 2015 17:54:28 +0000 (19:54 +0200)]
ivy.el (Info-current-file): Declare

9 years agoUse "//" to move to root instead of "/" as before
Oleh Krehel [Thu, 23 Apr 2015 17:49:15 +0000 (19:49 +0200)]
Use "//" to move to root instead of "/" as before

ivy.el (ivy--exhibit): Update.

This improves the situation with tramp and generally avoids losing the
current directory by pressing "/" by accident.

Fixes #59

9 years agoAvoid sorting org refile candidates
Oleh Krehel [Thu, 23 Apr 2015 17:19:16 +0000 (19:19 +0200)]
Avoid sorting org refile candidates

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

9 years agoExclude jabber-chat-mode from font-lock
Oleh Krehel [Thu, 23 Apr 2015 16:42:59 +0000 (18:42 +0200)]
Exclude jabber-chat-mode from font-lock

* swiper.el (swiper-font-lock-ensure): Update.

9 years agoRemove globbing heuristics for file name completion
Oleh Krehel [Thu, 23 Apr 2015 16:09:48 +0000 (18:09 +0200)]
Remove globbing heuristics for file name completion

* ivy.el (ivy-done): Simplify.
(ivy-alt-done): Simplify.

If you want to exit with the current text, ignoring candidates, use
`ivy-immediate-done' instead. Works for globs as well.

Fixes #55

9 years agoMatch e.g. "C-d C-o" in docstring
Oleh Krehel [Thu, 23 Apr 2015 13:53:02 +0000 (15:53 +0200)]
Match e.g. "C-d C-o" in docstring

* hydra.el (hydra--format): Allow space; make the regex non-greedy.

Fixes #116

9 years agocounsel.el (counsel-git-grep): Fixup
Oleh Krehel [Thu, 23 Apr 2015 11:15:36 +0000 (13:15 +0200)]
counsel.el (counsel-git-grep): Fixup

9 years agoivy.el (ivy-backward-delete-char): Expand `ivy--directory'
Oleh Krehel [Thu, 23 Apr 2015 11:13:18 +0000 (13:13 +0200)]
ivy.el (ivy-backward-delete-char): Expand `ivy--directory'

This avoids the situation of getting a nil for "~/".

Re #57

9 years agoivy.el (ivy-done): Update wrt globs
Oleh Krehel [Thu, 23 Apr 2015 11:08:22 +0000 (13:08 +0200)]
ivy.el (ivy-done): Update wrt globs

Re #55

9 years agoswiper.el (swiper-query-replace): Fix
Oleh Krehel [Thu, 23 Apr 2015 11:08:07 +0000 (13:08 +0200)]
swiper.el (swiper-query-replace): Fix

9 years agoswiper.el (swiper--ivy): Check for stand-alone ivy
Oleh Krehel [Thu, 23 Apr 2015 09:19:07 +0000 (11:19 +0200)]
swiper.el (swiper--ivy): Check for stand-alone ivy

Re #54

9 years agoMerge commit '0d69d15d20b69f439c1a1ed451e06f77b1252b3e' from gnorb
Eric Abrahamsen [Thu, 23 Apr 2015 09:16:55 +0000 (17:16 +0800)]
Merge commit '0d69d15d20b69f439c1a1ed451e06f77b1252b3e' from gnorb

9 years agoSquashed 'packages/gnorb/' changes from 4e7039a..a387d85
Eric Abrahamsen [Thu, 23 Apr 2015 09:16:55 +0000 (17:16 +0800)]
Squashed 'packages/gnorb/' changes from 4e7039a..a387d85

a387d85 Bump version to 1.1.0

git-subtree-dir: packages/gnorb
git-subtree-split: a387d8515871d9f06b193a461745697eb25f3872

9 years agoAllow heads to conditionally exit
Oleh Krehel [Thu, 23 Apr 2015 09:10:32 +0000 (11:10 +0200)]
Allow heads to conditionally exit

* hydra.el (hydra-deactivate): New defvar.
(hydra-set-transient-map): When `hydra-deactivate' is set, quit.
(hydra-disable): Make sure that `hydra-deactivate' is reset back to nil.

Fixes #115

Example: zoom in at most 5 times, then quit.

(defvar hydra-zoom-amount 1)

(defhydra hydra-zoom (global-map "<f2>")
  "zoom"
  ("g"
   (if (>= hydra-zoom-amount 5)
       (progn
         (setq hydra-zoom-amount 1)
         (setq hydra-deactivate t))
     (cl-incf hydra-zoom-amount)
     (call-interactively 'text-scale-increase))
   "in")
  ("l" text-scale-decrease "out"))

9 years agoMerge commit '3e5c11a13981a1ff613cb4442ad644285c44e481' from gnorb
Eric Abrahamsen [Thu, 23 Apr 2015 08:54:11 +0000 (16:54 +0800)]
Merge commit '3e5c11a13981a1ff613cb4442ad644285c44e481' from gnorb

9 years agoSquashed 'packages/gnorb/' changes from 321b23b..4e7039a
Eric Abrahamsen [Thu, 23 Apr 2015 08:53:26 +0000 (16:53 +0800)]
Squashed 'packages/gnorb/' changes from 321b23b..4e7039a

4e7039a Various compiler-inspired improvements
9b2b269 Use with-eval-after-load not eval-after-load
86fa893 Fix up all cl-lib calls
a59dac2 Use hook for determining Gnorb summary minor mode
4d3de61 Various documentation improvements
acb91c5 Fix doc error
6fd368d Provide more format marks in summary buffers
d9a1d89 Remove unused let variable
3f9c534 Report Gnorb email tracking usage
0f18c45 Allow persistent nnir search groups
2d30b0c Reset window conf after nnir-run-gnorb
160f43a New function for returning all tracked messages
9efae5a Fix call to cl-subseq
ce764a5 fixup with new quick reply command
b0fe9ae New command `gnorb-gnus-quick-reply'
5897188 Capture to child/sibling is done
4f99dd7 Handle conditions where `registry-search' returns nil
b951675 Merge capture-to-child branch
13bb840 Hint which heading will be triggered
c13f4df Better check for capture cleanup
dfa0043 Safer usage of cl-subseq
94fe1b8 Incorporate changes from Stefan M
d2e1e11 Mention registry bugs in README
a4089f8 Fix completing-read in message disassociation
9c910c9 Re-raise errors in the triggering process
648f5a7 Remove process mark after bulk association
84ff7a7 Don't let attach errors derail the trigger process
819b1e5 Suggest binding gnorb-org-view in Org Agenda
9d64acb Update gnorb-registry-capture to use convenience funcs
cc7d45b Be more careful handling org tags on BBDB records
f585c03 condition-case the incoming trigger process
821a6b2 Allow bulk association of messages
4b19c83 New function for pruning dead associations
09679fa Misspelled function name
41c6778 nngnorb should be a virtual server
6e6ee46 Zap another with-eval-after-load
c3279d2 Fix tracking messages from virtual groups
9220a10 Docstring fix
c8b80c5 Bugfix for gnorb-gnus-view
8c333ee Merge pull request #20 from totherme/master
3801ad7 Check both gnus version and emacs version.
94f6897 Don't use with-eval-after-load
fd91084 Remove incorrect "fix" for Gnus 5.13
8a9c167 Fix the cl-lib loading stuff

git-subtree-dir: packages/gnorb
git-subtree-split: 4e7039a15b47244e7bd2c580d8bce976a6116b5a

9 years agoivy.el (ivy-done): Don't expand globs
Oleh Krehel [Thu, 23 Apr 2015 08:18:53 +0000 (10:18 +0200)]
ivy.el (ivy-done): Don't expand globs

Re #55

9 years agoMerge commit 'e2452a3e77ef6ea6b193292d2c0bbbe93dd4b078' from swiper
Oleh Krehel [Wed, 22 Apr 2015 19:43:16 +0000 (21:43 +0200)]
Merge commit 'e2452a3e77ef6ea6b193292d2c0bbbe93dd4b078' from swiper

9 years agoREADME.md: Update video link
Oleh Krehel [Wed, 22 Apr 2015 16:58:06 +0000 (18:58 +0200)]
README.md: Update video link

9 years agoFixup `swiper-query-replace'
Oleh Krehel [Wed, 22 Apr 2015 15:58:09 +0000 (17:58 +0200)]
Fixup `swiper-query-replace'

* swiper.el (swiper-query-replace): Make sure to use `swiper--window'.

* ivy.el (ivy--minibuffer-setup): Remove the `use-local-map' statement,
  the map is already set in `read-from-minibuffer'.

9 years agoivy-test.el (ivy-read): Update test.
Oleh Krehel [Wed, 22 Apr 2015 15:31:24 +0000 (17:31 +0200)]
ivy-test.el (ivy-read): Update test.

REQUIRE-MATCH is nil by default.

9 years agoivy.el (ivy-read): Fix preselect logic
Oleh Krehel [Wed, 22 Apr 2015 15:24:52 +0000 (17:24 +0200)]
ivy.el (ivy-read): Fix preselect logic

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

Fixes e.g. `ert' passing "t" as the default, which isn't in collection,
but `all-completions' doesn't return nil.

9 years agoivy.el (ivy-done): Fixup
Oleh Krehel [Wed, 22 Apr 2015 15:09:56 +0000 (17:09 +0200)]
ivy.el (ivy-done): Fixup

9 years agoivy.el (ivy--add-face): Don't fail for weird str
Oleh Krehel [Wed, 22 Apr 2015 14:32:04 +0000 (16:32 +0200)]
ivy.el (ivy--add-face): Don't fail for weird str

Fixes #44

9 years agoswiper.el (swiper--ivy): Fix preselect being added
Oleh Krehel [Wed, 22 Apr 2015 13:42:39 +0000 (15:42 +0200)]
swiper.el (swiper--ivy): Fix preselect being added

9 years agoivy.el (ivy--exhibit): Wrap in `while-no-input'
Oleh Krehel [Wed, 22 Apr 2015 13:37:11 +0000 (15:37 +0200)]
ivy.el (ivy--exhibit): Wrap in `while-no-input'

* ivy.el (ivy--exhibit): `ivy--dynamic-function' will sometimes use
  `call-process'. Adding `while-no-input' speeds up things a lot, at the
  cost of a small message interrupting the minibuffer when
  `call-process' takes too long or the user types too fast.
  This message is not an issue for emacs-snapshot.

9 years agoBind "M-q" to `ivy-toggle-regexp-quote'
Oleh Krehel [Wed, 22 Apr 2015 13:36:46 +0000 (15:36 +0200)]
Bind "M-q" to `ivy-toggle-regexp-quote'

* ivy.el (ivy-minibuffer-map): Update.
(ivy--regexp-quote): New defvar.
(ivy-toggle-regexp-quote): New command, toggle `ivy--regex-function'
between the value selected in `ivy-read' and `ivy--regexp-quote'.
(ivy-read): Reset `ivy--regexp-quote' to 'regexp-quote.

Fixes #48

9 years agoAllow to customize the regex matching per-collection
Oleh Krehel [Wed, 22 Apr 2015 13:15:51 +0000 (15:15 +0200)]
Allow to customize the regex matching per-collection

* ivy.el (ivy--regex-function): New defvar.
(ivy-re-builders-alist): New defvar, use this to customize.
(ivy-read): Update.
(ivy--filter): Update.

Currently, it only works for function collections. Example:

(setq ivy-re-builders-alist
  '((read-file-name-internal . regexp-quote)
    (t . ivy--regex)))

Re #48

9 years agoivy.el (ivy-done): Be more strict for `require-match'
Oleh Krehel [Wed, 22 Apr 2015 10:59:21 +0000 (12:59 +0200)]
ivy.el (ivy-done): Be more strict for `require-match'

When `require-match' isn't in (nil confirm confirm-after-completion),
don't allow to exit if there isn't a match. Instead, amend the prompt
with "(match required)".

9 years agoChange `ivy-read' to a cl-defun
Oleh Krehel [Wed, 22 Apr 2015 10:56:19 +0000 (12:56 +0200)]
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

9 years agoivy.el (ivy--filter): Update prefix optimization
Oleh Krehel [Wed, 22 Apr 2015 10:33:16 +0000 (12:33 +0200)]
ivy.el (ivy--filter): Update prefix optimization

* ivy.el (ivy--filter): Don't use prefix optimization when the input
  contains "\".

9 years agoREADME.md: Add a note on outdated ivy package
Oleh Krehel [Wed, 22 Apr 2015 09:23:23 +0000 (11:23 +0200)]
README.md: Add a note on outdated ivy package

Fixes #51

9 years agoivy.el (ivy--filter): Try directory expansion with "/"
Oleh Krehel [Tue, 21 Apr 2015 16:12:54 +0000 (18:12 +0200)]
ivy.el (ivy--filter): Try directory expansion with "/"

* ivy.el (ivy--filter): If candidate is "x" and completing file names,
  check if "x/" is among the candidates, and if so, set `ivy--index'
  accordingly.

Re #50

9 years agoFix the default-directory for `counsel-git-grep'
Oleh Krehel [Tue, 21 Apr 2015 15:08:05 +0000 (17:08 +0200)]
Fix the default-directory for `counsel-git-grep'

* counsel.el (counsel--git-grep-dir): New defvar.
(counsel-git-grep-count): Update.
(counsel-git-grep-function): Update.
(counsel-git-grep): Update.

9 years agoAdd a way to exit ignoring the candidates
Oleh Krehel [Tue, 21 Apr 2015 15:01:58 +0000 (17:01 +0200)]
Add a way to exit ignoring the candidates

* ivy.el (ivy-immediate-done): New commad, currently unbound.
Exit the minibuffer, ignoring the candidates. Solves the same problem as
"C-f" in `ido-mode'.
(ivy-alt-done): With a prefix arg, e.g. "C-u C-j", forward to `ivy-immediate-done'.

Re #50

9 years agoivy.el (ivy-read): Don't add the `default-directory'
Oleh Krehel [Tue, 21 Apr 2015 14:46:26 +0000 (16:46 +0200)]
ivy.el (ivy-read): Don't add the `default-directory'

9 years agoivy.el (ivy-read): Use initial-input when completing files
Oleh Krehel [Tue, 21 Apr 2015 13:09:43 +0000 (15:09 +0200)]
ivy.el (ivy-read): Use initial-input when completing files

* ivy.el (ivy-read): Unless `require-match', add `initial-input' to the
  collection. This is important e.g. for `dired-dwim-target'.

9 years agoswiper.el (swiper--add-overlays): Make bounds optional
Oleh Krehel [Tue, 21 Apr 2015 13:09:23 +0000 (15:09 +0200)]
swiper.el (swiper--add-overlays): Make bounds optional

9 years agocounsel.el (counsel-git-grep-count): Ignore case
Oleh Krehel [Tue, 21 Apr 2015 13:08:57 +0000 (15:08 +0200)]
counsel.el (counsel-git-grep-count): Ignore case

9 years agoMerge commit '675bd5ff97f75fb7d838e6056442ce71adf85e56' from swiper
Oleh Krehel [Tue, 21 Apr 2015 12:02:16 +0000 (14:02 +0200)]
Merge commit '675bd5ff97f75fb7d838e6056442ce71adf85e56' from swiper

9 years agoFix describe-function / -variable "C-." interaction
Oleh Krehel [Tue, 21 Apr 2015 11:46:07 +0000 (13:46 +0200)]
Fix describe-function / -variable "C-." interaction

* counsel.el (counsel-describe-variable): Don't describe variable if
  jump-to-symbol action was chosen.
(counsel-describe-function): Don't describe variable if
  jump-to-symbol action was chosen.

I should handle this more gracefully if multiple actions become a
pattern.

9 years agocounsel.el: Add awesome swiper highlighting to git grep
Oleh Krehel [Tue, 21 Apr 2015 11:33:18 +0000 (13:33 +0200)]
counsel.el: Add awesome swiper highlighting to git grep

* counsel.el (swiper): Require.
(counsel-git-grep-function): Use `swiper--add-overlays'. Remember to set
`swiper--window', and call `swiper--cleanup'. Use `ivy--regex' in all
cases to build the regex.

9 years agoivy.el (ivy--regex): Add optional greedy arg
Oleh Krehel [Tue, 21 Apr 2015 11:30:35 +0000 (13:30 +0200)]
ivy.el (ivy--regex): Add optional greedy arg

* ivy.el (ivy--regex): When optional greedy arg is t, be greedy.  Don't
wrap a sub-expr in a group if it's already a group, for instance
"forward \(char\|list\)".

Greedy is needed, for instance, for "git grep", which doesn't work great
with non-greedy regex.

Re #47

9 years agoswiper.el (swiper--add-overlays): Update arglist
Oleh Krehel [Tue, 21 Apr 2015 10:43:43 +0000 (12:43 +0200)]
swiper.el (swiper--add-overlays): Update arglist

* swiper.el (swiper--update-input-ivy): Update.
(swiper--add-overlays): Take only the regexp as the argument.
Figure out the bounds by itself.

9 years agoivy.el (ivy-done): Don't directory-expand glob filename
Oleh Krehel [Tue, 21 Apr 2015 10:36:41 +0000 (12:36 +0200)]
ivy.el (ivy-done): Don't directory-expand glob filename

* ivy.el (ivy-done): Don't directory-expand if there's a star in the
  file name.

This change fixes the behavior of `rgrep`. It can't handle the case of
e.g. /foo/bar/\*.el, but handles \*.el fine.

Re #45

9 years agoAdd an option to call the completion action without exiting
Oleh Krehel [Tue, 21 Apr 2015 09:49:46 +0000 (11:49 +0200)]
Add an option to call the completion action without exiting

* ivy.el (ivy--persistent-action): New defvar. This is a lambda that the
  caller sets if the caller has a plan for persistent actions.
(ivy-next-line-and-call): Add and bind to "C-M-n". Identical to "C-n",
except calls `ivy--persistent-action' when it's not nil.
Add and bind to "C-M-p". Identical to "C-p",
except calls `ivy--persistent-action' when it's not nil.
(ivy-window): New defvar.
(ivy-read): Store `ivy-window'.

* counsel.el (counsel-git-grep): Use `ivy--persistent-action'.

For `counsel-git-grep', as an example, it's possible to move to the
matched place without exiting the completion with "C-M-n" and "C-M-p".
This is a nice advantage, since it gives a full context to each one-line
git grep match.

9 years agoFix double-sorting for file names
Oleh Krehel [Tue, 21 Apr 2015 09:20:31 +0000 (11:20 +0200)]
Fix double-sorting for file names

* ivy.el (ivy--sorted-files): Update.
(ivy-read): Update.

9 years agoivy.el (ivy--sorted-files): Avoid returning an empty list
Oleh Krehel [Tue, 21 Apr 2015 09:10:06 +0000 (11:10 +0200)]
ivy.el (ivy--sorted-files): Avoid returning an empty list

Fixes #49

9 years agoAllow to customize the sorting methods
Oleh Krehel [Tue, 21 Apr 2015 08:44:52 +0000 (10:44 +0200)]
Allow to customize the sorting methods

* ivy.el (ivy-sort-functions-alist): New defvar, stores sorting
  functions for various function collection types.
(ivy-sort-file-function): Remove, merge into `ivy-sort-functions-alist'.
(ivy-sort-max-size): Don't sort candidate lists larger than this size.
(ivy--sorted-files): Update.
(ivy-read): Add an argument SORT. When it's t, sort the candidates
according to `ivy-sort-functions-alist'.  It's assumed that if
COLLECTION is a function it's OK to `cl-sort' it without making a copy.
(ivy-completing-read): Call with SORT t.

* counsel.el (counsel-describe-variable): Call with SORT t.
(counsel-describe-function): Call with SORT t.

9 years agoivy.el (ivy--regex): Switch to non-greedy ".*?" joiner
Oleh Krehel [Tue, 21 Apr 2015 07:07:08 +0000 (09:07 +0200)]
ivy.el (ivy--regex): Switch to non-greedy ".*?" joiner

Fixes #47

9 years agoivy.el (ivy-done): Expand file name for empty text
Oleh Krehel [Tue, 21 Apr 2015 06:49:13 +0000 (08:49 +0200)]
ivy.el (ivy-done): Expand file name for empty text

Fixes #45

9 years agoMerge commit '294ec7f480908268055b273da96674382b84e198' from swiper
Oleh Krehel [Mon, 20 Apr 2015 17:26:54 +0000 (19:26 +0200)]
Merge commit '294ec7f480908268055b273da96674382b84e198' from swiper

9 years ago`counsel-git-grep' can now handle huge git repos
Oleh Krehel [Mon, 20 Apr 2015 16:34:43 +0000 (18:34 +0200)]
`counsel-git-grep' can now handle huge git repos

* counsel.el (counsel-git-grep-count): Return a number instead of a
  string. Apply `ivy--regex' on the input.
(counsel--git-grep-count): New defvar.
(counsel-git-grep-function): If the repo has >20000 lines, use `head' 5000
instead, but still display the true amount of matches.
(counsel-git-grep): Set `ivy--dynamic-function'.
(counsel-locate-function): Update.

* ivy.el (ivy--dynamic-function): New defvar. When this isn't nil, it
  will be called to get a new batch of candidates in case the `ivy-text'
  was changed.
(ivy--full-length): The true candidates length in case of `head' shenanigans.
(ivy--old-text): Store the old text for when `ivy--dynamic-function' was
called last.
(ivy--insert-prompt): Update.
(ivy--exhibit): Don't do filtering for non-nil `ivy--dynamic-function' -
let the caller (usually a shell tool) do the filtering.
(ivy--insert-minibuffer): New defun, created from a part of
`ivy--exhibit'.

9 years agoUse cl-plusp instead of plusp
Oleh Krehel [Mon, 20 Apr 2015 15:57:44 +0000 (17:57 +0200)]
Use cl-plusp instead of plusp

* ivy.el (cl-lib): Add require.
(ivy-alt-done): Update.

Re #43

9 years agoAdd a dynamic counsel-locate
Oleh Krehel [Sun, 19 Apr 2015 16:59:44 +0000 (18:59 +0200)]
Add a dynamic counsel-locate

* counsel.el (counsel-locate-function): New defun.
(counsel-locate): New defun.

* ivy.el (ivy--dynamic-function): New defvar.
(ivy--exhibit): Re-compute candidates use `ivy--dynamic-function' if
it's non-nil.

9 years agoSplit `ivy-completions' into `ivy--filter' and `ivy--format'
Oleh Krehel [Mon, 20 Apr 2015 15:37:13 +0000 (17:37 +0200)]
Split `ivy-completions' into `ivy--filter' and `ivy--format'

* ivy.el (ivy--exhibit): Update.
(ivy-completions): Remove.
(ivy--filter): New defun.
(ivy--format): New defun.

9 years agoMerge commit 'ac0fc8962eaa15625b127c32f75d2b3daa1ca6ef' from swiper
Oleh Krehel [Mon, 20 Apr 2015 14:07:30 +0000 (16:07 +0200)]
Merge commit 'ac0fc8962eaa15625b127c32f75d2b3daa1ca6ef' from swiper

9 years agocounsel.el (counsel-git-grep-count): Add defun
Oleh Krehel [Mon, 20 Apr 2015 14:01:03 +0000 (16:01 +0200)]
counsel.el (counsel-git-grep-count): Add defun

9 years agoswiper.el: Fix compilation warnings
Oleh Krehel [Mon, 20 Apr 2015 14:00:24 +0000 (16:00 +0200)]
swiper.el: Fix compilation warnings

9 years agoBind arrows
Oleh Krehel [Mon, 20 Apr 2015 13:53:10 +0000 (15:53 +0200)]
Bind arrows

* ivy.el (ivy-minibuffer-map): Update.

Re #40

9 years agoAdd an optimization to speed up matching
Oleh Krehel [Mon, 20 Apr 2015 12:43:14 +0000 (14:43 +0200)]
Add an optimization to speed up matching

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

9 years agoMerge commit 'efa18eca10e5a0e05043f872cf9945842bb3a034' from swiper
Oleh Krehel [Mon, 20 Apr 2015 12:32:49 +0000 (14:32 +0200)]
Merge commit 'efa18eca10e5a0e05043f872cf9945842bb3a034' from swiper

9 years agoswiper.el: Bump version
Oleh Krehel [Mon, 20 Apr 2015 12:32:05 +0000 (14:32 +0200)]
swiper.el: Bump version

9 years agoivy.el (ivy-done): Still expand "./" though
Oleh Krehel [Mon, 20 Apr 2015 11:51:04 +0000 (13:51 +0200)]
ivy.el (ivy-done): Still expand "./" though