]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
9 years agoMerge commit '829bdb6dcb08e2b1a8d8c329e697156e5fa2dbcc' from swiper
Oleh Krehel [Sun, 3 May 2015 10:58:27 +0000 (12:58 +0200)]
Merge commit '829bdb6dcb08e2b1a8d8c329e697156e5fa2dbcc' from swiper

9 years agoswiper.el: Bump version
Oleh Krehel [Sun, 3 May 2015 10:57:37 +0000 (12:57 +0200)]
swiper.el: Bump version

9 years agoivy.el (ivy-resume): Quote the preselect
Oleh Krehel [Sun, 3 May 2015 10:02:01 +0000 (12:02 +0200)]
ivy.el (ivy-resume): Quote the preselect

9 years agoFix the candidate index for `ivy-resume'
Oleh Krehel [Sat, 2 May 2015 16:04:17 +0000 (18:04 +0200)]
Fix the candidate index for `ivy-resume'

* ivy.el (ivy--preselect-index): The the regex, not the plain text.

9 years agoAdd unwind argument to ivy-read
Oleh Krehel [Sat, 2 May 2015 15:50:17 +0000 (17:50 +0200)]
Add unwind argument to ivy-read

* ivy.el (ivy-state): Add `unwind' field.
(ivy-resume): Update.
(ivy-read): Call the `unwind' argument in the unwind form.

* swiper.el (swiper--ivy): Use `unwind' for `ivy-read'.

9 years ago* spinner: Rename constructor.
Artur Malabarba [Sat, 2 May 2015 10:23:46 +0000 (11:23 +0100)]
* spinner: Rename constructor.

9 years agoMerge ivy--persistent-action into ivy-state-action
Oleh Krehel [Fri, 1 May 2015 20:44:57 +0000 (22:44 +0200)]
Merge ivy--persistent-action into ivy-state-action

* counsel.el (counsel-git-grep): Update.

* ivy.el (ivy--persistent-action): Remove defvar.
(ivy-next-line-and-call): Update.
(ivy-previous-line-and-call): Update.

9 years agoivy-resume now works for functions that supply action
Oleh Krehel [Fri, 1 May 2015 20:01:30 +0000 (22:01 +0200)]
ivy-resume now works for functions that supply action

ivy.el (ivy-resume): Use action

Functions like `counsel-describe-funtion' and `counsel-describe-varible'
are now resume-able: after finishing with "RET" or breaking out with
"C-g" it's possible to resume the query in the same state as it
was (same collection, input, index).

With:

(global-set-key (kbd "C-c C-r") 'ivy-resume)

it's possible to e.g.:

- "F1 f" info read "RET" to describe Info-breadcrumbs
- "C-c C-r" "C-n" to describe Info-read-node-name
- "C-c C-r" "C-n" to describe Info-read-node-name-1
...

9 years agoMerge ivy--action into ivy-last
Oleh Krehel [Fri, 1 May 2015 19:49:25 +0000 (21:49 +0200)]
Merge ivy--action into ivy-last

* ivy.el (ivy-state): Add action field.
(ivy-set-action): New defun. Just a shortcut to set action.
(ivy--action): Remove defvar.
(ivy-read): Add action argument. Check (ivy-state-action ivy-last) in
the end and call it, since the action can change during the completion.
(ivy--insert-prompt): Add `counsel-find-symbol' to the list.
(ivy--format): If there are no matches, set `ivy--current' to "".

9 years agoMerge ivy-window into ivy-last
Oleh Krehel [Fri, 1 May 2015 18:37:54 +0000 (20:37 +0200)]
Merge ivy-window into ivy-last

* ivy.el (ivy-state): Add a window field.
(ivy-window): Remove defvar.
(ivy-next-line-and-call): Update.
(ivy-previous-line-and-call): Update.
(ivy-read): Update.

9 years agoMerge ivy-def into ivy-last
Oleh Krehel [Fri, 1 May 2015 18:34:05 +0000 (20:34 +0200)]
Merge ivy-def into ivy-last

* ivy.el (ivy-def): Remove defvar.
(ivy-read): Update.
(ivy--filter): Update.

9 years agoAllow to quote spaces while matching
Oleh Krehel [Fri, 1 May 2015 18:28:21 +0000 (20:28 +0200)]
Allow to quote spaces while matching

* ivy.el (ivy--split): New defun.

Use (ivy--split str) in place of (split-string str " +" t).
Allows to "quote" N spaces by inputting N+1 spaces.

9 years agoAdd ivy-state struct
Oleh Krehel [Fri, 1 May 2015 18:01:08 +0000 (20:01 +0200)]
Add ivy-state struct

* ivy.el (ivy-state): New defstruct.
(ivy-last): A single global to store an `ivy-state' struct.
(ivy-require-match): Move into `ivy-last'.
(ivy-done): Update.
(ivy-resume): New defun. Initial draft, kind of works for swiper. Need
to add a callback of what to do with the result as an argument.
(ivy-read): Store all arguments into `ivy-last'.
(ivy-completing-read): Update doc.

9 years agoMerge commit '5a2e0fd355fea83e3c172402b965a1aa826fcc0c' from swiper
Oleh Krehel [Fri, 1 May 2015 14:22:31 +0000 (16:22 +0200)]
Merge commit '5a2e0fd355fea83e3c172402b965a1aa826fcc0c' from swiper

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 agoAllow for "/ssh:user@" as well as for "/ssh:"
Oleh Krehel [Thu, 30 Apr 2015 10:25:50 +0000 (12:25 +0200)]
Allow for "/ssh:user@" as well as for "/ssh:"

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

Re #59

9 years agoImprove TRAMP completion for ivy-mode
Oleh Krehel [Thu, 30 Apr 2015 09:25:09 +0000 (11:25 +0200)]
Improve TRAMP completion for ivy-mode

* ivy.el (ivy-build-tramp-name): New defun.
(ivy-alt-done): Use arcane TRAMP stuff to complete host names.

Re #59

9 years agoivy.el (ivy-read): Reset `ivy-text' earlier
Oleh Krehel [Thu, 30 Apr 2015 09:24:06 +0000 (11:24 +0200)]
ivy.el (ivy-read): Reset `ivy-text' earlier

Related to `counsel-git-grep' "-3 chars more".

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 agoivy.el (ivy--regex): Fixup
Oleh Krehel [Thu, 30 Apr 2015 07:15:10 +0000 (09:15 +0200)]
ivy.el (ivy--regex): Fixup

Fixes #62

9 years agoDon't error on bad regex
Oleh Krehel [Thu, 30 Apr 2015 06:42:01 +0000 (08:42 +0200)]
Don't error on bad regex

* ivy.el (ivy--filter): When on bad regex, just set the result to nil.

Fixes #70

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 agoUpdate and improve faces
Oleh Krehel [Wed, 29 Apr 2015 15:00:54 +0000 (17:00 +0200)]
Update and improve faces

* ivy.el (ivy-subdir): Inherit from dired-directory.

* swiper.el (swiper-match-face-1): Update doc.
(swiper-match-face-2): Update doc.
(swiper-match-face-3): Update doc.
(swiper-match-face-4): Inherit from isearch-fail.
(swiper--add-overlays): Fix the faces order swapping on the second
match.

Now it finally works as planned: face-1 is the background (re group 0),
next it cycles: face-2, face-3, face-4, face-2, face-3, face-4.

9 years agoAdd gamma-correction to alpha-blending
Oleh Krehel [Wed, 29 Apr 2015 12:32:36 +0000 (14:32 +0200)]
Add gamma-correction to alpha-blending

* colir.el (colir-compose-method): Make 'colir-compose-alpha default.
(colir-compose-alpha): Add gamma-correction.

9 years agocolir.el: Add two additional blend algorithms
Oleh Krehel [Wed, 29 Apr 2015 12:15:44 +0000 (14:15 +0200)]
colir.el: Add two additional blend algorithms

* colir.el (colir-join): Remove.
(color): Require.
(colir-compose-method): New defcustom.
(colir-compose-soft-light): New defun.
(colir-compose-overlay): New defun.
(colir-compose-alpha): New defun.
(colir-blend): Update.
(colir-blend-face-background): Update.

9 years agoivy.el (ivy--exhibit): Fixup last commit
Oleh Krehel [Wed, 29 Apr 2015 10:10:09 +0000 (12:10 +0200)]
ivy.el (ivy--exhibit): Fixup last commit

* ivy.el (ivy--old-text): Should always be a string.
(ivy-read): Update.
(ivy--exhibit): Recompute candidates on flip, always set `ivy--old-re'
to nil.

9 years agoImprove hidden buffer completion further
Oleh Krehel [Wed, 29 Apr 2015 08:14:23 +0000 (10:14 +0200)]
Improve hidden buffer completion further

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

Fixes #68
Fixes #69

9 years agoImprove the completion of hidden buffers
Oleh Krehel [Wed, 29 Apr 2015 06:48:39 +0000 (08:48 +0200)]
Improve the completion of hidden buffers

* ivy.el (ivy--collection): New defvar.
(ivy-read): Update.
(ivy--exhibit): Update.

Re #68.

9 years agoBind "TAB" to do partial completion
Oleh Krehel [Wed, 29 Apr 2015 06:46:31 +0000 (08:46 +0200)]
Bind "TAB" to do partial completion

* ivy.el (ivy-minibuffer-map): Update.
(ivy-alt-done): New defun.
(ivy--old-text): Update.

Re #63.

9 years agocounsel.el (counsel-git-grep): Add optional initial-input
Oleh Krehel [Tue, 28 Apr 2015 19:58:44 +0000 (21:58 +0200)]
counsel.el (counsel-git-grep): Add optional initial-input

* counsel.el (counsel-git-grep): Update.

Fixes #66

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 agoivy.el (ivy-re-builders-alist): Improve doc
Oleh Krehel [Tue, 28 Apr 2015 15:00:57 +0000 (17:00 +0200)]
ivy.el (ivy-re-builders-alist): Improve doc

Re #62

9 years agoivy.el: Fixup docstrings
Oleh Krehel [Tue, 28 Apr 2015 14:44:05 +0000 (16:44 +0200)]
ivy.el: Fixup docstrings

* ivy.el (ivy-require-match): Update.
(ivy-def): Update.
(ivy--prompt-extra): Update.
(ivy--maybe-scroll-history): Update.
(ivy-completing-read): Update.
(ivy--insert-minibuffer): Update.
(ivy--filter): Update.

9 years agoAdd an option for multi-tier regex matching
Oleh Krehel [Tue, 28 Apr 2015 14:35:32 +0000 (16:35 +0200)]
Add an option for multi-tier regex matching

* ivy.el (ivy--regex-plus): New defun. This is an example for the
  multi-tier interface.
(ivy--filter): Update.

To use it, add e.g.:

(setq ivy-re-builders-alist
      '((t . ivy--regex-plus)))

Example using boost_1_58_0 and `find-file-in-project`:

* "utility" - 234 matches
* "utility hpp" - 139 matches
* "utility !hpp" - 95 matches

Fixes #62

9 years agoMakefile: Update
Oleh Krehel [Tue, 28 Apr 2015 14:08:22 +0000 (16:08 +0200)]
Makefile: Update

9 years agoUse alpha compositing to add ivy-current-match face
Oleh Krehel [Tue, 28 Apr 2015 13:15:51 +0000 (15:15 +0200)]
Use alpha compositing to add ivy-current-match face

* ivy.el (ivy--exhibit): Use `colir-blend-face-background'. In case it
  fails, try `font-lock-append-text-property', which was used before.

* colir.el (colir-join): New defun.
(colir-blend): New defun.
(colir-blend-face-background): New defun.

9 years agoswiper.el (swiper-font-lock-ensure): Exclude `elfeed-search-mode'
Oleh Krehel [Tue, 28 Apr 2015 12:44:57 +0000 (14:44 +0200)]
swiper.el (swiper-font-lock-ensure): Exclude `elfeed-search-mode'

9 years agoivy.el (ivy--filter): Fixup
Oleh Krehel [Tue, 28 Apr 2015 11:01:23 +0000 (13:01 +0200)]
ivy.el (ivy--filter): Fixup

Fixes #65

9 years agoivy.el (ivy-alt-done): Treat `ivy-text' with ":" verbatim
Oleh Krehel [Tue, 28 Apr 2015 09:06:09 +0000 (11:06 +0200)]
ivy.el (ivy-alt-done): Treat `ivy-text' with ":" verbatim

* ivy.el (ivy-alt-done): Should work better now for ssh: stuff.

It should be possible to type in any directory: `/ssh:user@domain.com:`
<kbd>C-j</kbd> and get completion.

Re #59

9 years agoStore the preselect and use it for empty ivy-text
Oleh Krehel [Tue, 28 Apr 2015 08:46:28 +0000 (10:46 +0200)]
Store the preselect and use it for empty ivy-text

* ivy.el (ivy-def): New defvar.
(ivy-read): Store `ivy-def'.
(ivy-completing-read): Update.
(ivy--filter): When the input is empty, set `ivy--index' to select
`ivy-def'.

Fixes #64

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 agoImprove completion history using the propertize trick
Oleh Krehel [Sat, 25 Apr 2015 11:44:52 +0000 (13:44 +0200)]
Improve completion history using the propertize trick

* ivy.el (ivy-previous-history-element): Update.
(ivy-next-history-element): Update.
(ivy--maybe-scroll-history): New defun. When the history element string
has ivy-index property, set `ivy--index' to that.

Fixes #46

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 agoMinibuffer faces should inherit minibuffer-prompt
Oleh Krehel [Fri, 24 Apr 2015 11:36:40 +0000 (13:36 +0200)]
Minibuffer faces should inherit minibuffer-prompt

* ivy.el (ivy-confirm-face): Update.
(ivy-match-required-face): Update.

Re #60

9 years agoImprove the match confirm while completing files
Oleh Krehel [Fri, 24 Apr 2015 10:52:40 +0000 (12:52 +0200)]
Improve the match confirm while completing files

* ivy.el (ivy-confirm-face): New face.
(ivy-match-required-face): New face.
(ivy--prompt-extra): New defvar, the prompt is concatenaded with this.
(ivy--extend-prompt): Remove.
(ivy-done): Update.
(ivy--insert-prompt): Use `ivy--prompt-extra'. Reset it unless the
`this-command' is appropriate.
(ivy--set-match-props): New defun.

Fixes #60

9 years agoReset to the first candidate when switching directories
Oleh Krehel [Fri, 24 Apr 2015 09:54:46 +0000 (11:54 +0200)]
Reset to the first candidate when switching directories

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

9 years agoPropertize remote buffers with ivy-remote face
Oleh Krehel [Fri, 24 Apr 2015 06:06:48 +0000 (08:06 +0200)]
Propertize remote buffers with ivy-remote face

* ivy.el (ivy-remote): New face.
(ivy-read): Update.

Fixes #61

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 agoRespect `confirm-nonexistent-file-or-buffer'
Oleh Krehel [Thu, 23 Apr 2015 21:21:26 +0000 (23:21 +0200)]
Respect `confirm-nonexistent-file-or-buffer'

* ivy.el (ivy--extend-prompt): New defun.
(ivy-done): Ask for a confirmation if no candidates match and
`confirm-nonexistent-file-or-buffer' is t.

Re #60

9 years agoivy.el (ivy-read): Fixup preselect addition
Oleh Krehel [Thu, 23 Apr 2015 21:19:15 +0000 (23:19 +0200)]
ivy.el (ivy-read): Fixup preselect addition

It was unnecessarily inserting `preselect' when completing tags.

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 agoivy.el (ivy--cd): Reset `ivy--old-re'
Oleh Krehel [Thu, 23 Apr 2015 19:43:10 +0000 (21:43 +0200)]
ivy.el (ivy--cd): Reset `ivy--old-re'

* ivy.el (ivy--cd): Switching directory switches the candidates, so
`ivy--old-re' must be invalidated.

Fixes #58

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'.