17 Commits

Author SHA1 Message Date
Pedro A. Aranda Gutiérrez
9017f3be6b
Add lexical binding cookies (#389)
* Add lexical binding cookies

* multiple-cursors-core.el: Pacify lexical-binding frenzy in master

* multiple-cursors-core.el: when saving mc/list-file, prepend a
lexical binding flag to avoid emacs master from screaming.  When
inserting strings, use `\\n' instead of (newline).
2025-10-06 13:38:27 -07: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
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
Bozhidar Batsov
741eec6766 Update some copyright years 2016-05-19 20:29:36 -07:00
Steve Purcell
4bf9860bcc Use cl-lib instead of shimming, which breaks in older emacsen
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.
2016-04-25 11:19:06 +12:00
Kouhei Yanagita
38e590ce06 Fix cycle-cursor behavior.
mc/cycle-forward had been skipping a cursor on (point-max).
mc/cycle-backward had been skipping a cursor on (point-min).
2014-01-05 14:51:38 +09: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
1afbb9317c Add mc/cycle-looping-behaviour to multiple-cursors custom group. 2012-10-26 22:15:12 +02: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
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
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
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
b912bf80b1 Always require multiple-cursors-core 2012-08-02 10:34:48 +02:00
Magnar Sveen
b1ea7f2230 Add licences to all el-files. 2012-07-25 23:00:19 +02:00
Magnar Sveen
092b0a1017 Cycle through cursors with C-v and M-v 2012-07-21 08:26:41 +02:00