Commit Graph

450 Commits

Author SHA1 Message Date
Leo Gaskin 351eb6cbb5 Add multiple-cursors support to execute-extended-command
Also add three new tests for this functionality and adapt some existing
tests as well as the testing harness.
2022-12-24 13:26:12 +01:00
Leo Gaskin 558198239e Disable CI support for old versions of Emacs
Cask has seemingly stopped properly supporting these versions as
indicated by the commit cask/cask@685c4c1.
2022-12-23 16:22:43 +01:00
Leo Gaskin 817a7a8d25 Fix problem aborting mc/edit-lines when not in transient-mark-mode 2022-12-23 16:22:43 +01:00
Leo Gaskin c9ea562bd5 Fix regression with determining the current sgml context
This problem seems to have been introduced in commit aae47ae by adding
"100" as an argument to "looking-back" instead of the correct "1".
2022-12-23 16:22:43 +01:00
Leo Gaskin 72de6a4ec4 Use latest major version of actions/checkout for CI 2022-12-23 16:22:43 +01:00
Leo Gaskin 03bc44e093 Use new recommended Cask installation method 2022-12-23 16:22:43 +01:00
Troy Brown fe0d516745 Detect cursor bar type when specified by the frame.
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.
2022-11-26 08:43:42 +01:00
Seungheon Oh 1e4842d129 Fix mc/mark-all-in-region leaving fake cursor.
Previously this function left a remain of fake function if there was
only one matching string in selected region.
2022-08-21 11:32:12 +02:00
Ryan Davis 225fc0e889 Extend advising functions for read-char and quoted-read-char w/ macro
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.
2022-06-13 23:22:50 +02:00
Will B Chang fd8441bfc8 support undo-fu commands
https://github.com/emacsmirror/undo-fu
2022-05-28 14:15:14 +02:00
Steve Purcell 2f003612b7 Use GitHub Actions in place of Travis, and test more Emacs versions (#365)
* Use GitHub Actions in place of Travis, and test more Emacs versions

* Run tests in Actions via `script` to fake a TTY

* Add newer emacs versions to CI matrix
2022-05-22 23:54:21 +12:00
Jason May aae47aebc0 eliminate byte-compilation warnings
- long docstrings
- "defcustom fails to specify type" - use '(sexp)
- keyword arguments in define-minor-mode
- deprecations
2022-03-28 19:24:00 +02:00
Johannes Lippmann 8a60fc7ef0 Document multiple-cursors-mode-disabled-hook in Readme 2021-11-12 23:23:42 +01:00
Johannes Lippmann b139bb6b30 introduce function mc/disable-multiple-cursors-mode 2021-11-12 23:23:42 +01:00
Johannes Lippmann 4975afedb3 Run hook when mc is disabled 2021-11-12 23:23:42 +01:00
Philip K 588daf8c52 Mention NonGNU ELPA
Hi,

multiple-cursors has recently been added to [NonGNU ELPA](https://elpa.nongnu.org/), allowing Emacs 28+ users to install it without any additional configuration.

This patch mentions NonGNU in the README, so that users know that it can be installed by default.

Otherwise, the only thing worth noting is that NonGNU ELPA distributes stable versions by default, and these are identified by commits that modify the version tag in the package header. I'm not sure if new versions are to be expected, but in case there is an update, please remember to update the version tag too.
2021-08-08 13:05:02 +02:00
Kaligule 616fbdd369 Document existing functions in Readme
mc/vertical-align
mc/vertical-align-with-space

I have wanted that functions for so long, only to find out now that they have existed for 7 years!
2021-04-21 11:11:19 +02:00
Amory Meltzer 7b13b03c99 Add homepage 2021-03-23 12:28:43 +01:00
Vedang Manerikar cb93501ec7 Minor backward compatibility fix to remove warning
This removes the deprecation warning around `return-from'
2021-03-22 19:44:31 +01:00
Zach Kost-Smith a9d7764f80 Add option to disable bar-style fake cursors (#367) 2020-12-15 07:59:00 -08:00
Jen-Chieh Shen 83abb0533a Add badges to README (#363)
* Add badges to README

* Update README.md

Co-authored-by: Steve Purcell <steve@sanityinc.com>

Co-authored-by: Steve Purcell <steve@sanityinc.com>
2020-10-25 13:27:10 +13:00
Masahiro Nakamura 7763f4f9d7 Load mc-cycle-cursors and mc-hide-unmatched-lines-mode after loading multiple-cursors-core
This is useful with autoloaded commands.
2020-10-18 07:38:52 +02:00
Masahiro Nakamura 6a04a147ce Fix docstrings
Fix wrong docstrings of mc/mark-next-word-like-this and
mc/mark-next-symbol-like-this.
2020-10-18 07:37:54 +02:00
Damien Cassou b880554d04 Fix typos (#359)
Typos found with codespell.
2019-12-10 09:59:45 -08:00
Magnar Sveen b9b851a767 Merge pull request #358 from renatofdds/master
Faster line-number-at-pos calculation
2019-08-20 09:49:53 +02:00
Renato Ferreira b39e9631d6 Faster line-number-at-pos calculation 2019-08-18 13:44:55 -03:00
Magnar Sveen 5ffb19af48 Update README.md 2019-03-21 06:57:00 +01:00
Magnar Sveen a730c414b1 Update README.md 2019-03-20 18:12:37 +01:00
Magnar Sveen fc6a6a7462 Merge pull request #355 from flatwhatson/lazy-list-file
Load mc/list-file as late as possible
2019-03-17 13:11:44 +01:00
Andrew Whatson d27870dff3 Load mc/list-file as late as possible
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.
2019-03-13 13:40:58 +10:00
Magnar Sveen 5ff2071fac Merge pull request #351 from jrosdahl/dabbrev-expand
Add dabbrev state variables to mc/cursor-specific-vars
2019-02-24 13:46:09 +01:00
Joel Rosdahl 9980faa21f Add dabbrev state variables to mc/cursor-specific-vars
Fixes #142.
2019-02-24 13:28:36 +01:00
Matus Goljer 6a7c3c0853 Fix whitespace 2018-09-13 14:37:07 +02:00
Matus Goljer 8172edd05a Realign the file according to Elisp conventions 2018-09-13 14:26:58 +02:00
Matus Goljer 3f382d2c8f Move variables before first use 2018-09-13 14:26:38 +02:00
Magnar Sveen 9c49874fa4 Merge pull request #333 from drrlvn/patch-1
Make "no more matches found." user-error, fix #218
2018-06-15 14:18:37 +02:00
Dror Levin 038815b2b9 Make "no more matches found." user-error, fix #218 2018-06-06 22:33:08 +03:00
Magnar Sveen 75dd6bf83a Merge pull request #327 from notetiene/master
Add customization group definition
2018-04-06 22:50:01 +02:00
Etienne 35ff8b5ef1 Add customization group definition
* multiple-cursors.el (multiple-cursors): Add the multiple-cursor
  group definition.
2018-04-06 15:31:54 -04:00
Magnar Sveen e419903612 Merge pull request #324 from mkcms/master
Always call `mark` with `mark-even-if-inactive` set to t
2018-04-06 14:47:29 +02:00
Magnar Sveen 0e49fecc18 Merge pull request #326 from pstray/issue325
Add temporary-goal-column to mc/cursor-specific-vars
2018-03-20 15:47:49 +01:00
Peder Stray eba10208fc Add temporary-goal-column to mc/cursor-specific-vars 2018-03-20 11:25:08 +01:00
Michał K f628df72a1 Always call mark with mark-even-if-inactive set to t 2018-03-12 16:18:22 +01:00
bb2020 1075270008 Added mc/interactive-repeating-commands (#303)
* Added mc/interactive-repeating-commands

* simplify mc/interactive-repeating-commands

* simplify mc/interactive-repeating-commands

* removed mc/interactive-repeating-commands

* added mc/repeat-command

* rebound mc/repeat-command

* blacklisted repeat-complex-command

* added mc/always-repeat-command

* added mc/repeat-command tests
2017-09-08 14:52:47 -07:00
Jules Tamagnan e048e04bd8 Fix #271: The command yank can't work
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.
2017-08-31 16:33:49 -07:00
Magnar Sveen 6f183a1e82 Merge pull request #304 from angadgill92/master
Fix minor error
2017-08-30 06:48:45 +02:00
Angad Pal f33cdd4935 Fix minor error
- replace "... does not well ..." with "... does not do well ..."
2017-08-30 07:48:31 +05:30
Magnar Sveen 18f992bff5 Merge pull request #290 from raxod502/feat/silent-load
Don't display message while loading mc/list-file
2017-08-13 09:38:48 +02:00
Magnar Sveen f6bac949a0 Add note about M-x 2017-08-11 13:29:04 +02:00
Magnar Sveen e14fdb77a1 Merge pull request #298 from Quasilyte/update_readme
README: added a note about newlines in "tips and tricks"
2017-07-30 16:46:20 +02:00