143 Commits

Author SHA1 Message Date
Magnar Sveen
474838666a Make mc/mark-pop only run once per invocation 2013-05-27 05:51:59 +02:00
Magnar Sveen
7a236d174e Add flyspell-mode to unsupported minor modes 2013-05-08 11:00:42 +02:00
Magnar Sveen
374244b66e Add support for C-s and C-r when phi-search is installed 2013-05-08 11:00:10 +02:00
Magnar Sveen
8b91e4788c Add py-electric-backspace to run-for-all list
- backspace = no in the prompt, causing people not to notice the prompt
2013-04-08 08:42:23 +02:00
Magnar Sveen
bf0177205e Use phi-search for C-s in mc-mode when available. 2013-03-28 19:41:08 +01:00
Magnar Sveen
6e159238b2 Use uninterned symbols in macros to avoid surprising local vars 2013-03-21 10:17:50 +01:00
Magnar Sveen
9dac934bce Fix scrolling behavior in Emacs 24. 2013-03-21 10:09:41 +01:00
Magnar Sveen
a6e0ccb22f mc/add-cursor-on-click should not run per cursor
Fixes #60
2013-02-26 21:38:26 +01:00
Magnar Sveen
641eb680ca Can use mc/reverse-regions w/o region or cursors
- will flip sexp at point with the one below it
2013-02-11 07:29:17 +01:00
Magnar Sveen
82a1fe3746 Add mc/sort-regions and mc/reverse-regions 2013-02-10 21:04:09 +01:00
Florian Mounier
a4f6ea179a Add transient-mark-mode to mc/cursor-specific-vars to fix other selections than C-SPC. Fixes #55 2013-01-30 16:34:48 +01:00
Magnar Sveen
9582c7220b Add mc/insert-numbers
- adds increasing numbers for each cursor, top to bottom
2013-01-23 12:05:18 +01:00
Takafumi Arakaki
3ce6e4a670 Avoid strange behavior with smartrep
smartrep `intern`s commands into own obarray to help
`describe-bindings`, but this is bad for multiple-cursors as it makes
impossible to compare command with `memq` (`eq`).  This patch
re-`intern's the command to make the command comparable by `eq'.
2012-12-12 20:55:51 +01:00
Takafumi Arakaki
84ab4ee26a Fix mc/dump-list (take 2): it looses old setting
In the old code, heading part of `value` may lost due to in-place
modification by the `sort` function. ``(symbol-value list-symbol)``
must be re-evaluated before passing it to `mapc`.  To do that,
simply replacing `let` to `symbol-macrolet` works.

See also: #40
2012-12-01 22:01:02 +01:00
Steve Purcell
6339657440 Fix byte-compilation warnings, and avoid unnecessary use of "eval"
multiple-cursors-core.el:28:1:Warning: cl package required at runtime

In mc/store-cursor-specific-var:
multiple-cursors-core.el:127:35:Warning: reference to free variable `o'

In mc/restore-cursor-specific-var:
multiple-cursors-core.el:130:44:Warning: reference to free variable `o'
2012-11-27 14:04:36 +00:00
Takafumi Arakaki
fa753aa587 Fix: mc/dump-list loosing old setting 2012-11-24 23:27:46 +01:00
Magnar Sveen
0a081a7c5f Move mc/maybe-multiple-cursors-mode to core. 2012-11-18 21:10:09 +01:00
Magnar Sveen
c010afbbef Rename mc/mark-sgml-tags to mc/mark-sgml-tag-pair 2012-11-18 14:45:25 +01:00
Magnar Sveen
f721308591 Tweak mc/mark-all-like-this-dwim and add tests 2012-11-18 14:43:39 +01:00
Magnar Sveen
a37e02b907 Add new mc-commands to default run-once list.
Fixes #36
2012-10-27 09:13:09 +02:00
Magnar Sveen
dce6c00fab Add mc/cursor-specific-vars to handle vars that need to be tracked per cursor.
- also add autopair-vars to this list.

Fixes #32
2012-10-25 10:57:58 +02:00
Magnar Sveen
5f7c92bb74 Add more backward-delete commands to run-for-all 2012-10-25 10:22:25 +02:00
Magnar Sveen
6b09b9c73f Add some more basic commands to the run-all and run-once lists. 2012-10-24 19:20:03 +02:00
Magnar Sveen
b3ca408f52 Have to require 'cl for now, because of count-if. 2012-10-24 08:10:22 +02:00
Ivan Andrus
be4067da45 Fixed mode-line not showing up 2012-10-21 00:24:00 +02:00
Ivan Andrus
bb546b11d8 Display number of cursors in mode-line 2012-10-20 22:01:34 +02:00
Marco Baringer
a8b632386d Remove superfluous lambda.
Caught by magnars (https://github.com/magnars/multiple-cursors.el/pull/23#commitcomment-1983191)
2012-10-12 16:27:39 +02:00
Marco Baringer
324d9354b5 Split macro mc/for-each-fake-cursor into a function returning all the cursor overlays and a macro to loop over this list. 2012-10-10 13:38:47 +02:00
Takafumi Arakaki
f4d5aea860 Sort before saving list in mc/save-lists 2012-10-03 18:50:29 +02:00
Takafumi Arakaki
00f905549e Add mc/dump-list to make mc/save-lists diff-friendly 2012-10-03 18:47:31 +02:00
Magnar Sveen
7a6eb0df90 Never execute keyboard macros for fake cursors.
- The real cursor will execute the keyboard macro, resulting in new
   commands in the command loop, and the fake cursors can pick up on
   those instead.

Fixes #18
2012-10-02 12:19:00 +02:00
Magnar Sveen
f040a33e3c Add execute-extended-command to run-once list 2012-09-28 07:24:38 +02:00
Magnar Sveen
64ffd81491 Add quoted-insert to run-for-all list. 2012-09-27 19:44:48 +02:00
Magnar Sveen
97da9778fd Intercept some reading commands
- so you won't have to answer them for every single cursor

Fixes #15
2012-09-27 19:42:38 +02:00
Magnar Sveen
ae0033fe3d Protect post-command-hook from errors to avoids undead cursors 2012-09-27 18:53:57 +02:00
Magnar Sveen
5fcc69cc54 Skip keyboard macros
- since they will generate actual commands that are also run in the
   command loop - we'll handle those later instead.
2012-09-27 18:53:05 +02:00
Magnar Sveen
d7263f21f0 A more rubust way of finding the command currently being invoked.
- which is necessary because cua-mode does some wacky stuff.

Fixes #8
2012-09-27 00:29:25 +02:00
Magnar Sveen
80bc6f6d56 Temporarily disable auto-complete-mode in multiple-cursors-mode
Fixes #12
2012-09-26 20:17:54 +02:00
Magnar Sveen
ce777dc1d7 Add some mouse-commands to the run-once list. 2012-09-26 19:30:04 +02:00
Magnar Sveen
d5a9d57d25 Add minibuffer-complete-and-exit to default run-once list. 2012-09-26 17:28:09 +02:00
Magnar Sveen
466d8bd4f8 Don't use next-line non-interactively 2012-09-24 13:49:43 +02:00
Magnar Sveen
f73569fe13 Update documentation. 2012-09-24 13:26:55 +02:00
Magnar Sveen
bdc4d9aff5 Add some more commands to default run-once/run-for-all lists. 2012-09-24 13:07:09 +02:00
Magnar Sveen
241e34ef2d Remove mark-multiple integration
- it caused more problems than it was solving

Fixes #9
2012-09-24 13:00:12 +02:00
Magnar Sveen
810636b228 Avoid smooth-scroll issues with multiple cursors 2012-09-23 23:18:32 +02:00
Magnar Sveen
719fe40ca3 Integrate with rect.el instead of consolidating/splitting on kill-ring 2012-09-23 19:12:42 +02:00
Magnar Sveen
067063a346 Split multiline kill-ring entry over cursors when num lines match 2012-09-23 18:36:46 +02:00
Magnar Sveen
ef2226b993 Consolidate kill-ring entries when exiting multiple-cursors-mode 2012-09-23 16:26:04 +02:00
Mon ouïe
dc22766af5 Macros must be defined before they are used to be expanded properly 2012-08-27 13:17:14 +02:00
Magnar Sveen
d82e252617 Don't let fake cursors scroll the buffer 2012-08-14 06:41:18 +02:00