[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 3f382d2 416/434: Move variables before fi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 3f382d2 416/434: Move variables before first use |
Date: |
Sat, 7 Aug 2021 09:21:12 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 3f382d2c8fc0aa154ff74f3e2c48fd8889d8e6b1
Author: Matus Goljer <matus.goljer@gmail.com>
Commit: Matus Goljer <matus.goljer@gmail.com>
Move variables before first use
---
mc-separate-operations.el | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/mc-separate-operations.el b/mc-separate-operations.el
index ca10775..c2dfba2 100644
--- a/mc-separate-operations.el
+++ b/mc-separate-operations.el
@@ -29,6 +29,14 @@
(require 'multiple-cursors-core)
+(defcustom mc/insert-numbers-default 0
+ "The default number at which to start counting for
+`mc/insert-numbers'"
+ :type 'integer
+ :group 'multiple-cursors)
+
+(defvar mc--insert-numbers-number 0)
+
;;;###autoload
(defun mc/insert-numbers (arg)
"Insert increasing numbers for each cursor, starting at
@@ -39,14 +47,6 @@
(mc/for-each-cursor-ordered
(mc/execute-command-for-fake-cursor 'mc--insert-number-and-increase
cursor)))
-(defcustom mc/insert-numbers-default 0
- "The default number at which to start counting for
-`mc/insert-numbers'"
- :type 'integer
- :group 'multiple-cursors)
-
-(defvar mc--insert-numbers-number 0)
-
(defun mc--insert-number-and-increase ()
(interactive)
(insert (number-to-string mc--insert-numbers-number))
@@ -61,6 +61,8 @@
(mc/cursor-end cursor)) strings))))
(nreverse strings)))
+(defvar mc--insert-letters-number 0)
+
;;;###autoload
(defun mc/insert-letters (arg)
"Insert increasing letters for each cursor, starting at 0 or ARG.
@@ -73,15 +75,13 @@
(defun mc--number-to-letters (number)
(let ((letter
- (char-to-string
- (+ (mod number 26) ?a)))
- (number2 (/ number 26)))
+ (char-to-string
+ (+ (mod number 26) ?a)))
+ (number2 (/ number 26)))
(if (> number2 0)
- (concat (mc--number-to-letters (- number2 1)) letter)
+ (concat (mc--number-to-letters (- number2 1)) letter)
letter)))
-(defvar mc--insert-letters-number 0)
-
(defun mc--insert-letter-and-increase ()
(interactive)
(insert (mc--number-to-letters mc--insert-letters-number))
@@ -137,9 +137,9 @@ Might not behave as intended if more than one cursors are
on the same line."
(lambda ()
(interactive)
(let ((missing-spaces (- rightest-column (current-column))))
- (save-excursion (insert (make-string missing-spaces character)))
- (forward-char missing-spaces)
- )
+ (save-excursion (insert (make-string missing-spaces character)))
+ (forward-char missing-spaces)
+ )
))
)
)
- [nongnu] elpa/multiple-cursors e17851e 359/434: Fix click-toggling and make it robust (address all PR #239 comments), (continued)
- [nongnu] elpa/multiple-cursors e17851e 359/434: Fix click-toggling and make it robust (address all PR #239 comments), ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 8ac4ad3 361/434: Update README.md, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9f4cdd0 368/434: Modified mc/mark-lines to allow skipping, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors fb0e71a 371/434: Remove mention of marmalade, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors be4fbc7 373/434: Mention MELPA Stable, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors dfaf621 392/434: Fix #254; remove mc/mark-next-like-this-extended, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 67d6579 388/434: Updated tests, README., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 277aef4 393/434: Make mc/list-file into defcustom, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6327681 394/434: Merge pull request #267 from Fuco1/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f6bac94 402/434: Add note about M-x, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 3f382d2 416/434: Move variables before first use,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 9980faa 419/434: Add dabbrev state variables to mc/cursor-specific-vars, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 5ff2071 420/434: Merge pull request #351 from jrosdahl/dabbrev-expand, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 56d0373 075/434: Fix rectangular-region-mode when adding cursors over hidden areas of the buffer., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c3c4544 083/434: Place the file definition with the save definition., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 39e4eb2 091/434: Added mc-version of mark-more-like-this-extended, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b72e016 098/434: Don't require mark-multiple., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 294d574 093/434: Update README, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b607794 110/434: Add config for travis-ci, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 32213d4 115/434: Make sure we run the right version of Emacs in travis., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6e61e3d 114/434: Fix travis badge, ELPA Syncer, 2021/08/07