[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 2818d9e 163/434: Rename mc/(first|last)-c
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 2818d9e 163/434: Rename mc/(first|last)-cursor-(before|after)-point to mention that they operate on fake cursors |
Date: |
Sat, 7 Aug 2021 09:20:17 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 2818d9e7ef2d55a404234ecdef8797b06f0520d2
Author: Marco Baringer <mb@bese.it>
Commit: Marco Baringer <mb@bese.it>
Rename mc/(first|last)-cursor-(before|after)-point to mention that they
operate on fake cursors
---
mc-cycle-cursors.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/mc-cycle-cursors.el b/mc-cycle-cursors.el
index 3fe44bd..46d7426 100644
--- a/mc-cycle-cursors.el
+++ b/mc-cycle-cursors.el
@@ -30,7 +30,7 @@
(eval-when-compile (require 'cl))
-(defun mc/next-cursor-after-point ()
+(defun mc/next-fake-cursor-after-point ()
(let ((pos (point))
(next-pos (point-max))
next)
@@ -42,7 +42,7 @@
(setq next cursor))))
next))
-(defun mc/prev-cursor-before-point ()
+(defun mc/prev-fake-cursor-before-point ()
(let ((pos (point))
(prev-pos (point-min))
prev)
@@ -68,7 +68,7 @@
(continue 'continue)
(stop 'stop)))
-(defun mc/first-cursor-after (point)
+(defun mc/first-fake-cursor-after (point)
"Very similar to mc/furthest-cursor-before-point, but ignores (mark) and
(point)."
(let* ((cursors (mc/all-fake-cursors))
(cursors-after-point (remove-if (lambda (cursor)
@@ -77,7 +77,7 @@
(cursors-in-order (sort* cursors-after-point '< :key 'mc/cursor-beg)))
(first cursors-in-order)))
-(defun mc/last-cursor-before (point)
+(defun mc/last-fake-cursor-before (point)
"Very similar to mc/furthest-cursor-before-point, but ignores (mark) and
(point)."
(let* ((cursors (mc/all-fake-cursors))
(cursors-before-point (remove-if (lambda (cursor)
@@ -97,14 +97,14 @@
(defun mc/cycle-forward ()
(interactive)
- (mc/cycle (mc/next-cursor-after-point)
- (mc/first-cursor-after (point-min))
+ (mc/cycle (mc/next-fake-cursor-after-point)
+ (mc/first-fake-cursor-after (point-min))
"We're already at the last cursor."))
(defun mc/cycle-backward ()
(interactive)
- (mc/cycle (mc/prev-cursor-before-point)
- (mc/last-cursor-before (point-max))
+ (mc/cycle (mc/prev-fake-cursor-before-point)
+ (mc/last-fake-cursor-before (point-max))
"We're already at the last cursor"))
(define-key mc/keymap (kbd "C-v") 'mc/cycle-forward)
- [nongnu] elpa/multiple-cursors de0519e 057/434: Add support for running lambdas for each cursor., (continued)
- [nongnu] elpa/multiple-cursors de0519e 057/434: Add support for running lambdas for each cursor., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 8ec468f 080/434: Don't save .mc-list.el when running tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4003aa1 102/434: Replace outdated function name with new one, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 605894d 121/434: Add link to video., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 26544fa 126/434: Bump version to 1.1.0, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 466d8bd 127/434: Don't use next-line non-interactively, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 80bc6f6 135/434: Temporarily disable auto-complete-mode in multiple-cursors-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 80ebdbb 156/434: Added test for mc/mark-(next|previous)-like-this when there is no active region., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 324d935 157/434: Split macro mc/for-each-fake-cursor into a function returning all the cursor overlays and a macro to loop over this list., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a8b6323 159/434: Remove superfluous lambda., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 2818d9e 163/434: Rename mc/(first|last)-cursor-(before|after)-point to mention that they operate on fake cursors,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 65d4f87 168/434: Added Ivan Andrus to list of contributors, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 52300ff 190/434: Prevent byte-compilation warnings 'cl functions, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 129ea77 189/434: 1.1.4, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors bfb293f 200/434: Merge pull request #48 from tkf/smartrep, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f1a5a39 197/434: Merge pull request #46 from tkf/fix-dump-list-take-2, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b218a13 185/434: Run tests in Emacs 23, Emacs 24 and snapshot., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a4f6ea1 205/434: Add transient-mark-mode to mc/cursor-specific-vars to fix other selections than C-SPC. Fixes #55, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 3ce6e4a 199/434: Avoid strange behavior with smartrep, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 16add89 211/434: Bugfix for sort/reverse regions w/similar contents, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 7a236d1 233/434: Add flyspell-mode to unsupported minor modes, ELPA Syncer, 2021/08/07