(defcustom avy-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l)
"Keys for jumping.")
-(define-obsolete-variable-alias 'avi-keys 'avy-keys "0.1.0")
(defcustom avy-background nil
"When non-nil, a gray background will be added during the selection."
:type 'boolean)
-(define-obsolete-variable-alias 'avi-background 'avy-background "0.1.0")
(defcustom avy-word-punc-regexp "[!-/:-@[-`{-~]"
"Regexp of punctuation characters that should be matched when calling
`avy-goto-word-1' command. When nil, punctuation chars will not be matched.
\"[!-/:-@[-`{-~]\" will match all printable punctuation chars.")
-(define-obsolete-variable-alias 'avi-word-punc-regexp 'avy-word-punc-regexp "0.1.0")
(defface avy-lead-face
- '((t (:foreground "white" :background "#e52b50")))
+ '((t (:foreground "white" :background "#e52b50")))
"Face used for the leading chars.")
-(define-obsolete-face-alias 'avi-lead-face 'avy-lead-face "0.1.0")
(defface avy-background-face
'((t (:foreground "gray40")))
(setq pt (car pt)))
(unless (= pt (point)) (push-mark))
(goto-char pt))))
-(define-obsolete-function-alias 'avi--goto 'avy--goto "0.1.0")
(defun avy--process (candidates overlay-fn)
"Select one of CANDIDATES using `avy-read'."
overlay-fn
#'avy--remove-leading-chars)))
(avy--done)))
-(define-obsolete-function-alias 'avi--process 'avy--process "0.1.0")
(defvar avy--overlays-back nil
"Hold overlays for when `avy-background' is t.")
(defcustom avy-all-windows t
"When non-nil, loop though all windows for candidates."
:type 'boolean)
-(define-obsolete-variable-alias 'avi-all-windows 'avy-all-windows "0.1.0")
(defun avy--regex-candidates (regex &optional wnd beg end pred)
"Return all elements that match REGEX in WND.
(if (consp leaf)
(cdr leaf)
(selected-window))))
-(define-obsolete-function-alias 'avi--overlay-pre 'avy--overlay-pre "0.1.0")
(defun avy--overlay-at (path leaf)
"Create an overlay with STR at LEAF.
(overlay-put ol 'window wnd)
(overlay-put ol 'display str)
(push ol avy--overlays-lead))))
-(define-obsolete-function-alias 'avi--overlay-at 'avy--overlay-at "0.1.0")
(defun avy--overlay-post (path leaf)
"Create an overlay with STR at LEAF.
(if (consp leaf)
(cdr leaf)
(selected-window))))
-(define-obsolete-function-alias 'avi--overlay-post 'avy--overlay-post "0.1.0")
(defun avy--generic-jump (regex flip)
"Jump to REGEX.
(interactive "P")
(avy--generic-jump
(string (read-char "char: ")) arg))
-(define-obsolete-function-alias 'avi-goto-char 'avy-goto-char "0.1.0")
;;;###autoload
(defun avy-goto-char-2 (&optional arg)
(read-char "char 1: ")
(read-char "char 2: "))
arg))
-(define-obsolete-function-alias 'avi-goto-char-2 'avy-goto-char-2 "0.1.0")
;;;###autoload
(defun avy-isearch ()
(avy--process candidates #'avy--overlay-post)))
(isearch-done)
(avy--goto candidate)))
-(define-obsolete-function-alias 'avi-isearch 'avy-isearch "0.1.0")
;;;###autoload
(defun avy-goto-word-0 (arg)
(interactive "P")
(let ((avy-keys (number-sequence ?a ?z)))
(avy--generic-jump "\\b\\sw" arg)))
-(define-obsolete-function-alias 'avi-goto-word-0 'avy-goto-word-0 "0.1.0")
;;;###autoload
(defun avy-goto-subword-0 (&optional arg)
(cl-incf (caar x))))
(avy--goto
(avy--process candidates #'avy--overlay-pre))))
-(define-obsolete-function-alias 'avi-goto-subword-0 'avy-goto-subword-0 "0.1.0")
;;;###autoload
(defun avy-goto-word-1 ()
str)))))
(avy--goto
(avy--process candidates #'avy--overlay-pre))))
-(define-obsolete-function-alias 'avi-goto-word-1 'avy-goto-word-1 "0.1.0")
(defun avy--line (&optional arg)
"Select line in current window."
"Jump to a line start in current buffer."
(interactive "P")
(avy--goto (avy--line arg)))
-(define-obsolete-function-alias 'avi-goto-line 'avy-goto-line "0.1.0")
;;;###autoload
(defun avy-copy-line (arg)
(move-end-of-line arg)
(point)))
"\n"))))
-(define-obsolete-function-alias 'avi-copy-line 'avy-copy-line "0.1.0")
;;;###autoload
(defun avy-move-line (arg)
(insert
(current-kill 0)
"\n"))))
-(define-obsolete-function-alias 'avi-move-line 'avy-move-line "0.1.0")
;;;###autoload
(defun avy-copy-region ()
(goto-char end)
(line-end-position)))
pad))))
+
+(define-obsolete-variable-alias 'avi-keys 'avy-keys "0.1.0")
+(define-obsolete-variable-alias 'avi-background 'avy-background "0.1.0")
+(define-obsolete-variable-alias 'avi-word-punc-regexp 'avy-word-punc-regexp "0.1.0")
+(define-obsolete-face-alias 'avi-lead-face 'avy-lead-face "0.1.0")
+(define-obsolete-function-alias 'avi--goto 'avy--goto "0.1.0")
+(define-obsolete-function-alias 'avi--process 'avy--process "0.1.0")
+(define-obsolete-variable-alias 'avi-all-windows 'avy-all-windows "0.1.0")
+(define-obsolete-function-alias 'avi--overlay-pre 'avy--overlay-pre "0.1.0")
+(define-obsolete-function-alias 'avi--overlay-at 'avy--overlay-at "0.1.0")
+(define-obsolete-function-alias 'avi--overlay-post 'avy--overlay-post "0.1.0")
+(define-obsolete-function-alias 'avi-goto-char 'avy-goto-char "0.1.0")
+(define-obsolete-function-alias 'avi-goto-char-2 'avy-goto-char-2 "0.1.0")
+(define-obsolete-function-alias 'avi-isearch 'avy-isearch "0.1.0")
+(define-obsolete-function-alias 'avi-goto-word-0 'avy-goto-word-0 "0.1.0")
+(define-obsolete-function-alias 'avi-goto-subword-0 'avy-goto-subword-0 "0.1.0")
+(define-obsolete-function-alias 'avi-goto-word-1 'avy-goto-word-1 "0.1.0")
+(define-obsolete-function-alias 'avi-goto-line 'avy-goto-line "0.1.0")
+(define-obsolete-function-alias 'avi-copy-line 'avy-copy-line "0.1.0")
+(define-obsolete-function-alias 'avi-move-line 'avy-move-line "0.1.0")
(define-obsolete-function-alias 'avi-copy-region 'avy-copy-region "0.1.0")
+(define-obsolete-function-alias 'avi--regex-candidates 'avy--regex-candidates "0.1.0")
(provide 'avy-jump)