[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors c07d761 009/434: Some thoughts about comb
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors c07d761 009/434: Some thoughts about combining with mark-multiple. |
Date: |
Sat, 7 Aug 2021 09:19:44 -0400 (EDT) |
branch: elpa/multiple-cursors
commit c07d761d1b1cfca47c201bc1ac6e08ec5ca0a958
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Some thoughts about combining with mark-multiple.
---
README.md | 22 ++++++++++++++++++++--
multiple-cursors.el | 25 ++++++++++++++++++++++---
2 files changed, 42 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 44d8534..636afa0 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ region deactivates it. Press C-g again to remove extra
cursors.
## Contribute
There's plenty wrong with this implementation still. I'm actively trying things
-out, and also considering combining it with
+out, and also working on combining it with
[mark-multiple.el](https://github.com/magnars/mark-multiple.el) to get a more
comprehensive tool.
@@ -37,9 +37,27 @@ You'll find the repo at:
https://github.com/magnars/multiple-cursors.el
+## Combining with mark-multiple
+
+Right now you can go from multiple marks to multiple cursors with C-g.
+
+The other way around is a bit more tricky:
+
+ * What to do about overlapping marks?
+ * Expanding the marks should be possible, for instance using `mark-word` or
+ `expand-region`
+ * Killing or copying needs to keep a kill-ring for each cursor.
+
+So basically `mark-multiple` isn't ready for prime time as a full blown
multiple
+marks library. For this to work as expected, I think parts of mark-multiple
+needs to be rewritten, and possibly integrated into multiple-cursors.
+
+For now, mark-multiple is an excellent tool to place your cursors where you
need
+them to be.
+
## License
-Copyright (C) 2011 Magnar Sveen
+Copyright (C) 2012 Magnar Sveen
Author: Magnar Sveen <magnars@gmail.com>
Keywords: editing cursors
diff --git a/multiple-cursors.el b/multiple-cursors.el
index 1a619de..671a169 100644
--- a/multiple-cursors.el
+++ b/multiple-cursors.el
@@ -1,6 +1,6 @@
;;; multiple-cursors.el --- An experiment in multiple cursors for emacs.
-;; Copyright (C) 2011 Magnar Sveen
+;; Copyright (C) 2012 Magnar Sveen
;; Author: Magnar Sveen <magnars@gmail.com>
;; Keywords: editing cursors
@@ -41,7 +41,7 @@
;; ** Contribute
;; There's plenty wrong with this implementation still. I'm actively trying
things
-;; out, and also considering combining it with
+;; out, and also working on combining it with
;; [mark-multiple.el](https://github.com/magnars/mark-multiple.el) to get a
more
;; comprehensive tool.
;;
@@ -52,6 +52,24 @@
;;
;; https://github.com/magnars/multiple-cursors.el
+;; ## Combining with mark-multiple
+;;
+;; Right now you can go from multiple marks to multiple cursors with C-g.
+;;
+;; The other way around is a bit more tricky:
+;;
+;; * What to do about overlapping marks?
+;; * Expanding the marks should be possible, for instance using `mark-word` or
+;; `expand-region`
+;; * Killing or copying needs to keep a kill-ring for each cursor.
+;;
+;; So basically `mark-multiple` isn't ready for prime time as a full blown
multiple
+;; marks library. For this to work as expected, I think parts of mark-multiple
+;; needs to be rewritten, and possibly integrated into multiple-cursors.
+;;
+;; For now, mark-multiple is an excellent tool to place your cursors where you
need
+;; them to be.
+
;;; Code:
(require 'mark-multiple)
@@ -90,7 +108,8 @@ Also makes a copy of the kill-ring to be used by this
cursor."
(overlay-put overlay 'priority 100)))
(defvar mc--unsupported-cmds '()
- "List of commands that does not work well with multiple cursors.")
+ "List of commands that does not work well with multiple cursors.
+Set up with the unsupported-cmd macro.")
(defmacro unsupported-cmd (cmd)
"Adds command to list of unsupported commands and prevents it
- [nongnu] elpa/multiple-cursors a4c4714 081/434: Remove multiple cursors when reverting buffer., (continued)
- [nongnu] elpa/multiple-cursors a4c4714 081/434: Remove multiple cursors when reverting buffer., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 36b262c 086/434: Added mc-version of mark-next-like-this, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 491b206 103/434: Use forward-line instead of next/previous-line in lisp code., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b1ea7f2 095/434: Add licences to all el-files., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f6403ea 112/434: Fix assertion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6481972 113/434: Update ecukes, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 241e34e 123/434: Remove mark-multiple integration, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f040a33 143/434: Add execute-extended-command to run-once list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ef7eddf 021/434: Started adding feature tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 00896cf 030/434: Refactor: simplify saving of state for cursors., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c07d761 009/434: Some thoughts about combining with mark-multiple.,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors d8f5116 013/434: Add more commands to multiple-cursors whitelist., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 1fcf7ed 016/434: More white-listing of commands., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b51ee01 017/434: More white-listing., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 53dd119 032/434: Add docstring., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c2bb81f 042/434: Dont forget to require rectangular-region-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ba11b12 051/434: Make interprogram-paste work for all cursors., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 8c8d52f 049/434: Run pre-command-hooks for each cursor, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c1fba2c 111/434: Add travis badge, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f73569f 125/434: Update documentation., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ce777dc 134/434: Add some mouse-commands to the run-once list., ELPA Syncer, 2021/08/07