aboutsummaryrefslogtreecommitdiff
path: root/evil-common.el
AgeCommit message (Collapse)Author
2019-01-04Bump version to 1.2.141.2.14Eivind Fonn
2018-04-13Better protect against modes that disable undoJoão Távora
Even though 'evil-start-undo-step' does check buffer-undo-list, it is possible that the forms wrapped by 'evil-with-undo' disable undo in the meantime. In those conditions, 'evil-refresh-undo-step' will eventually error. https://github.com/joaotavora/sly/issues/156 references such an incident. * evil-common.el (evil-end-undo-step): Also check that buffer-undo-list is a list here.
2018-04-08Use local-variable-p instead of assqAaron Jensen
assq uses more memory for some reason. See #1037
2018-03-07Use string-match-p when possibleRudi Grinberg
In some situations, we don't use the match data. So we might as well not capture it.
2018-03-05Avoid using newline to respect use-hard-newlinesRichard Lawrence
Since `newline` isn't good for non-interactive use, conditionally insert `hard-newline` or simply "\n" in evil-insert-newline-{above,below}
2018-03-05Respect use-hard-newlines in evil-insert-newline-{above/below}Richard Lawrence
Call `newline`, which respects use-hard-newlines.
2017-11-22Remove dependency on clJustin Burkett
Replace caddr in evil-test-helpers.el with primitive functions.
2017-11-19Fix compile warning for deprecated x-set-selection, x-get-selectionEvgeni Kolev
Refs #952
2017-10-28Preserve undo history when the execution of a keyboard macro is stopped by ↵Joaquim Monserrat
an error Fixes #702
2017-10-15Remove reference to missing arguments FORWARD and BACKWARD from docMichael Walker
2017-10-12Fixed evil-yank-line-handler and evil-yank-block-handler when ↵Joaquim Monserrat
yank-excluded-properties is t (#937) * Fix evil-yank-line-handler when yank-excluded-properties is t * Fixed evil-yank-block-handler when yank-excluded-properties is t. Added evil-remove-yank-excluded-properties function. * Correct the formatting of doc string.
2017-10-03Escape parentheses and space characters properlyVasilij Schneidermann
2017-10-02update version to 1.2.131.2.13Eivind Fonn
2017-09-02Eliminate a few byte compiler warningsYork Zhao
2017-08-12Teach evil-redirect-digit-argument about command remappingJustin Burkett
Allows one to remap evil-beginning-of-line and have evil-digit-argument-or-evil-beginning-of-line respect this remapping.
2017-08-01fix pipe text-object macroWilliam G Hatch
Fixes issue #884
2017-07-10Truncate temporary-goal-column which might be a floating numberEvgeni Kolev
Without this fix, actions such as `d C-v 5 j` would occasionally fail with such errors `Wrong type argument: wholenump, 6.0`
2017-06-22Keep Emacs from clearing text properties on yankVasilij Schneidermann
This should be safe to do as Evil already does this with the pasted text. Closes #855
2017-06-12Merge pull request #747 from willghatch/fix-up-blockVasilij Schneidermann
Fix evil-up-block
2017-06-08fix evil up block -- make it symmetrical forward and backwardWilliam G Hatch
2017-05-10Merge pull request #808 from emacs-evil/bugfix-ppss-useVasilij Schneidermann
Use `save-excursion` to preserve point
2017-05-08Don't allow changing read-only or invalid registersEvgeni Kolev
2017-04-10Use `save-excursion` to preserve pointVasilij Schneidermann
Closes #807
2017-03-23Look up bound key status correctlyVasilij Schneidermann
2017-02-19Re-add compatibility functions with deprecation warningsEivind Fonn
2017-02-15Remove support for Emacs < 24Eivind Fonn
2017-02-15Require cl-lib instead of clVasilij Schneidermann
2016-06-05Tweak undo behavior to fix #594justbur
In v25.1, emacs changes the way undo boundaries are automatically removed to combine commands into single undo steps. #594 is the result of more aggresive removals of undo boundaries. To fix this, make evil more active in inserting undo boundaries when entering and exiting insert and replace state by creating a boundary automatically if none exists. A slightly different issue in #594 is that the fine option of evil-want-fine-undo was not always working correctly. The reason is that it removed the first undo boundary after exiting insert state regardless of whether it made sense to do so (i.e., regardless of whether there was a change command). This commit removes the fine option and simplifies the meaning of the variable to mean aggregate commands like vim or use Emacs heuristics.
2016-06-04Add forcing default cursor of current state.Frank Fischer
The variable `evil-force-cursor` can be set to a state symbol so that the current default cursor is changed to the specified state. This can be used to ensure that subsequent calls to `evil-refresh-cursor` use the cursor in `evil-force-cursor` instead of the states default cursor.
2016-05-22Forward declare `evil-set-jump` in evil-commonFrank Fischer
2016-05-06Setting mark `'` adds a new jump target (fix #664)Frank Fischer
2016-05-06Fix doc string of `evil-select-xml-tag`Frank Fischer
2016-04-05Merge stableFrank Fischer
2016-04-05update version to 1.2.121.2.12Frank Fischer
2016-03-28Handle block text objects ending in complete lines (re #645)Frank Fischer
If a block text objects ends in a complete line but does not start in a complete line, the newline of the last line is excluded.
2016-03-28Block objects of exclusive-line type may return linewise selection (fix #645)Frank Fischer
* if the selection contains whole lines only return linewise range * `evil-text-object-make-linewise` return unmodified range if it has already line type
2016-03-24Change exclusive selection type of paren blocks to `exclusive-line` (fix #643)Frank Fischer
2016-03-24Support exclusion of whitespace in block text-objects (re #643)Frank Fischer
Inner parenthesis text objects should ignore whitespace at the beginning or end of they are at the end of beginning of the line. * add `evil--get-block-range` function that returns the correct selection according to the desired selection-type * modify `evil-select-block` to consider the additional selection-type `exclusive-line`
2016-03-07Merge with stableFrank Fischer
2016-03-07update version to 1.2.111.2.11Frank Fischer
2016-02-27Fix block text object selection on edges of an objects (fix #625)Frank Fischer
2016-02-15create unified evil list view and refactor existing ↵Bailey Ling
jumps/marks/registers/digraphs to use it
2016-02-14Merged in 'devel'Bailey Ling
2016-02-13run 'make indent', move evil-jump-hook into evil-jumps.el; delegate jump ↵Bailey Ling
commands so that they can be compiled
2016-02-10use bolp instead of (= (point) (line-beginning-position))Kevin Brubeck Unhammer
2016-02-09Second attempt at solving #613 (slow scrolling/visual in big files)Kevin Brubeck Unhammer
Now uses a wrapper around count-lines to avoid the off-by-one's (issue #615).
2016-02-08replace existing jump list functionality with evil-jumperBailey Ling
2016-01-30evil-scroll-down/up changed to not use evil-max-scroll-down/upunhammer
seems ~4x faster on large test files evil-max-scroll-down and evil-max-scroll-up removed
2016-01-29whitespaceunhammer
2016-01-29count-lines *much* faster than subtracting line-number-at'sunhammer