[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 16370f9 003/110: avy.el (avy--goto): Remove obsolete alias
From: |
Oleh Krehel |
Subject: |
[elpa] master 16370f9 003/110: avy.el (avy--goto): Remove obsolete alias |
Date: |
Sat, 11 May 2019 10:15:32 -0400 (EDT) |
branch: master
commit 16370f92ec00f4e66da7a12fce300476934468da
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
avy.el (avy--goto): Remove obsolete alias
* avy.el (avy--with-avy-keys): Remove obsolete.
Also clean up whitespace - too long lines and wrong indentation.
---
avy.el | 40 ++++++++++++++++++----------------------
1 file changed, 18 insertions(+), 22 deletions(-)
diff --git a/avy.el b/avy.el
index e9819d0..a44eaaf 100644
--- a/avy.el
+++ b/avy.el
@@ -228,16 +228,16 @@ self-inserting keys and thus aren't read as characters.")
(a (make-list (* n k) 0))
sequence)
(cl-labels ((db (T p)
- (if (> T n)
- (if (eq (% n p) 0)
- (setq sequence
- (append sequence
- (cl-subseq a 1 (1+ p)))))
- (setf (nth T a) (nth (- T p) a))
- (db (1+ T) p)
- (cl-loop for j from (1+ (nth (- T p) a)) to (1- k) do
- (setf (nth T a) j)
- (db (1+ T) T)))))
+ (if (> T n)
+ (if (eq (% n p) 0)
+ (setq sequence
+ (append sequence
+ (cl-subseq a 1 (1+ p)))))
+ (setf (nth T a) (nth (- T p) a))
+ (db (1+ T) p)
+ (cl-loop for j from (1+ (nth (- T p) a)) to (1- k) do
+ (setf (nth T a) j)
+ (db (1+ T) T)))))
(db 1 1)
(mapcar (lambda (n)
(nth n keys))
@@ -271,9 +271,10 @@ SEQ-LEN is how many elements of KEYS it takes to identify
a match."
(when (and (> diff 0) (< diff seq-len))
(while (and (nth (1- seq-len) db-seq)
(not
- (eq 0 (cl-search
- (cl-subseq prev-seq diff)
- (cl-subseq db-seq 0
seq-len)))))
+ (eq 0
+ (cl-search
+ (cl-subseq prev-seq diff)
+ (cl-subseq db-seq 0 seq-len)))))
(pop db-seq)))
(subseq-and-pop))
(subseq-and-pop))))
@@ -1272,8 +1273,10 @@ This function obeys `avy-all-windows' setting."
(match-end 0))))
(setq found t)
(push ov overlays)
- (overlay-put ov 'window (selected-window))
- (overlay-put ov 'face
'avy-goto-char-timer-face)))))))
+ (overlay-put
+ ov 'window (selected-window))
+ (overlay-put
+ ov 'face 'avy-goto-char-timer-face)))))))
;; No matches at all, so there's surely a typo in the input.
(unless found (beep)))))
(nreverse (mapcar (lambda (ov)
@@ -1322,13 +1325,6 @@ The window scope is determined by `avy-all-windows' (ARG
negates it)."
(error
(set-mark-command 4)))))
-(define-obsolete-function-alias
- 'avy--goto 'identity "0.3.0"
- "Don't use this function any more.
-`avy--process' will do the jump all by itself.")
-
-(define-obsolete-function-alias 'avy--with-avy-keys 'avy-with "0.3.0")
-
(provide 'avy)
;;; avy.el ends here
- [elpa] master 85a384a 012/110: Add char at window start for avy-goto-subword-0, (continued)
- [elpa] master 85a384a 012/110: Add char at window start for avy-goto-subword-0, Oleh Krehel, 2019/05/11
- [elpa] master a80f95c 007/110: Add "X" dispatch to kill a word without moving there, Oleh Krehel, 2019/05/11
- [elpa] master 9e61f78 006/110: avy.el: Improve defcustom :type, Oleh Krehel, 2019/05/11
- [elpa] master 5ba3602 009/110: Assign avy-action-ispell to "i", Oleh Krehel, 2019/05/11
- [elpa] master 53706d2 011/110: avy.el (avy-all-windows-alt): Change the default to nil, Oleh Krehel, 2019/05/11
- [elpa] master 4c072be 010/110: README.md (avy-goto-char-timer): Add entry, Oleh Krehel, 2019/05/11
- [elpa] master c0db364 008/110: Add avy-action-ispell to avy.el, Oleh Krehel, 2019/05/11
- [elpa] master 3b75d95 005/110: Make "C-g" and "ESC" fail silently when reading char, Oleh Krehel, 2019/05/11
- [elpa] master 5f76c9d 004/110: avy.el (avy-goto-word-0-regexp): New defcustom, Oleh Krehel, 2019/05/11
- [elpa] master 5f6dd00 001/110: avy.el (avy-action-copy): Save window and frame, Oleh Krehel, 2019/05/11
- [elpa] master 16370f9 003/110: avy.el (avy--goto): Remove obsolete alias,
Oleh Krehel <=
- [elpa] master 730581a 002/110: avy.el: Fix compilation warning, Oleh Krehel, 2019/05/11