emacs-elpa-diffs
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]