[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 6d2694356c 253/301: Move "declare-function" invocati
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 6d2694356c 253/301: Move "declare-function" invocations outside of "when" statement. |
Date: |
Mon, 10 Jan 2022 22:59:08 -0500 (EST) |
branch: elpa/iedit
commit 6d2694356c0e90ab7475dd91cae20678bf0cd8cf
Author: Brian Leung <bkleung89@gmail.com>
Commit: Victor <victorhge@gmail.com>
Move "declare-function" invocations outside of "when" statement.
Also add "ext:" to locations, which is necessary for files outside of
core Emacs.
---
iedit-lib.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/iedit-lib.el b/iedit-lib.el
index c117e0a2e4..88ef3fcbbd 100644
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -223,12 +223,14 @@ occurrence.")
map)
"Default keymap used within occurrence overlays.")
+;; The declarations are to avoid compile errors if mc is unknown by Emacs.
+(declare-function mc/create-fake-cursor-at-point "ext:mutiple-cursors-core.el"
nil)
+(declare-function multiple-cursors-mode "ext:mutiple-cursors-core.el")
+(defvar mc/cmds-to-run-once)
+
(when (require 'multiple-cursors-core nil t)
- ;; The declarations are to avoid compile errors if mc is unknown by Emacs.
- (declare-function mc/create-fake-cursor-at-point "mutiple-cursor-core.el"
nil)
- (declare-function multiple-cursors-mode "mutiple-cursor-core.el")
(defun iedit-switch-to-mc-mode ()
- "Switch to multiple-cursors-mode. So that you can navigate
+ "Switch to `multiple-cursors-mode'. So that you can navigate
out of the occurrence and edit simultaneously with multiple
cursors."
(interactive "*")
@@ -237,14 +239,12 @@ cursors."
(offset (- (point) (overlay-start ov)))
(master (point)))
(save-excursion
- (dolist (occurrence iedit-occurrences-overlays)
+ (dolist (occurrence iedit-occurrences-overlays)
(goto-char (+ (overlay-start occurrence) offset))
(unless (= master (point))
- (mc/create-fake-cursor-at-point))
- ))
+ (mc/create-fake-cursor-at-point))))
(run-hooks 'iedit-aborting-hook)
- (multiple-cursors-mode 1)
- ))
+ (multiple-cursors-mode 1)))
;; `multiple-cursors-mode' runs `post-command-hook' function for all the
;; cursors. `post-command-hook' is setup in `iedit-switch-to-mc-mode' So the
;; function is executed after `iedit-switch-to-mc-mode'. It is not expected.
- [nongnu] elpa/iedit 64c3505d04 235/301: correct spelling mistake, (continued)
- [nongnu] elpa/iedit 64c3505d04 235/301: correct spelling mistake, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 2f0c484817 283/301: Move iedit-buffering related to `iedit-lib', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7e277119fc 221/301: Fix doc string for markup tag, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 50b7da10ac 251/301: Add option `iedit-auto-buffering`, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3211c2ee6c 228/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 93b642f0a8 286/301: A few small fixes, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 02b4a6553e 243/301: Add the index of the current occurrence on mode-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06e600aae2 222/301: Fix: use return value of iedit-default-occurrence-mode-local, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit abcc27a9f0 231/301: Add Installation instruction, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8b620efacb 262/301: Replace `inhibit-modification-hooks' with `iedit-updating', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6d2694356c 253/301: Move "declare-function" invocations outside of "when" statement.,
ELPA Syncer <=
- [nongnu] elpa/iedit f6682186f0 242/301: Replace eval-after-load with require check, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 14376a97e0 223/301: Ignore error in `iedit-mark-sgml-pair', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9fd1b43170 229/301: Fix failed test cases for Emacs 25.1, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 658c10a249 244/301: fix issue of iedit-restrict-function doesn't update mode-line text correctly, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06f1f50939 224/301: Merge pull request #65 from pstray/master, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c11ecd9080 273/301: Update copyright notice, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e5b51ac0af 278/301: Move hooks setup to iedit-lib to reduce code duplication, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c00a8ba805 272/301: Add a new feature - preserve case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4ef9bf6323 287/301: prefix-arg for `iedit-next-occurrence` and `iedit-prev-occurrence`, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3d71392852 276/301: Fix as well issue #118, ELPA Syncer, 2022/01/10