466 Commits

Author SHA1 Message Date
Magnar Sveen
758223c45b
Merge pull request #388 from emacsmirror/expkg
Move metadata from multiple-cursors-pkg.el to multiple-cursors.el
2025-02-10 19:12:54 +01:00
Jonas Bernoulli
bb07ffee68
Move metadata from multiple-cursors-pkg.el to multiple-cursors.el 2024-12-26 17:55:18 +01:00
Magnar Sveen
dd10cf2334
Merge pull request #387 from arialdomartini/tables
List of commands in a table
2024-12-02 17:31:03 +01:00
Arialdo Martini
3317246070 List of commands in a table, to improve readability 2024-12-02 15:55:39 +01:00
Magnar Sveen
46635e7f69
Merge pull request #386 from AjaiKN/symbol-value
Use symbol-value instead of eval
2024-12-01 19:41:18 +01:00
Ajai Nelson
e315120117
Use symbol-value instead of eval
The Emacs Lisp manual says, "to get the value of a variable, while eval
works, symbol-value is preferable".
2024-11-27 08:40:16 -05:00
Leo Gaskin
c870c18462
Merge pull request #383 from LaurenceWarne/fix-byte-comp-warnings
Fix byte compilation warnings
2024-02-23 12:34:45 +01:00
Laurence Warne
ba7852f192 Move mc/mark-more-like-this-extended-keymap defvar location 2024-02-13 21:03:23 +00:00
Leo Gaskin
d36c62aa71
Merge pull request #384 from cryptorick/fix-version
Align version numbers
2024-02-13 18:34:26 +01:00
cryptorick
5ab154b09e align version numbers 2024-02-12 23:45:40 -05:00
Laurence Warne
25b0dca82e Fix byte compilation warnings
Fix the byte compilation warnings:

In mc--read-char:
multiple-cursors-core.el:347:2: Warning: reference to free variable ‘multiple-cursors-mode’

In mc--read-quoted-char:
multiple-cursors-core.el:348:2: Warning: reference to free variable ‘multiple-cursors-mode’

In mc--register-read-with-preview:
multiple-cursors-core.el:349:2: Warning: reference to free variable ‘multiple-cursors-mode’

In mc--read-char-from-minibuffer:
multiple-cursors-core.el:350:2: Warning: reference to free variable ‘multiple-cursors-mode’

In toplevel form:
mc-mark-more.el:95:2: Warning: defvar `mc/enclose-search-term' docstring has wrong usage of unescaped single quotes (use \= or different quoting)

In mc/mark-more-like-this-extended:
mc-mark-more.el:501:2: Warning: docstring has wrong usage of unescaped single quotes (use \= or different quoting)
mc-mark-more.el:522:22: Warning: reference to free variable ‘mc/mark-more-like-this-extended-keymap’

In end of data:
mc-mark-more.el:724:27: Warning: the function ‘sgml-skip-tag-forward’ is not known to be defined.
mc-mark-more.el:673:8: Warning: the function ‘sgml-get-context’ is not known to be defined.

In end of data:
mc-hide-unmatched-lines-mode.el:110:1: Warning: the function ‘sgml-skip-tag-forward’ is not known to be defined.
mc-hide-unmatched-lines-mode.el:110:1: Warning: the function ‘sgml-get-context’ is not known to be defined.

In end of data:
multiple-cursors-core.el:567:43: Warning: the function ‘sgml-skip-tag-forward’ is not known to be defined.
multiple-cursors-core.el:535:25: Warning: the function ‘sgml-get-context’ is not known to be defined.

In end of data:
mc-cycle-cursors.el:124:1: Warning: the function ‘sgml-skip-tag-forward’ is not known to be defined.
mc-cycle-cursors.el:124:1: Warning: the function ‘sgml-get-context’ is not known to be defined.
2024-02-11 20:35:00 +00:00
Magnar Sveen
234806c832
Merge pull request #382 from ayyess/master
Support commands with multiple read-chars
2023-07-28 07:18:59 +02:00
Andrew Scott
25b98b940c
Support commands with multiple read-chars
This change fixes commands that read-chars multiple times. Previously, two
stage commands like embrace-change would read the same char twice immediately
and avy-goto-char-timer would never stop reading input as a cached value was
always provided during the timer. Instead, the read-char prompt is included in
the cache key so that multiple different calls are cached separately and
accessible by the fake cursors.
2023-07-28 00:05:13 +01:00
Magnar Sveen
6956e8e12e
Add autoload to activate-cursor-for-undo
This solves an issue where packages are loaded mid undo-session with undo-fu
2023-03-09 13:04:31 +01:00
Leo Gaskin
16223efc2d Fix byte compiler warnings by moving variable declarations 2023-01-13 09:35:03 +01:00
Leo Gaskin
7f255ce696 Remove notes saying that "M-x" isn't properly supported 2022-12-24 13:26:12 +01:00
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