[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 6ff26f5 08/20: Use cl-lib instead of cl-macs
From: |
Oleh Krehel |
Subject: |
[elpa] master 6ff26f5 08/20: Use cl-lib instead of cl-macs |
Date: |
Sat, 09 May 2015 11:57:51 +0000 |
branch: master
commit 6ff26f53771fe8d4dc6cb44ddfbb8eeb75d58b31
Author: Bozhidar Batsov <address@hidden>
Commit: Oleh Krehel <address@hidden>
Use cl-lib instead of cl-macs
Fixes #19
---
.dir-locals.el | 5 +++++
avy-jump.el | 41 +++++++++++++++++++++--------------------
avy.el | 2 +-
3 files changed, 27 insertions(+), 21 deletions(-)
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..3bcda92
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,5 @@
+;;; Directory Local Variables
+;;; For more information see (info "(emacs) Directory Variables")
+
+((emacs-lisp-mode
+ (indent-tabs-mode . nil)))
diff --git a/avy-jump.el b/avy-jump.el
index 67c829f..3f79b8a 100644
--- a/avy-jump.el
+++ b/avy-jump.el
@@ -29,6 +29,7 @@
;;; Code:
;;* Requires
+(require 'cl-lib)
(require 'avy)
;;* Customization
@@ -95,16 +96,16 @@ POS is either a position or (BEG . END)."
(defun avy--process (candidates overlay-fn)
"Select one of CANDIDATES using `avy-read'."
(unwind-protect
- (cl-case (length candidates)
- (0
- nil)
- (1
- (car candidates))
- (t
- (avy--make-backgrounds (list (selected-window)))
- (avy-read (avy-tree candidates avy-keys)
- overlay-fn
- #'avy--remove-leading-chars)))
+ (cl-case (length candidates)
+ (0
+ nil)
+ (1
+ (car candidates))
+ (t
+ (avy--make-backgrounds (list (selected-window)))
+ (avy-read (avy-tree candidates avy-keys)
+ overlay-fn
+ #'avy--remove-leading-chars)))
(avy--done)))
(defvar avy--overlays-back nil
@@ -162,12 +163,12 @@ When PRED is non-nil, it's a filter for matching point
positions."
"Create an overlay with STR at PT in WND."
(when (<= (1+ pt) (with-selected-window wnd (point-max)))
(let* ((pt (+ pt avy--overlay-offset))
- (ol (make-overlay pt (1+ pt) (window-buffer wnd)))
- (old-str (with-selected-window wnd
- (buffer-substring pt (1+ pt)))))
+ (ol (make-overlay pt (1+ pt) (window-buffer wnd)))
+ (old-str (with-selected-window wnd
+ (buffer-substring pt (1+ pt)))))
(when avy-background
- (setq old-str (propertize
- old-str 'face 'avy-background-face)))
+ (setq old-str (propertize
+ old-str 'face 'avy-background-face)))
(overlay-put ol 'window wnd)
(overlay-put ol 'display (concat str old-str))
(push ol avy--overlays-lead))))
@@ -209,8 +210,8 @@ LEAF is ((BEG . END) . WND)."
old-str 'face 'avy-background-face)))
(overlay-put ol 'window wnd)
(overlay-put ol 'display (if (string= old-str "\n")
- (concat str "\n")
- str))
+ (concat str "\n")
+ str))
(push ol avy--overlays-lead))))
(defun avy--overlay-post (path leaf)
@@ -274,7 +275,7 @@ The window scope is determined by `avy-all-windows' (ARG
negates it)."
(avy--generic-jump
(let ((c (read-char "char: ")))
(if (= 13 c)
- "\n"
+ "\n"
(regexp-quote (string c))))
arg
avy-goto-char-style))
@@ -286,8 +287,8 @@ The window scope is determined by `avy-all-windows' (ARG
negates it)."
(interactive "P")
(avy--generic-jump
(regexp-quote (string
- (read-char "char 1: ")
- (read-char "char 2: ")))
+ (read-char "char 1: ")
+ (read-char "char 2: ")))
arg
avy-goto-char-style))
diff --git a/avy.el b/avy.el
index 6a0dea7..338b084 100644
--- a/avy.el
+++ b/avy.el
@@ -42,7 +42,7 @@
;; headache.
;;; Code:
-(require 'cl-macs)
+(require 'cl-lib)
(defmacro avy-multipop (lst n)
"Remove LST's first N elements and return them."
- [elpa] master updated (e3dbd7a -> e1f9513), Oleh Krehel, 2015/05/09
- [elpa] master e49f6d0 01/20: avy-jump.el (avy--regex-candidates): Update arglist, Oleh Krehel, 2015/05/09
- [elpa] master bca96ae 02/20: Add avy-goto-char-timer, Oleh Krehel, 2015/05/09
- [elpa] master b114cf8 03/20: ace-window.el (aw-ignore-current): New defcustom, Oleh Krehel, 2015/05/09
- [elpa] master e931071 04/20: When selecting from many windows, prioritize the current, Oleh Krehel, 2015/05/09
- [elpa] master 6acbeb6 05/20: Use `avy-keys' for `avy-goto-subword-1', Oleh Krehel, 2015/05/09
- [elpa] master 35e1309 06/20: Add customization type to `avy-keys', Oleh Krehel, 2015/05/09
- [elpa] master c32b91f 07/20: Add more customization types, Oleh Krehel, 2015/05/09
- [elpa] master 6ff26f5 08/20: Use cl-lib instead of cl-macs,
Oleh Krehel <=
- [elpa] master cc822c1 12/20: Fix eval-after-load isearch, Oleh Krehel, 2015/05/09
- [elpa] master a558585 09/20: Move the package metadata to avy.el, Oleh Krehel, 2015/05/09
- [elpa] master 0634762 11/20: Add a dependency to cl-lib for Emacs < 24.3, Oleh Krehel, 2015/05/09
- [elpa] master 0e049bb 10/20: Always default to avy-keys but allow for per-command overrides, Oleh Krehel, 2015/05/09
- [elpa] master 4007986 14/20: Fix avy-background for multiple windows, Oleh Krehel, 2015/05/09
- [elpa] master 9e6561b 13/20: Run checkdoc, Oleh Krehel, 2015/05/09
- [elpa] master dbaa1a8 15/20: Fix avy-background some more, Oleh Krehel, 2015/05/09
- [elpa] master db4214f 16/20: Allow to display the full path using `at-full' style, Oleh Krehel, 2015/05/09
- [elpa] master 7e618a5 19/20: Merge commit 'b114cf8a93224c85c51e95db52bf359131130476' from ace-window, Oleh Krehel, 2015/05/09
- [elpa] master e242f04 18/20: Bump version, Oleh Krehel, 2015/05/09