[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a7630ca 24/50: convert to cl-lib
From: |
Michael Heerdegen |
Subject: |
[elpa] master a7630ca 24/50: convert to cl-lib |
Date: |
Mon, 09 Nov 2015 03:35:47 +0000 |
branch: master
commit a7630cadc75a8bdb42a9a837d3f822341391b377
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>
convert to cl-lib
---
on-screen.el | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/on-screen.el b/on-screen.el
index 6821a71..f435a06 100644
--- a/on-screen.el
+++ b/on-screen.el
@@ -110,7 +110,7 @@
;;; Requirements
-(eval-when-compile (require 'cl))
+(require 'cl-lib)
(require 'timer)
(require 'hexrgb nil t)
@@ -282,7 +282,7 @@ Type M-x customize-group on-screen RET for configuration."
(vis (and on-screen-treat-cut-lines (pos-visible-in-window-p start
window t))))
(if (not (cddr vis))
start
- (destructuring-bind (_x _y rtop _rbot rowh _vpos) vis
+ (cl-destructuring-bind (_x _y rtop _rbot rowh _vpos) vis
(if (< (/ (float rtop) (+ rtop rowh)) on-screen-treat-cut-lines) ;;
count as visible
start
(with-current-buffer (window-buffer window)
@@ -297,7 +297,7 @@ Type M-x customize-group on-screen RET for configuration."
(vis (and on-screen-treat-cut-lines (pos-visible-in-window-p (1- end)
window t))))
(if (not (cddr vis))
end
- (destructuring-bind (_x _y _rtop rbot rowh _vpos) vis
+ (cl-destructuring-bind (_x _y _rtop rbot rowh _vpos) vis
(if (< (/ (float rbot) (+ rbot rowh)) on-screen-treat-cut-lines) ;;
count as visible
end
(with-current-buffer (window-buffer window)
@@ -307,11 +307,11 @@ Type M-x customize-group on-screen RET for configuration."
(point))))))))
(defun on-screen-beginning-of-line (&optional n)
- (callf or n 1)
+ (cl-callf or n 1)
(forward-visible-line (- n 1)))
(defun on-screen-end-of-line (&optional n)
- (callf or n 1)
+ (cl-callf or n 1)
(forward-visible-line (- n 1))
(end-of-visible-line))
@@ -335,8 +335,8 @@ remember nil for the timer."
(setq area (or area (and same-buffer-p (cadr data)))
timer (cond ((timerp timer) timer)
(timer nil)
- (t (and same-buffer-p (caddr data))))
- overlays (or overlays (and same-buffer-p (cadddr data)))
+ (t (and same-buffer-p (cl-caddr data))))
+ overlays (or overlays (and same-buffer-p (cl-cadddr data)))
data `(,(window-buffer win) ,area ,timer ,overlays))
(if entry
(setcdr entry data)
@@ -453,7 +453,7 @@ only the windows of the selected frame."
(defun on-screen-pre-command ()
"Remember visible buffer parts in the selected frame."
;; This normally goes to `pre-command-hook'.
- (incf on-screen-command-counter)
+ (cl-incf on-screen-command-counter)
(add-hook 'after-change-functions #'on-screen-after-change) ;$$$$ bug#16796
(condition-case nil
(mapc (lambda (win) (with-current-buffer (window-buffer win)
@@ -472,7 +472,7 @@ This should normally go to `window-scroll-functions'."
(let* ((win-data (on-screen-get-data win))
(area (car win-data))
(timer (cadr win-data))
- (overlays (caddr win-data))
+ (overlays (cl-caddr win-data))
(s1 (car area))
(s2 (cadr area)))
(when (and
@@ -567,7 +567,7 @@ had changed."
(with-current-buffer buffer
(let* ((data (cdr data))
(timer (cadr data))
- (overlays (caddr data)))
+ (overlays (cl-caddr data)))
(dolist (ov overlays) (delete-overlay ov))
(when (timerp timer) (cancel-timer timer))))
(setq on-screen-data (delq entry on-screen-data)))))
- [elpa] master dd6de11 15/50: minor change, (continued)
- [elpa] master dd6de11 15/50: minor change, Michael Heerdegen, 2015/11/08
- [elpa] master 38b4a11 19/50: add missing autoload for global-on-screen-mode alias, Michael Heerdegen, 2015/11/08
- [elpa] master 4f4c320 20/50: Update copyright, Michael Heerdegen, 2015/11/08
- [elpa] master 350a979 23/50: add workaround for bug#16796, Michael Heerdegen, 2015/11/08
- [elpa] master 03ddd52 16/50: after-scroll: don't remove highlighting when called in succession, Michael Heerdegen, 2015/11/08
- [elpa] master 5134a22 21/50: minor change (rename two functions), Michael Heerdegen, 2015/11/08
- [elpa] master 0ddc794 22/50: always remove highlighting when a command caused multiple changes, Michael Heerdegen, 2015/11/08
- [elpa] master 6a73928 18/50: fix invisible fringe markers positioned in invisible lines (e.g. org), Michael Heerdegen, 2015/11/08
- [elpa] master 55c8f4b 27/50: small changes in header, Michael Heerdegen, 2015/11/08
- [elpa] master f4b1ef2 17/50: new option: on-screen-remove-when-edit, decrease overlay priority, Michael Heerdegen, 2015/11/08
- [elpa] master a7630ca 24/50: convert to cl-lib,
Michael Heerdegen <=
- [elpa] master 8256496 25/50: use a more modest gray for on-screen-narrow-line face, Michael Heerdegen, 2015/11/08
- [elpa] master b1c1f7e 32/50: new option: on-screen-drawing-threshold, Michael Heerdegen, 2015/11/08
- [elpa] master 259440a 26/50: add Package-Requires header, Michael Heerdegen, 2015/11/08
- [elpa] master 098325c 29/50: set default value of on-screen-treat-cut-lines to t, Michael Heerdegen, 2015/11/08
- [elpa] master 23cf5db 30/50: use lexical binding, Michael Heerdegen, 2015/11/08
- [elpa] master 787fe34 31/50: bump version to 1.1, Michael Heerdegen, 2015/11/08
- [elpa] master bef0f6d 37/50: silence compiler when hexrgb.el is not installed, Michael Heerdegen, 2015/11/08
- [elpa] master ef81e20 35/50: change default of on-screen-treat-cut-lines back to nil, Michael Heerdegen, 2015/11/08
- [elpa] master 7012d04 41/50: bump version to 1.3, Michael Heerdegen, 2015/11/08
- [elpa] master c03f4b0 33/50: new user variable: on-screen-inhibit-highlighting, Michael Heerdegen, 2015/11/08