mirror of
https://github.com/abo-abo/avy.git
synced 2026-02-04 06:42:26 +00:00
avy.el (avy--generic-jump): Remove `style' arg
This commit is contained in:
13
avy.el
13
avy.el
@@ -1157,7 +1157,7 @@ exist."
|
|||||||
(words #'avy--overlay-at-full)
|
(words #'avy--overlay-at-full)
|
||||||
(t (error "Unexpected style %S" style))))
|
(t (error "Unexpected style %S" style))))
|
||||||
|
|
||||||
(defun avy--generic-jump (regex window-flip style &optional beg end)
|
(defun avy--generic-jump (regex window-flip &optional beg end)
|
||||||
"Jump to REGEX.
|
"Jump to REGEX.
|
||||||
The window scope is determined by `avy-all-windows'.
|
The window scope is determined by `avy-all-windows'.
|
||||||
When WINDOW-FLIP is non-nil, do the opposite of `avy-all-windows'.
|
When WINDOW-FLIP is non-nil, do the opposite of `avy-all-windows'.
|
||||||
@@ -1183,8 +1183,7 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
|
|||||||
(if (= 13 char)
|
(if (= 13 char)
|
||||||
"\n"
|
"\n"
|
||||||
(regexp-quote (string char)))
|
(regexp-quote (string char)))
|
||||||
arg
|
arg)))
|
||||||
avy-style)))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun avy-goto-char-in-line (char)
|
(defun avy-goto-char-in-line (char)
|
||||||
@@ -1194,7 +1193,6 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
|
|||||||
(avy--generic-jump
|
(avy--generic-jump
|
||||||
(regexp-quote (string char))
|
(regexp-quote (string char))
|
||||||
avy-all-windows
|
avy-all-windows
|
||||||
avy-style
|
|
||||||
(line-beginning-position)
|
(line-beginning-position)
|
||||||
(line-end-position))))
|
(line-end-position))))
|
||||||
|
|
||||||
@@ -1216,7 +1214,6 @@ BEG and END narrow the scope where candidates are searched."
|
|||||||
(setq char2 ?\n))
|
(setq char2 ?\n))
|
||||||
(avy-with avy-goto-char-2
|
(avy-with avy-goto-char-2
|
||||||
(avy--generic-jump
|
(avy--generic-jump
|
||||||
(regexp-quote (string char1 char2))
|
|
||||||
(regexp-quote (string char1 char2))
|
(regexp-quote (string char1 char2))
|
||||||
arg
|
arg
|
||||||
beg end)))
|
beg end)))
|
||||||
@@ -1270,7 +1267,7 @@ When ARG is non-nil, do the opposite of `avy-all-windows'.
|
|||||||
The window scope is determined by `avy-all-windows'.
|
The window scope is determined by `avy-all-windows'.
|
||||||
When ARG is non-nil, do the opposite of `avy-all-windows'.
|
When ARG is non-nil, do the opposite of `avy-all-windows'.
|
||||||
BEG and END narrow the scope where candidates are searched."
|
BEG and END narrow the scope where candidates are searched."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(avy-with avy-goto-word-0
|
(avy-with avy-goto-word-0
|
||||||
(avy--generic-jump avy-goto-word-0-regexp arg beg end)))
|
(avy--generic-jump avy-goto-word-0-regexp arg beg end)))
|
||||||
|
|
||||||
@@ -1310,7 +1307,7 @@ When SYMBOL is non-nil, jump to symbol start instead of word start."
|
|||||||
str)
|
str)
|
||||||
(t
|
(t
|
||||||
(concat
|
(concat
|
||||||
(if symbol "\\_<" "\\b")
|
(if symbol "\\_<" "\\b")
|
||||||
str)))))
|
str)))))
|
||||||
(avy--generic-jump regex arg beg end))))
|
(avy--generic-jump regex arg beg end))))
|
||||||
|
|
||||||
@@ -2025,7 +2022,7 @@ The window scope is determined by `avy-all-windows' (ARG negates it)."
|
|||||||
(interactive)
|
(interactive)
|
||||||
(let* ((org-reverse-note-order t)
|
(let* ((org-reverse-note-order t)
|
||||||
(marker (save-excursion
|
(marker (save-excursion
|
||||||
(avy-with avy-goto-line
|
(avy-with avy-goto-line
|
||||||
(unless (eq 't (avy--generic-jump (rx bol (1+ "*") (1+ space))
|
(unless (eq 't (avy--generic-jump (rx bol (1+ "*") (1+ space))
|
||||||
nil))
|
nil))
|
||||||
;; `avy--generic-jump' returns t when aborted with C-g.
|
;; `avy--generic-jump' returns t when aborted with C-g.
|
||||||
|
|||||||
Reference in New Issue
Block a user