]> code.delx.au - gnu-emacs-elpa/commit
Allow to break from `avy-goto-line' into `goto-line'
authorOleh Krehel <ohwoeowho@gmail.com>
Sat, 9 May 2015 16:14:50 +0000 (18:14 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 9 May 2015 16:14:50 +0000 (18:14 +0200)
commita53ffb7cec37ff69bc48f95ef072b8716fddf655
treeec1a77e1d14985f45d134ad39ec6511c22438e5d
parenta08b049edde2dc1f6cf445d1e5a2d9e13535fc37
Allow to break from `avy-goto-line' into `goto-line'

* avy.el (avy-handler-default): New defun.
(avy-handler-function): New variable. Bind this temporarily to catch bad chars.
(avy-read): Forward to `avy-handler-default'.

* avy-jump.el (avy--goto): Consider the case of 'exit symbol being
  returned.
(avy-goto-line): Bind `avy-handler-function' to catch digits and call
`goto-line' in that case.

Fixes #29
avy-jump.el
avy.el