[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors dfe8a2d 029/434: Slight optimisation
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors dfe8a2d 029/434: Slight optimisation |
Date: |
Sat, 7 Aug 2021 09:19:48 -0400 (EDT) |
branch: elpa/multiple-cursors
commit dfe8a2d1e893ee336d0466ac0bd6f075d4d7c597
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Slight optimisation
---
multiple-cursors.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/multiple-cursors.el b/multiple-cursors.el
index 6cad9e0..cd08fc3 100644
--- a/multiple-cursors.el
+++ b/multiple-cursors.el
@@ -223,10 +223,8 @@ mark-multiple if point and mark is on different columns."
(error "Mark a set of lines first."))
(mc/remove-additional-cursors)
(let* ((point-line (line-number-at-pos))
- (mark-line (save-excursion (exchange-point-and-mark)
(line-number-at-pos)))
- (num-cursors (abs (- point-line mark-line)))
+ (mark-line (progn (exchange-point-and-mark) (line-number-at-pos)))
(navigation-func (if (< point-line mark-line) 'previous-line
'next-line)))
- (exchange-point-and-mark)
(deactivate-mark)
(while (not (eq (line-number-at-pos) point-line))
(mc/add-cursor-at-point)
- [nongnu] elpa/multiple-cursors a682c15 027/434: Disable regions first with C-g, then multiple-cursors., (continued)
- [nongnu] elpa/multiple-cursors a682c15 027/434: Disable regions first with C-g, then multiple-cursors., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 13668a9 001/434: initial commit, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c18aa84 002/434: Separate kill-ring for each cursor., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 0d40ea1 003/434: Updated readme., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 18f7f1a 010/434: More white-listed commands for multiple cursors., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors cf82088 014/434: Add backward-list to white-list., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 26d0e52 015/434: Add more commands to white-list., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 5e64246 025/434: Move todo to own file., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors e0ffd9c 026/434: Disable marker when done with it, for performance reasons., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9938aca 028/434: Save er/history for each cursor, to be able to contract., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors dfe8a2d 029/434: Slight optimisation,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 6c0e16e 033/434: More things to do., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 07a4411 036/434: More things to do., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 75581da 037/434: Fix bug with expand-region dependency., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 8d49171 039/434: Update todo, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 80fdb6f 007/434: Hook multiple-cursors into mark-multiple, first step:, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9182897 046/434: Add message about delete-char vs delete-forward-char, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c34e4df 064/434: Don't grow cursor overlays., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 382616a 020/434: Don't get annoyed so easily at multiple cursors., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b99d54a 047/434: Fix error message., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4c56cb8 065/434: Tests for white-list prompt., ELPA Syncer, 2021/08/07