]> code.delx.au - gnu-emacs-elpa/log
gnu-emacs-elpa
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

9 years agoDon't expand the default when completing file names
Oleh Krehel [Mon, 20 Apr 2015 11:47:49 +0000 (13:47 +0200)]
Don't expand the default when completing file names

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

This affects e.g. `rgrep': "\*.el" as the default will work, but
"foo/\*.el" won't.

9 years agoPropertize directories with ivy-subdir face
Oleh Krehel [Mon, 20 Apr 2015 09:51:08 +0000 (11:51 +0200)]
Propertize directories with ivy-subdir face

* ivy.el (ivy-subdir): New defface.
(ivy-completions): Update.

9 years agoSpeed up the default file sorting even more
Oleh Krehel [Mon, 20 Apr 2015 09:50:10 +0000 (11:50 +0200)]
Speed up the default file sorting even more

* ivy.el (ivy--sorted-files): Use `string-match-p' instead of
  `file-directory-p'.

9 years agoSpeed up the default file sorting
Oleh Krehel [Mon, 20 Apr 2015 09:37:44 +0000 (11:37 +0200)]
Speed up the default file sorting

* ivy.el (ivy-sort-file-function-default): Update.
(ivy--sorted-files): Update.

Turns out that calling `file-directory-p' in `cl-sort' is too expensive.
So when `ivy-sort-file-function' is `ivy-sort-file-function-default',
propertize all strings with whether they are directories or not.

When `ivy-sort-file-function' is something different,
e.g. `string-lessp', don't do propertizing since it also can be slow.

9 years agoivy.el (ivy--preselect-index): Give priority to perfect match
Oleh Krehel [Mon, 20 Apr 2015 09:06:46 +0000 (11:06 +0200)]
ivy.el (ivy--preselect-index): Give priority to perfect match

9 years agoAllow "C-." to jump to current symbol definition
Oleh Krehel [Mon, 20 Apr 2015 08:55:18 +0000 (10:55 +0200)]
Allow "C-." to jump to current symbol definition

* counsel.el (counsel-describe-map): New defvar.
(counsel-find-symbol): New defun.
(counsel--find-symbol): New defun - jump to definition of function or
symbol or library.
(counsel-describe-variable): Use `counsel-describe-map'.
(counsel-describe-function): Use `counsel-describe-map'.

9 years agoAllow to customize the file sorting order
Oleh Krehel [Mon, 20 Apr 2015 08:17:41 +0000 (10:17 +0200)]
Allow to customize the file sorting order

* ivy.el (ivy-sort-file-function-default): New defun.
(ivy-sort-file-function): New defvar. Set this to your preference.
(ivy--sorted-files): Update.

Fixes #38

9 years agoMerge dummy commit to add the gnorb subtree metadata.
Stefan Monnier [Mon, 20 Apr 2015 01:42:30 +0000 (21:42 -0400)]
Merge dummy commit to add the gnorb subtree metadata.

9 years agoMerge commit '3db1ea76a02993663d40e90c58da989212b9e81a' into gnorb-1.0.1
Stefan Monnier [Mon, 20 Apr 2015 01:35:42 +0000 (21:35 -0400)]
Merge commit '3db1ea76a02993663d40e90c58da989212b9e81a' into gnorb-1.0.1

9 years agoSquashed 'packages/gnorb/' changes from de3a512..321b23b
Stefan Monnier [Mon, 20 Apr 2015 01:28:01 +0000 (21:28 -0400)]
Squashed 'packages/gnorb/' changes from de3a512..321b23b

321b23b Remove gnus-interactive
3877b2d Still didn't have incoming-do-todo logic right
de0dff5 Protection for message disassociation
a55b0c0 Make gnorb-ids precious earlier in registry setup
806775c Wrap save-excursion around more of gnorb-org-view
982aee9 Adjust requires and autoloads
67ce358 Version 1.0.1, plus docs and NEWS
15b35dc Don't store a link to message we're replying to
b82576c Always clear attachments during triggering
7a43d8b Bug in message disassociation
c44a87b Deletion of associations when composing messages
6aef624 Restore the layout after the restore process
04ec3ab Fix logic of choosing heading to trigger
de3182e Shift location of org-reveal during trigger process
14471db Silence compiler warnings for unbound vars
aaf8556 Be a good citizen about the cl package
ad1538d Autoload cookie for gnorb-tracking-initialize
8db194a Add TAGS to .gitignore
5688114 Bugfix: Adding mailtos to newly-setup messages
e1fb666 Function for deleting all assocations of an Org heading
d4a4ccf Better handling of non-existent Org headings
4b8a6da New function for removing message/heading association
1b56250 Change wording of disassociation message
bfd8566 Be more careful about brackets on message-ids
1e071a0 Further refinements to link following
0a138f9 Reuse existing frames/windows when following links
f0ba4d7 Improvements to message disassociation
2c0f43d Refinements to link extraction
35284f2 Add TODO for collecting BBDB messages by thread
2834602 Move roadmap/todo list from manual to README
dd46ce4 Refactor finding trigger candidates
354705a Provide completion for Org tags on BBDB records

git-subtree-dir: packages/gnorb
git-subtree-split: 321b23b1ad1b770e2b2bd27921f069b9394ca4d0

9 years agoivy.el (ivy-done): Update for non-matching file names
Oleh Krehel [Sun, 19 Apr 2015 21:28:11 +0000 (23:28 +0200)]
ivy.el (ivy-done): Update for non-matching file names

* ivy.el (ivy-done): When `ivy--directory' is non-nil, accept input
  anyway.

Fixes #39

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

* hydra/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 ago* iterators/iterators.el: Don't need cl-lib at run-time.
Stefan Monnier [Sun, 19 Apr 2015 19:49:43 +0000 (15:49 -0400)]
* iterators/iterators.el: Don't need cl-lib at run-time.

9 years ago* dbus-codegen/dbus-codegen.el (dbus-codegen-make-proxy): Fix names.
Stefan Monnier [Sun, 19 Apr 2015 19:38:57 +0000 (15:38 -0400)]
* dbus-codegen/dbus-codegen.el (dbus-codegen-make-proxy): Fix names.

9 years ago* swiper.el: Fix compilation warnings
Stefan Monnier [Sun, 19 Apr 2015 19:35:04 +0000 (15:35 -0400)]
* swiper.el: Fix compilation warnings

9 years agoivy.el (ivy-completions): Fix an optimization
Oleh Krehel [Sun, 19 Apr 2015 17:13:55 +0000 (19:13 +0200)]
ivy.el (ivy-completions): Fix an optimization

9 years agoAdd a matching optimization
Oleh Krehel [Sun, 19 Apr 2015 13:26:23 +0000 (15:26 +0200)]
Add a matching optimization

* ivy.el (ivy-completions): When the new regex `re' is a contains the
  old regex `ivy--old-re', it must be true that all candidates that
  match `re' are contained inside all candidates that match
  `ivy--old-re', i.e. the pre-computed in the last step
  `ivy--old-cands'.

This should speed up completion for large (~100k) amount of candidates,
for the particular case of regex simply being extended.

9 years agocounsel.el (counsel-git-grep): Fix the default-directory
Oleh Krehel [Sun, 19 Apr 2015 12:18:55 +0000 (14:18 +0200)]
counsel.el (counsel-git-grep): Fix the default-directory

9 years agoAdd a command to grep the current git repo
Oleh Krehel [Sun, 19 Apr 2015 12:13:41 +0000 (14:13 +0200)]
Add a command to grep the current git repo

* counsel.el (counsel-git-grep-function): New defun.
(counsel-git-grep): New command.

9 years agoAdd "C-v" and "M-v" scrolling
Oleh Krehel [Sun, 19 Apr 2015 08:28:02 +0000 (10:28 +0200)]
Add "C-v" and "M-v" scrolling

* ivy.el (ivy-minibuffer-map): Update.
(ivy-scroll-up-command): New defun.
(ivy-scroll-down-command): New defun.

9 years agoivy.el (ivy-alt-done): Update for 0 candidates
Oleh Krehel [Sat, 18 Apr 2015 20:25:06 +0000 (22:25 +0200)]
ivy.el (ivy-alt-done): Update for 0 candidates

9 years agoswiper.el: Add a work-around for window-start not being current
Oleh Krehel [Sat, 18 Apr 2015 18:12:45 +0000 (20:12 +0200)]
swiper.el: Add a work-around for window-start not being current

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

This results in double the window-height amount of lines being
heightlighted, instead of just window-height. But at least it doesn't
happen that some candidates within the current window aren't highlighted
since they're beyond the outdated window-start and window-end.

An alternative would be to use `redisplay' to update `window-start' and
`window-end', but that causes excessive blinking.

* ivy-test.el: Add a require.

9 years agoMerge commit '05b6fc7acf98d44bd71d625bc6056a4125981a70' from swiper
Oleh Krehel [Sat, 18 Apr 2015 17:09:42 +0000 (19:09 +0200)]
Merge commit '05b6fc7acf98d44bd71d625bc6056a4125981a70' from swiper

9 years agoivy.el: Move all defvar before their first use
Oleh Krehel [Sat, 18 Apr 2015 17:08:40 +0000 (19:08 +0200)]
ivy.el: Move all defvar before their first use

9 years agoAdd ivy key bindings to "C-h m"
Oleh Krehel [Sat, 18 Apr 2015 16:54:01 +0000 (18:54 +0200)]
Add ivy key bindings to "C-h m"

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

Re #37

9 years agoAllow to customize the dotted directories
Oleh Krehel [Sat, 18 Apr 2015 16:33:04 +0000 (18:33 +0200)]
Allow to customize the dotted directories

* ivy.el (ivy-extra-directories): New defcustom.
(ivy--sorted-files): Update.

Re #38

9 years agoMerge commit 'fb1801ff24b09adc816ef763c9db9cd4b1b5d9dd' from swiper
Oleh Krehel [Sat, 18 Apr 2015 16:16:20 +0000 (18:16 +0200)]
Merge commit 'fb1801ff24b09adc816ef763c9db9cd4b1b5d9dd' from swiper

9 years agoAdd a work-around for completing topics in the info dir
Oleh Krehel [Sat, 18 Apr 2015 16:13:05 +0000 (18:13 +0200)]
Add a work-around for completing topics in the info dir

* ivy.el (ivy-read): Weirdly, the topic names need to be wrapped in
  "(...)". Also, `all-completions' returns nothing for "", but returns
  stuff for "(". Also, `all-completions' for "(" returns plenty of
  duplicates.

9 years agoswiper.el (swiper-font-lock-ensure): Exclude dired-mode
Oleh Krehel [Sat, 18 Apr 2015 15:23:20 +0000 (17:23 +0200)]
swiper.el (swiper-font-lock-ensure): Exclude dired-mode

9 years agocounsel.el: Switch from `with-no-warnings' to `declare-function'
Oleh Krehel [Sat, 18 Apr 2015 15:16:56 +0000 (17:16 +0200)]
counsel.el: Switch from `with-no-warnings' to `declare-function'

9 years agoMerge commit '2b7a97d44dfa0630928fdc107c784d8f352caf3c' from swiper
Oleh Krehel [Fri, 17 Apr 2015 11:44:07 +0000 (13:44 +0200)]
Merge commit '2b7a97d44dfa0630928fdc107c784d8f352caf3c' from swiper

9 years agoAllow to complete dir with "/" if it's a perfect match
Oleh Krehel [Fri, 17 Apr 2015 11:42:58 +0000 (13:42 +0200)]
Allow to complete dir with "/" if it's a perfect match

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

9 years agoAdd sorting for file completion
Oleh Krehel [Fri, 17 Apr 2015 11:29:41 +0000 (13:29 +0200)]
Add sorting for file completion

* ivy.el (ivy-alt-done): Exit with current directory when on first
  element, which is always "./", thanks to sorting.
(ivy--cd): Update.
(ivy--sorted-files): New defun for sorting file names. "./" and "../"
are always the first, then come the directories, then the files.
(ivy-read): Update.

9 years agoAdd "/" and "~" shortcuts while finding files
Oleh Krehel [Fri, 17 Apr 2015 10:53:43 +0000 (12:53 +0200)]
Add "/" and "~" shortcuts while finding files

* ivy.el (ivy--cd): New defun.
(ivy-backward-delete-char): Use `ivy--cd'.
(ivy--exhibit): When the file completion text ends in "/" or "~", move to
those dirs.

9 years agoAdd work-around for DEF not being in COLLECTION for `completing-read'
Oleh Krehel [Fri, 17 Apr 2015 10:32:11 +0000 (12:32 +0200)]
Add work-around for DEF not being in COLLECTION for `completing-read'

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

9 years agoMerge commit 'b128272d475ecb392f32fbc3e5832d76af33446b' from swiper
Oleh Krehel [Fri, 17 Apr 2015 08:05:36 +0000 (10:05 +0200)]
Merge commit 'b128272d475ecb392f32fbc3e5832d76af33446b' from swiper

9 years agoswiper.el: Remove dependency on ivy
Oleh Krehel [Fri, 17 Apr 2015 06:13:02 +0000 (08:13 +0200)]
swiper.el: Remove dependency on ivy

ivy.el now comes together with swiper.

Re #36.

9 years ago* swiper/ivy.el: Make sure cl-position-if exists at run-time.
Stefan Monnier [Thu, 16 Apr 2015 21:19:03 +0000 (17:19 -0400)]
* swiper/ivy.el: Make sure cl-position-if exists at run-time.

9 years agoIvy-mode now works better with `find-file'
Oleh Krehel [Thu, 16 Apr 2015 19:20:42 +0000 (21:20 +0200)]
Ivy-mode now works better with `find-file'

* ivy.el (ivy-minibuffer-map): Bind "C-j" to visit a directory without
  exiting the minibuffer.
(ivy--directory): New defvar.
(ivy-done): Expand file names.
(ivy-alt-done): New defun.
(ivy-backward-delete-char): When completing file names, visit the parent dir.
(ivy-read): Add the predicate argument, similar to `completing-read'.
All code that uses `ivy-read' needs to be updated. Move the collection/predicate stuff here.
(ivy-completing-read): Update.
(ivy--insert-prompt): Display the current directory when completing file names.

9 years agoMerge commit 'f0f7a844b0c423365020113c022110d899e8c1eb' from hydra
Oleh Krehel [Thu, 16 Apr 2015 18:35:13 +0000 (20:35 +0200)]
Merge commit 'f0f7a844b0c423365020113c022110d899e8c1eb' from hydra

9 years agoUse `condition-case-unless-debug'
Oleh Krehel [Thu, 16 Apr 2015 18:34:19 +0000 (20:34 +0200)]
Use `condition-case-unless-debug'

9 years agoMerge commit 'cb5ae17997a9ec239cf9d486feceb80acb433754' from swiper
Oleh Krehel [Thu, 16 Apr 2015 17:20:38 +0000 (19:20 +0200)]
Merge commit 'cb5ae17997a9ec239cf9d486feceb80acb433754' from swiper

9 years agoivy.el (ivy-completing-read): Rely more on `all-completions'
Oleh Krehel [Thu, 16 Apr 2015 17:19:38 +0000 (19:19 +0200)]
ivy.el (ivy-completing-read): Rely more on `all-completions'

9 years agoMerge commit '0cffcacdb0e0a035aa75f5276ca0c4cba688fc6f' from swiper
Oleh Krehel [Thu, 16 Apr 2015 16:39:13 +0000 (18:39 +0200)]
Merge commit '0cffcacdb0e0a035aa75f5276ca0c4cba688fc6f' from swiper

9 years agoAdd require-match functionality
Oleh Krehel [Thu, 16 Apr 2015 16:26:52 +0000 (18:26 +0200)]
Add require-match functionality

* ivy.el (ivy-require-match): New defvar.
(ivy-done): When nothing matches, and `ivy-require-match' isn't t, use
the current text anyway.
(ivy-completing-read): Update.

9 years agoMerge commit '2fd99e13ca15b6356c149deb74d6a2e78d0b264a' from swiper
Oleh Krehel [Thu, 16 Apr 2015 15:52:14 +0000 (17:52 +0200)]
Merge commit '2fd99e13ca15b6356c149deb74d6a2e78d0b264a' from swiper

9 years agoAdd function as collection support for ivy-mode
Oleh Krehel [Thu, 16 Apr 2015 15:50:31 +0000 (17:50 +0200)]
Add function as collection support for ivy-mode

* ivy.el (ivy-completing-read): Update.
Ignore initial input for function collection type.

9 years agoDon't try to fontify huge buffers
Oleh Krehel [Thu, 16 Apr 2015 13:43:28 +0000 (15:43 +0200)]
Don't try to fontify huge buffers

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

9 years agoRemove ido-mode shenanigans
Oleh Krehel [Thu, 16 Apr 2015 13:41:52 +0000 (15:41 +0200)]
Remove ido-mode shenanigans

Combining `ido-mode' and `ivy-read' seemed to cause a problem at some
stage. Can't reproduce now, so I'll just remove this for a while.

9 years agoMerge commit 'fb864353cd8dc91591942f398ef971ba7714b50f' from hydra
Oleh Krehel [Thu, 16 Apr 2015 13:08:02 +0000 (15:08 +0200)]
Merge commit 'fb864353cd8dc91591942f398ef971ba7714b50f' from hydra

9 years agoDeclare the hint early to avoid compile warnings
Oleh Krehel [Thu, 16 Apr 2015 13:05:45 +0000 (15:05 +0200)]
Declare the hint early to avoid compile warnings

* hydra.el (hydra-fontify-head-greyscale): Update unused arg.
(hydra--make-defun): Update.
(hydra--head-name): Take one less arg.
(defhydra): Update hint position.

* hydra-init.el: Byte compile more stuff.

* hydra-test.el: Update tests.

* Makefile: Rename compile target to "run", update "compile".

9 years agoMerge commit '742d66a63e86ac740e610faa5abba97e7f8ad5c2' from hydra
Oleh Krehel [Thu, 16 Apr 2015 12:38:55 +0000 (14:38 +0200)]
Merge commit '742d66a63e86ac740e610faa5abba97e7f8ad5c2' from hydra

Conflicts:
packages/hydra/hydra-test.el
packages/hydra/hydra.el

9 years agohydra.el: Bump version
Oleh Krehel [Thu, 16 Apr 2015 12:13:37 +0000 (14:13 +0200)]
hydra.el: Bump version

9 years agoMerge commit '3b78e0e503f4763f8a2d77eeacfc91213ec5532e' from swiper
Oleh Krehel [Thu, 16 Apr 2015 12:12:01 +0000 (14:12 +0200)]
Merge commit '3b78e0e503f4763f8a2d77eeacfc91213ec5532e' from swiper

9 years agoswiper.el: Bump version
Oleh Krehel [Thu, 16 Apr 2015 12:08:57 +0000 (14:08 +0200)]
swiper.el: Bump version

9 years agoMerge commit 'd592e36f33ac7e1fece462c5b7157f330c732630' from ace-window
Oleh Krehel [Thu, 16 Apr 2015 12:07:03 +0000 (14:07 +0200)]
Merge commit 'd592e36f33ac7e1fece462c5b7157f330c732630' from ace-window

9 years ago(csv-mode): Set mode-line-position rather than mode-line-format.
Stefan Monnier [Thu, 16 Apr 2015 01:28:14 +0000 (21:28 -0400)]
(csv-mode): Set mode-line-position rather than mode-line-format.

Fixes: debbugs:20343
* csv-mode/csv-mode.el (csv-mode-line-format): Only keep the CSV part
of the mode line.

9 years ago* js2-mode.el (js2-mode): Use cursor-sensor-mode if available.
Stefan Monnier [Wed, 15 Apr 2015 21:18:37 +0000 (17:18 -0400)]
* js2-mode.el (js2-mode): Use cursor-sensor-mode if available.

(js2-export-node): Fix apparent paren typo.
(js2-get-token-internal-1): Remove unused var `quote-char'.
(js2-clear-face): Also remove cursor-sensor-functions.
(js2-parse-primary-expr): Remove unused var `pn'.
(js2-parse-legacy-array-comp): Remove unused var `first'.
(js2-mode-show-node, js2-mode-show-warn-or-err): Use cursor-sensor-functions
if available.
(js2-mode-hide-overlay, js2-echo-error): Adapt to new calling convention.
(js2-echo-help): Declare obsolete.
(js2-mode-extend-comment): Look for the appropriate property.

9 years agoDon't re-activate key chords too early
Oleh Krehel [Wed, 15 Apr 2015 17:49:48 +0000 (19:49 +0200)]
Don't re-activate key chords too early

* hydra.el (hydra-disable): Re-activate key chords only if
  `hydra--ignore' is nil.
(hydra-keyboard-quit): Update.

Re #97

9 years agohydra.el (defhydra): Re-throw a caught error when debug-on-error
Oleh Krehel [Wed, 15 Apr 2015 08:07:24 +0000 (10:07 +0200)]
hydra.el (defhydra): Re-throw a caught error when debug-on-error

* hydra.el (defhydra): Update.

9 years agoAdd an idle message timeout option
Oleh Krehel [Wed, 15 Apr 2015 07:15:35 +0000 (09:15 +0200)]
Add an idle message timeout option

* hydra.el (hydra-keyboard-quit): Update.
(hydra--make-defun): Update.
(hydra-timeout-timer): Rename from `hydra-timer'.
(hydra-message-timer): New defvar.
(hydra-idle-message): New defun.
(hydra-timeout): Update.

Small example:

(defhydra hydra-zoom (:idle 1.0)
  "zoom"
  ("g" text-scale-increase "in")
  ("l" text-scale-decrease "out"))
(global-set-key (kbd "<f2> g") 'hydra-zoom/body)

With this code, `hydra-zoom/body' will display the hint not immediately
but after 1.0 seconds. If you manage to exit the hydra by then, the hint
will not be displayed. Other functions will display the hint
immediately.

Fixes #108

9 years agohydra.el (hydra--format): Fix "s-t" issue
Oleh Krehel [Wed, 15 Apr 2015 08:12:39 +0000 (10:12 +0200)]
hydra.el (hydra--format): Fix "s-t" issue

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

Fixes #107.

9 years agoAdd integration test for red hydras temporarily exiting
Oleh Krehel [Wed, 15 Apr 2015 06:49:39 +0000 (08:49 +0200)]
Add integration test for red hydras temporarily exiting

* hydra-test.el (hydra-simple-3): Add.
(hydra-integration-3): Add.

Re #109

9 years agoFix red heads not exiting temporarily
Oleh Krehel [Wed, 15 Apr 2015 06:43:23 +0000 (08:43 +0200)]
Fix red heads not exiting temporarily

* hydra.el (hydra--ignore): New defvar.
(hydra-disable): Don't call :post unless `hydra--ignore' is nil.
(hydra--make-defun): Temporarily disable transient map before calling
the command.

Fixes #109

9 years agoseq.el update
Nicolas Petton [Tue, 14 Apr 2015 23:50:21 +0000 (01:50 +0200)]
seq.el update

* packages/seq/seq.el: Update seq.el to version 1.4
* packages/seq/tests/seq-tests.el: Update seq.el to version 1.4

9 years agoREADME.md: Update `hydra-zoom/body'
Oleh Krehel [Tue, 14 Apr 2015 13:59:27 +0000 (15:59 +0200)]
README.md: Update `hydra-zoom/body'

9 years agoREADME.md: Update intro
Oleh Krehel [Tue, 14 Apr 2015 13:54:56 +0000 (15:54 +0200)]
README.md: Update intro

9 years agohydra.el (hydra--format): Match alnum for the "_..._" syntax
Oleh Krehel [Tue, 14 Apr 2015 12:29:22 +0000 (14:29 +0200)]
hydra.el (hydra--format): Match alnum for the "_..._" syntax

Fixes #106

9 years agoWork around `overriding-terminal-local-map' being terminal-local
Oleh Krehel [Tue, 14 Apr 2015 11:34:09 +0000 (13:34 +0200)]
Work around `overriding-terminal-local-map' being terminal-local

* hydra.el (hydra-disable): Try to reset `overriding-terminal-local-map'
  for each frame, so that it doesn't happen that the hydra is cancelled
  in one frame, but not in the other. `hydra-curr-on-exit' is called in
  the first frame for which there's a transient map.

(hydra--clearfun): Disable when `overriding-terminal-local-map' is nil.

Fixes #105

9 years agoREADME.md: Add video demo link
Oleh Krehel [Tue, 14 Apr 2015 08:45:28 +0000 (10:45 +0200)]
README.md: Add video demo link

9 years agoMove `this-command' setter
Oleh Krehel [Mon, 13 Apr 2015 21:14:05 +0000 (23:14 +0200)]
Move `this-command' setter

* hydra.el (hydra--call-interactively): New defun.
(hydra--make-defun): Update.

Re #79

9 years agoSet `this-command' when appropriate
Oleh Krehel [Mon, 13 Apr 2015 19:29:45 +0000 (21:29 +0200)]
Set `this-command' when appropriate

* hydra.el (hydra--make-defun): Update.

* hydra-test.el: Update tests.

Re #79

9 years agoFix thing-at-point in describe-function and -variable
Oleh Krehel [Mon, 13 Apr 2015 16:55:46 +0000 (18:55 +0200)]
Fix thing-at-point in describe-function and -variable

* counsel.el (counsel-describe-variable): Update.
(counsel-describe-function): Update.

9 years agoUpgrade debbugs to 0.7
Michael Albinus [Mon, 13 Apr 2015 14:34:38 +0000 (16:34 +0200)]
Upgrade debbugs to 0.7

* debbugs-gnu.el (debbugs-gnu-default-packages): Update list.

9 years agohydra.el (hydra--head-color): Remove
Oleh Krehel [Mon, 13 Apr 2015 12:31:36 +0000 (14:31 +0200)]
hydra.el (hydra--head-color): Remove

* hydra.el (hydra-fontify-head-default): Move `hydra--head-color' body
  here.
(hydra-fontify-head-greyscale): Simplify.
(hydra--make-defun): Simplify.
(hydra--head-name): Simplify.
(hydra--delete-duplicates): Update.
(defhydra): Update.

9 years agohydra.el (hydra--head-color): Simplify
Oleh Krehel [Mon, 13 Apr 2015 12:08:43 +0000 (14:08 +0200)]
hydra.el (hydra--head-color): Simplify

* hydra.el (hydra-face-red):
(hydra-face-blue):
(hydra-face-amaranth):
(hydra-face-pink):
(hydra-face-teal): Improve docstrings.
(hydra--head-color): Simplify.
(defhydra): Use copy-sequence on inherited heads. Move :cmd-name setting
to the very end, when :exit is already set.

* hydra-test.el: Update tests.

9 years agoMake digit and negative arguments work in 24.3
Oleh Krehel [Mon, 13 Apr 2015 10:26:02 +0000 (12:26 +0200)]
Make digit and negative arguments work in 24.3

* hydra.el (hydra--digit-argument): Update.
(hydra--negative-argument): Update.

Just flatten these two functions to their 25.2 bodies, and don't call
the `set-transient-map' variants, since the map remains anyway because
of `hydra-base-map'.

9 years agoAdd an integration test for digit args in amaranth
Oleh Krehel [Mon, 13 Apr 2015 10:01:58 +0000 (12:01 +0200)]
Add an integration test for digit args in amaranth

* hydra-test.el (hydra-simple-1): Rename.
(hydra-simple-2): New auxiliary hydra.
(hydra-integration-2): Add test.

Re #104

9 years agoAccount for digit argument
Oleh Krehel [Mon, 13 Apr 2015 09:51:10 +0000 (11:51 +0200)]
Account for digit argument

* hydra.el (hydra--clearfun): Update. digit-argument will modify
  this-command-keys-vector, but not this-single-command-keys.

Fixes #104

9 years agoFinalize head inheritance
Oleh Krehel [Mon, 13 Apr 2015 09:33:01 +0000 (11:33 +0200)]
Finalize head inheritance

* hydra.el (hydra--body-exit): New defun.
(defhydra): Ensure that each head doesn't need the :exit info from the
body any more by putting the aggregated :exit in the head's own plist.

* hydra-test.el: Update tests.

Each hydra will now declare its own heads as a variable `foo/heads`.
It's possible to inherit them like this:

(defhydra hydra-zoom-child (:inherit (hydra-zoom/heads))
  "zoom"
  ("q" nil))

One hydra can inherit from multiple parents. This one just adds a single
"q" head to the familiar hydra-zoom.

Fixes #57.

9 years agoupdate ada-mode, wisi
Stephen Leake [Sun, 12 Apr 2015 18:34:18 +0000 (13:34 -0500)]
update ada-mode, wisi

* packages/ada-mode/*: version 5.1.8

* packages/wisi/*: version 1.1.1

9 years agohydra.el (hydra--body-color): Remove
Oleh Krehel [Sun, 12 Apr 2015 11:57:00 +0000 (13:57 +0200)]
hydra.el (hydra--body-color): Remove

* hydra.el (hydra--head-color): Update.
(hydra--make-defun): Update.
(defhydra): Update.

9 years agohydra.el (hydra--face): Remove
Oleh Krehel [Sun, 12 Apr 2015 11:36:25 +0000 (13:36 +0200)]
hydra.el (hydra--face): Remove

* hydra.el (hydra-fontify-head-default): Update.

9 years agoUse a variable instead of a function for the hint
Oleh Krehel [Sat, 11 Apr 2015 16:37:09 +0000 (18:37 +0200)]
Use a variable instead of a function for the hint

* hydra.el (hydra--message): Remove.
(hydra--make-defun): Update.
(defhydra): Replace "defun foo/hint" with "defvar foo/hint".

This will allow to dynamically modify the hint in the future.

* hydra-test.el: Update tests.

9 years agoUse `unwind-protect' for :after-exit
Oleh Krehel [Sat, 11 Apr 2015 13:27:46 +0000 (15:27 +0200)]
Use `unwind-protect' for :after-exit

* hydra.el (hydra--make-defun): Update.

This change makes "C-g" work for this hydra:

(defhydra hydra-goto-line (global-map "M-g"
                           :pre (linum-mode 1)
                           :after-exit (linum-mode -1)
                           :exit t)
  ("g" goto-line "line")
  ("c" goto-char "char"))

Re #90

9 years agoAdd basic error handling
Oleh Krehel [Sat, 11 Apr 2015 09:38:18 +0000 (11:38 +0200)]
Add basic error handling

* hydra.el (defhydra): When the macro fails, message an error and
  continue as if the defhydra call wasn't there.

9 years agoAlias :post to :before-exit, and add :after-exit
Oleh Krehel [Sat, 11 Apr 2015 09:28:01 +0000 (11:28 +0200)]
Alias :post to :before-exit, and add :after-exit

* hydra.el (hydra--make-defun): Update.
(hydra--make-funcall): Update doc.
(defhydra): Update.

Re #90