]> code.delx.au - gnu-emacs-elpa/commit
ivy.el (ivy-completion-in-region): Fix a few bugs
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 8 Jan 2016 08:38:04 +0000 (09:38 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 8 Jan 2016 08:38:04 +0000 (09:38 +0100)
commit426cfcba2b75d27bd98a0bad98e100518021f481
tree77635ed1628afc196a8dd15b42fe73bf0ed38e28
parent2ea56ec661adce601e5f3bcc0e28ee013a052c27
ivy.el (ivy-completion-in-region): Fix a few bugs

* ivy.el (ivy-completion-common-length): New defun.

`all-completions' doesn't always return candidates that can replace the
whole region between BEG and END. That's why
`completion-all-completions' should be used, which marks the common part
with 'completions-common-part face. Then the new region to replace is
((- END common-length) . END).

Note also that `text-property-any' doesn't always work in
`ivy-completion-common-length', since the 'face property can be a list.
(ivy-completion-in-region): Set `enable-recursive-minibuffers'.

Fixes #341
ivy.el