When the 'cursor-type' for the buffer is specified by the frame, this
was not detected by the current logic as 'cursor-type' will be set to
't' and thus not explicitly match 'bar'. This update checks to see if
'cursor-type' is specified by the frame and will pull the parameter
from the frame if it is, prior to subsequent checks.
Add register-read-with-preview and read-char-from-minibuffer to cover
insert-register and zap-to-char, respectively.
Also add mc--reset-read-variables to for mc--reset-read-prompts to use
dynamically so these can be further extended via the macro.
Previously the list file was loaded immediately upon loading
`multiple-cursors-core`. This doesn't work well with modern autoloading
emacs configurations, where customisation is mostly done in
`eval-after-load` hooks; the default file location is loaded, *then*
the value of `mc/list-file` is changed, and everyone is confused.
It seems that this may be a windows specific issue given the version
strings that @moyotar and @dertuxmalwieder have posted. As a
workaround it should be safe to add the arguments that current-kill
needs to the defadvice. current-kill has had the same arguments for
the past 25 years, since it was first added.
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"