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
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
Marco Baringer
80ebdbb35b
Added test for mc/mark-(next|previous)-like-this when there is no active region.
2012-10-10 13:37:40 +02:00
Marco Baringer
9ac7675c78
Added tests for mc/cycle-forward and mc/cycle-backward with their new looping behaviour
2012-10-10 13:36:45 +02:00
Marco Baringer
3f20fc15a7
When no region is active mc/mark-next-like-this and mc/mark-previous-like-this should create a cursor one like up (or down).
...
Added the functions mc/mark-next-lines and mc/mark-previous-lines
which create cursors one line above and below point.
Refactored common mc/mark-previous-like-this and
mc/mark-next-like-this functionality into mc/mark-more-like-this.
Changed mc/mark-next-like-this and mc/mark-more-like-this to call
mc/mark-next-lines and mc/mark-previous-lines when there is no
active region (instead of erroring).
2012-10-10 11:15:22 +02:00
Marco Baringer
876937bfa3
Use (interactive "P") instead of the weird (but equivalent) (interactive (list prefix-arg))
2012-10-10 10:04:22 +02:00
Marco Baringer
fcbb7a4df9
Make mc/cycle-forward and mc/cycle-backward loop around by default.
...
Instead of erroring if there is no next (respectively previous) cursor
mc/cycle-forward (respectively mc/cycle-backward) will just loop back
to the first (respectively last) cursor.
2012-10-10 09:24:19 +02:00
Magnar Sveen
a0f771f3e4
Include interactive commands for deselecting prev/next
...
Fixes #21
2012-10-04 07:47:31 +02:00
Magnar Sveen
879ddb0e97
Add Takafumi Arakaki to list of contributors
2012-10-03 20:12:56 +03:00
Magnar Sveen
6e9ea1ae52
Merge pull request #20 from tkf/diff-friendly-save-lists
...
Diff friendly .mc-lists.el
2012-10-03 10:10:41 -07:00
Magnar Sveen
8a12e97b7d
Mention region-bindings-mode in README
2012-10-03 20:06:15 +03:00
Takafumi Arakaki
f4d5aea860
Sort before saving list in mc/save-lists
2012-10-03 18:50:29 +02:00