Aliasing built-in (cl) functions to cl-lib versions when they are
available in older Emacs versions can seemingly lead to problems
including infinite loops during byte compilation.
Since cl-lib works with all Emacs versions supported by
multiple-cursors, just depend on this directly instead.
This commit makes the necessary changes, both to code, documentation and
package metadata.
* README.md: Update readme to include mark-next-like-this symbol
* features/step-definitions/multiple-cursors-steps.el: Add phrase for
mark-next-like-this-symbol
* features/support/env.el: Add keyboard shortcut for
mark-next-like-this-symbol and fix shortcut for
mark-next-like-this-word
* mc-mark-more.el: Add mc/mark-next-like-this-symbol function
* multiple-cursors-core.el: Add mc/mark-next-like-this-symbol to
functions to run only once
* multiple-cursors.el: Add to readme section.
* README.md: Add mc/mark-next-like-this-word tidbits to readme.
* features/step-definitions/multiple-cursors-steps.el: Add
mc/mark-next-like-this-word call.
* features/support/env.el: Add shortcut for mc/mark-next-like-this-word
as "C-S-c C->".
* mc-mark-more.el: Add to mc/mark-next-like-this description to explain
what happens when no region is selected. Add
mc/mark-next-like-this-word function.
* multiple-cursors-core.el: Add mc/mark-next-like-this-word to commands
to run once.
* multiple-cursors.el: Add information about mc/mark-next-like-this-word.
* README.md: Add to readme, under special section.
* features/insert-letters.feature: Add scenarios.
* features/step-definitions/multiple-cursors-steps.el: Add call.
* features/support/env.el: Add keybinding for insert-letters to H-3.
* mc-separate-operations.el: Add function and helper functions.
* multiple-cursors-core.el: Add insert-letters to functions that run once.
* multiple-cursors.el: Add to readme.
`mc--active-cursor-count' was effectively duplicating the purpose of
`mc/num-cursors'. While the latter is necessarily slower (being a
function), it is well-tested and stable.
The customizable option `mc/max-cursors' now provides a soft maximum for
the number of cursors allowable. This is helpful for slower emacsen who
may freeze up when adding too many cursors (as in `mark-all' variants).
Fix: #206
When user enables mc mode we need to add function to disable mc mode
into undo-list. When users starts to hit 'undo' at some point mc-mode
will be disabled.
This minor mode when enabled hides all lines where no cursors (and
also hum/lines-to-expand below and above) To make use of this mode
press "C-'" while multiple-cursor-mode is active. You can still
edit lines while you are in mc-hide-unmatched-lines mode. To leave
this mode press "<return>" or "C-g"
jedi-mode is a minor mode implemented by jedi.el, a Python auto-complete
package built on top of Jedi and auto-complete.el. The two primary
features of jedi-mode are:
1) Automatically start autocompletion when the dot key is pressed
2) Activate key bindings for moving to variable and function
definitions.
Neither make much sense in the context of multiple cursors. In fact,
because multiple-cursors disables auto-complete-mode, jedi-mode's
complete-on-dot function will fail to run correctly. The end result is
that typing a dot with multiple cursors active results in only one
cursor producing the dot.
Because of this bug, and that jedi-mode as a whole doesn't make much
sense with multiple cursors, I have added jedi-mode to the list of
unsupported minor modes.
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'.
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
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'