207 Commits

Author SHA1 Message Date
Magnar Sveen
3f3cdc6c92 Merge pull request #56 from paradoxxxzero/transient-mark-mode
Add transient-mark-mode to mc/cursor-specific-vars to fix other selections than C-SPC.
2013-02-01 02:57:19 -08:00
Florian Mounier
5190e0cdc6 Add test case for shift-select-mode 2013-02-01 11:52:21 +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
Magnar Sveen
a6984a1141 Merge pull request #53 from oneself/master
Adding support for using mc/edit-lines without transient mark mode.
2013-01-23 00:31:28 -08:00
Eyal Erez
6a5969e14a Adding support for using mc/edit-lines without transient mark mode. 2013-01-22 15:30:01 -05:00
Magnar Sveen
9a376a6fa2 Add note about yank-rectangle
- thanks to @snosov1 for the text
2013-01-19 08:29:31 +01:00
Magnar Sveen
bfb293f200 Merge pull request #48 from tkf/smartrep
Avoid strange behavior with smartrep
2012-12-12 13:12:51 -08: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
Magnar Sveen
424e0667a4 1.1.5 1.1.5 2012-12-02 08:29:52 +01:00
Magnar Sveen
f1a5a39b48 Merge pull request #46 from tkf/fix-dump-list-take-2
Fix mc/dump-list (take 2): it looses old setting
2012-12-01 22:34:14 -08: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
Magnar Sveen
07b88080b1 Merge pull request #43 from purcell/travis-script
Simplify travis script, and make it work when ECUKES_EMACS has spaces
2012-11-27 11:03:38 -08:00
Magnar Sveen
e7605bbd7c Merge pull request #42 from purcell/cleanup
Fix byte-compilation warnings, and avoid unnecessary use of "eval"
2012-11-27 11:03:22 -08:00
Steve Purcell
dc0aa99459 Simplify travis run script, and make it work when ECUKES_EMACS has a space in the path
Yes, on OS X, one might have:

ECUKES_EMACS='/Applications/Emacs 23.app/Contents/MacOS/Emacs'
2012-11-27 16:35:43 +00: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
Magnar Sveen
94164f706a Merge pull request #41 from purcell/patch-1
Prevent byte-compilation warnings 'cl functions
2012-11-26 03:28:46 -08:00
Steve Purcell
52300ff852 Prevent byte-compilation warnings 'cl functions
Prevents the following senseless warnings:

    In mc/first-fake-cursor-after:
    mc-cycle-cursors.el:76:70:Warning: function `remove-if' from cl package called
        at runtime
    mc-cycle-cursors.el:78:64:Warning: function `sort*' from cl package called at
        runtime

    In mc/last-fake-cursor-before:
    mc-cycle-cursors.el:85:71:Warning: function `remove-if' from cl package called
        at runtime
    mc-cycle-cursors.el:87:65:Warning: function `sort*' from cl package called at
        runtime
2012-11-26 11:21:27 +00:00
Magnar Sveen
129ea778cc 1.1.4 1.1.4 2012-11-25 09:23:14 +01:00
Magnar Sveen
0b9aae12ca Merge pull request #40 from tkf/fix-dump-list
Fix: mc/dump-list loosing old setting
2012-11-25 00:12:57 -08:00
Takafumi Arakaki
fa753aa587 Fix: mc/dump-list loosing old setting 2012-11-24 23:27:46 +01:00
Magnar Sveen
bc8af45bfe Use derived-mode-p to check for sgml-mode-ishness. 2012-11-21 13:22:27 +01:00
Magnar Sveen
b218a13cf7 Run tests in Emacs 23, Emacs 24 and snapshot. 2012-11-19 20:12:09 +01:00
Magnar Sveen
0a081a7c5f Move mc/maybe-multiple-cursors-mode to core. 2012-11-18 21:10:09 +01:00
Magnar Sveen
839c6ef077 Update README with command overview and tips-n-tricks. 2012-11-18 16:36:45 +01:00
Magnar Sveen
7d79b983ea Autoload new functions. 2012-11-18 16:08:10 +01:00
Magnar Sveen
717c97e32b Added Fuco to list of contributors 2012-11-18 14:47:48 +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
unknown
1074c88c99 Added mc/mark-all-like-this-dwim 2012-10-27 20:33:51 +02: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
fe211c018c Add word/symbol limiting mark-more functions:
- mc/mark-next-word-like-this
 - mc/mark-next-symbol-like-this
 - mc/mark-previous-word-like-this
 - mc/mark-previous-symbol-like-this
 - mc/mark-all-words-like-this
 - mc/mark-all-symbols-like-this

Fixes #24
2012-10-26 22:51:40 +02:00
Magnar Sveen
1afbb9317c Add mc/cycle-looping-behaviour to multiple-cursors custom group. 2012-10-26 22:15:12 +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
Magnar Sveen
7382b462b2 Merge pull request #30 from gvol/master
Fixed mode-line not showing up
2012-10-20 15:27:38 -07:00
Ivan Andrus
be4067da45 Fixed mode-line not showing up 2012-10-21 00:24:00 +02:00
Magnar Sveen
65d4f873fe Added Ivan Andrus to list of contributors 2012-10-21 00:54:04 +03:00
Magnar Sveen
dce196ce9f Merge pull request #28 from gvol/master
Show number of cursors in mode-line
2012-10-20 14:49:04 -07:00
Ivan Andrus
bb546b11d8 Display number of cursors in mode-line 2012-10-20 22:01:34 +02:00
Magnar Sveen
796fb640e1 Added segv to contributors list 2012-10-13 09:24:18 +03:00
Magnar Sveen
c3b2d8483b Merge pull request #23 from segv/master
Improve mc/cycle and mc/mark-next/prev
2012-10-12 10:26:46 -07:00
Marco Baringer
2818d9e7ef Rename mc/(first|last)-cursor-(before|after)-point to mention that they operate on fake cursors 2012-10-12 17:07:55 +02:00
Marco Baringer
1ec78e195f Don't let mc/mark-lines create 'double' cursors.
Previously using mc/mark-lines in a fowards/backwards/forwards
combination would cause multiple cursors to be placed at the same
point of the same line. This is not useful behaviour.

Noted while implementing magnars suggestion: https://github.com/magnars/multiple-cursors.el/pull/23#commitcomment-1983183
2012-10-12 17:04:36 +02:00
Marco Baringer
038c9a7f03 Added stop as a possible value for mc/cycle-looping-behaviour.
Simply disables looping (no warning either).
2012-10-12 16:56:01 +02:00
Marco Baringer
19b1a83925 Refactor mc/first-cursor-after and mc/last-cursor-before to not use extreme.
Sometimes imperative code is more readable.
Suggested by magnars (https://github.com/magnars/multiple-cursors.el/pull/23#commitcomment-1983268)
2012-10-12 16:51:01 +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
e4adefc04e Fix issues with mc/cycle-(backward|forward) where the cycling was dependent on not having an active mark.
This patch also adds two utility functions mc/first-cursor-after and mc/last-cursor-before.
2012-10-10 13:39:28 +02:00