aboutsummaryrefslogtreecommitdiff
path: root/evil-jumps.el
AgeCommit message (Collapse)Author
2024-07-12Add tests for multi-jumpTom Dalziel
2024-07-12Fix: Should not (evil-set-jump previous-pos) jump after evil-jump-forwardroxma
Steps to reproduce the issue: - Create files `a` `b` `c` with the following content: $ head a b c ==> a <== b I'm A ==> b <== c I'm B ==> c <== I'm C - Run `emancs a` to open bufer `a` - Press `gf` to jump to bufer `b` - Press `gf` to jump to bufer `c` - Press `C-o` to jump back to bufer `b` - Press `C-o` to jump back to bufer `a` - Press `C-i` to jump foward to bufer `b` - Press `C-i` to jump foward to bufer `c`, but the window stays with buffer unexpectedly.
2023-08-20Remove redundant `:group` argsStefan Monnier
In the absence of `:group`, `defcustom` and `defface` default to the group that was last defined in the same file. * evil-jumps.el: Remove redundant `:group` args.
2023-08-13Urgent revert of recent commits while evil is brokenTom Dalziel
Some of these commits can be almost immediately restored, once the time is found to do so. Revert "Fix evil-with-delay with dynamic binding" This reverts commit 1e9b2434264529fe0dd964b68fe89236a4abeac3. Revert "Some cleanups" This reverts commit 0cbd61f2de104fab16602d0418605cd0513b16f3. Revert "Misc minor changes" This reverts commit b291039b0c6ffc3b2f3c9f02b8ad2f0041127b12. Revert "Merge evil-with-delay condition and body lambdas" This reverts commit 1b56ffcc102b4c5f8b015e760b5f9cf5932622af. Revert "(evil-with-delay): New macro, extracted from `evil-delay`" This reverts commit 3d7faadf30016a8c20699a5fb1b5731b8a49dcd2. Revert "Make evil-search-wrap-ring-bell work with evil-search" This reverts commit 5e72cf5b6d57b785ea229236bb5c4638db2c9a05. Revert "Stop the '</'> and '[/'] marks from intertwining" This reverts commit 26db9441a13ebedb2481d7ada4c3b5e60ec22795. Revert "Remove redundant `:group` args" This reverts commit 6e30037fdc6a275d78d6b82d89bd8e47bcf4d4e3. Revert "Avoid eval in evil-test-buffer" This reverts commit 27d81ad406d2d3e07591b927357d2354ef5b5c65. Revert "Use lexical-binding everywhere" This reverts commit 44c7f301468c264a781be4ee8ae879fe1b457e60.
2023-08-07Remove redundant `:group` argsStefan Monnier
In the absence of `:group`, `defcustom` and `defface` default to the group that was last defined in the same file. * evil-jumps.el: Remove redundant `:group` args.
2023-04-21Support evil--jumps-push for dired-moderoxma
Add `evil--jumps-current-file-name` that returns `default-directory` in `evil--jumps-push` when dired-mode is active. The `dired-directory` can be properly re-opened by `find-file` called by future evil-jump-backward or evil-jump-forward.
2023-01-10Fix Fundamental mode hackAxel Forsman
This commit fixes some issues surrounding the initialization of Evil. First of all, since GNU Emacs 26.1 major mode hooks actually do run in Fundamental mode buffers. In any case, manually enabling fundamental-mode correctly instead of turn-on-evil-mode (by setting major-mode default) successfully enables evil-local-mode, as major mode hooks then run. The major-mode variable also never needed to be reset; it is the job of the major mode to set it, as it starts off as fundamental-mode regardless of its default value. Secondly, while some hooks and variables set up by evil-local-mode were marked as permanent, this did not matter as evil-initialize unconditionally reinitialized evil-local-mode whenever the major mode changed. Fixed by marking them all as permanent and not executing evil-local-mode if it is already enabled. Closes #1268, closes #1561
2022-10-13Shorten doc-stringsTom Dalziel
2022-09-29doc: follow the Emacs Lisp Style Guidedalu
2022-04-25Bump version to 1.15.0Tom Dalziel
2021-08-10Do not try to switch file/buffer when jumping inside same file (#1506)Konstantin Kharlamov
The vast majority of jumps will end up within the current opened file/buffer, simply because usually users do more movement inside a buffer rather than across buffers. There is even a special case when evil-jumps-cross-buffers is set to nil, which causes jumps never ever switch buffers. So, let's do a small optimization, and not try to call find-file or switch-to-buffer if we know it is unnecessary. As a side-effect, this should also help to users to stumble less upon https://github.com/emacs-evil/evil/issues/1504 bug (it has its own upstream fix, but until that landed, this small optimization is known to help as well).
2020-09-17Make code more idiomaticVasilij Schneidermann
2020-08-16Fix reference to free variableEivind Fonn
2020-08-16Add comment explaining `evil--jumps-jumping-backward'Erik Hahn
2020-08-16Treat all commands that change the buffer as jump commandsErik Hahn
All commands that change the current buffer are jump commands. This was previously implemented using advices, but this did not catch all all applicable commands: find-file, for example, was ignored. Instead, use the post-command-hook to check if a command changed the buffer.
2020-08-16Use a function for the evil local hookErik Hahn
2020-08-16evil-set-jump: handle markers for different buffersErik Hahn
Correctly handle the case of POS being a marker located in a buffer other than the current one.
2020-08-16Fix evil--jumps-messageErik Hahn
evil--jumps-message did not evaluate its args parameter.
2020-03-04Bump version to 1.14.01.14.0Eivind Fonn
2020-02-03Clean up compilation warnings from lexical bindingEivind Fonn
2020-01-29Re-enable lexical bindingEivind Fonn
This reverts commit e9391ae769bee189ef6144b8861b117d5c948a80, and removes spurious debug messages.
2020-01-28Revert "Enable lexical binding"Eivind Fonn
This reverts commit c6086a7b0b44963071096e3ed7545f617de88915.
2020-01-28Enable lexical bindingEivind Fonn
2019-12-18Bump version to 1.13.0Eivind Fonn
Version 1.2.15 was accidentally tagged as 1.12.15, and released as such by MELPA Stable, so now I guess we have to run with it.
2019-12-11Fix/improve some indentationEivind Fonn
2019-12-11Bump version to 1.3.0-snapshotEivind Fonn
2019-12-11Bump version to 1.2.151.2.15Eivind Fonn
2019-01-04Bump version to 1.2.141.2.14Eivind Fonn
2018-04-28Fix evil-set-jump called with an argumentnoctuid
Previously, it would always push the current position.
2017-12-20Fix loading of advice for find-tag-noselectJustin Burkett
Defer advice until after etags has loaded to prevent a find-tag-noselect was redefined message.
2017-10-02update version to 1.2.131.2.13Eivind Fonn
2017-07-13Merge pull request #749 from c4eater/masterVasilij Schneidermann
Implement a flag for prohibiting the jump commands to switch buffers
2017-07-11incorporate patch review feedback (remove the bug prohibiting jumps on first ↵Oleg Kostyuchenko
visit)
2017-02-15Require cl-lib instead of clVasilij Schneidermann
2017-01-27implement a flag for prohibiting the jump commands to switch buffersOleg Kostyuchenko
2016-03-21account for load order of savehist. fixes #641.Bailey Ling
2016-03-05Remove `evil-save-echo-area` in `evil-set-jump` (fix #631)Frank Fischer
`evil-save-echo-area` calls `message` to restore the old message are content, which might not work if the each area consists of more than two lines. However, because the second argument to `push-mark` is `t`, this use of `evil-save-echo-area` should not be necessary.
2016-02-15create unified evil list view and refactor existing ↵Bailey Ling
jumps/marks/registers/digraphs to use it
2016-02-14implement navigating to jumps listed in the evil-jumps listingBailey Ling
2016-02-14refactor debug to a macro so it gets compiled away and add guard for ↵Bailey Ling
potential empty list
2016-02-13add basic implementation for the missing evil-show-jumpsBailey 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-12change hooks to be buffer local for evil-local-mode and change savehist ↵Bailey Ling
hooks to be global for evil-mode
2016-02-11optimize implementation by using ring data structureBailey Ling
2016-02-11define advice globally and rely on existing ad-enable/disable callsBailey Ling
2016-02-10add more jump lists testsBailey Ling
2016-02-10rename evil-jumps-- to evil--jumpsBailey Ling
2016-02-08replace existing jump list functionality with evil-jumperBailey Ling