aboutsummaryrefslogtreecommitdiff
path: root/evil-search.el
AgeCommit message (Collapse)Author
2024-09-15Replace uses of `defadvice` with `advice-add`Stefan Monnier
This either requires a dependency on the `nadvice` package, or bumping the minimum Emacs version to 24.4. I went with the `nadvice` package, but maybe bumping up to 24.4 would be better. * evil.el: Require `nadvice`. * evil-core.el (evil--advices): New var. (evil-mode): Use it instead of `ad-dis/enable`. (evil--advice-add): New function. (set-window-buffer, select-window, toggle-input-method, use-global-map): * evil-search.el (isearch-message-prefix, isearch-delete-char) (isearch-lazy-highlight-search): * evil-integration.el (keyboard-quit, wdired-change-to-dired-mode) (show-paren-function, quail-show-key, describe-char, ace-jump-done): Use `(evil--)advice-add` instead of `defadvice`. (preceding-sexp, pp-last-sexp): Remove old code for when `advice-add` is not available. * evil-repeat.el (evil--read-key-sequence-advice): Adapt to use in `advice-add`. (read-key-sequence, read-key-sequence-vector): Use `advice-add`. * evil-keybindings.el (elp-results): Use `advice-add` and move outside of `eval-after-load`.
2024-06-03Ex-substitute: use last search's case-sensitivityTom Dalziel
2023-09-20Disable vim-style-regexp conversions of already converted patterns (#1827)Tom Dalziel
* (Failing) test for `&` with very-magic vim-style backreferences * Disable vim-style-regexp conversions of already converted patterns
2023-08-20Some cleanupsAxel Forsman
2023-08-20Make evil-search-wrap-ring-bell work with evil-searchJustin Koh
evil-search-wrap-ring-bell only worked when evil-search-module was isearch. Make it work with evil-search as well.
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-12Some cleanupsAxel Forsman
2023-08-10Make evil-search-wrap-ring-bell work with evil-searchJustin Koh
evil-search-wrap-ring-bell only worked when evil-search-module was isearch. Make it work with evil-search as well.
2023-08-07Prefer #' to quote function namesStefan Monnier
2023-08-06Support recursive editing in ExAxel Forsman
This is a proper fix for #569 instead of commit ab0f6a546e6c703cd8d3c0d7c1035196b0455c45, which simply aborted the Ex command line upon it being unfocused. Apart from disallowing recursive editing, that also made debugging Ex errors impossible. The core issue was that evil-ex-current-buffer had a dual purpose: (I) While in the minibuffer, it stored the original buffer the Ex command would eventually act on, and was used for special registers and some argument handlers; and (II) While executing an Ex command it was non-nil, which signified that commands should use the variables evil-ex-range, evil-ex-bang and evil-ex-argument set by evil-ex-call-command, instead of, say, prompting for a motion. However, during recursive editing due to (I) evil-ex-current-buffer was dynamically let-bound, triggering the special behavior in (II), meaning all operators always worked on the evil-line motion, i.a. Fix this by, for (I), only setting evil-ex-current-buffer buffer-locally in the Ex minibuffer, renaming it to evil-ex-original-buffer (similar to minibuffer--original-buffer), and for (II) instead introducing evil-called-from-ex-p which is set to t solely during evil-ex-call-command. Closes #1415, by only making use of the return value of minibuffer-selected-window where required.
2023-07-18Delay evil-ex-search-update-pattern until idleAxel Forsman
2023-07-12Avoid marker for match-end in :substituteAxel Forsman
2023-05-17Fix searching for literal < and > with very-magicTom Dalziel
2023-02-20Restore match data after eval:ing replacementAxel Forsman
This fixes #1481. Also pass along the number of the current replacement to function called to generate each replacement, which fixes #1411.
2023-02-14Make Ex hooks not be permanentAxel Forsman
2022-10-13Fix compiler warningsTom Dalziel
2022-10-05Add tests for c-w yanking word in evil searchTom Dalziel
Additional to #1127
2022-10-05C-w support yank word when search-module is 'evil-searchjixiuf
2022-10-04Fix evil-ex-substitute up to EOBAxel Forsman
Fixes #1682
2022-09-29doc: follow the Emacs Lisp Style Guidedalu
2022-08-25Store :/ search pattern and parse vim-style regexpTom Dalziel
Fixes #1520
2022-04-25Bump version to 1.15.0Tom Dalziel
2022-04-12Add option for non-incremental search (#1304)fermata101
2022-04-11evil-ex-make-pattern: Don't transform the word boundaries into vim-styleGong Qijian
2021-10-11Mention that `evil-search-module` doesn't affect keybindingsTom Dalziel
2021-09-02Add `evil-search-wrap-ring-bell` customization variable (#1509)Johannes Neyer
2021-09-02Exit search prompt on mouse leave minibuffer (#1330)duianto
With the search module: evil-search Exit the `/` or `?` search prompts when mouse selecting another window.
2021-07-21Fix evil-ex-search-word-forward with evil-ex-search-vim-style-regexpTroy Hinckley
Disable evil-ex-search-vim-style-regexp when building the pattern for evil-ex-search-word-forward. We don't want the pattern transformed because it is not being entered by the user. Closes #347
2021-07-05Allow switching direction on ex-search shorthand repeat (#1485)Tom Dalziel
2021-07-04Support `/` and `//` shorthand for repeated search motions (#1484)Tom Dalziel
2021-04-09Fix `C-r` at evil ex search prompt (#1453)Tom Dalziel
* Introduce `evil-paste-clear-minibuffer-first` to aid `C-r` on search * Add test for pasting from register in ex-search prompt
2021-03-19Change to `1-` to maintain consistency in evil-ex-start-searchHernawan Faïz Abdillah
Co-authored-by: tomdl89 <33435574+tomdl89@users.noreply.github.com>
2021-03-17Fix evil-ex-search-backward stuck on first matchHernawan Fa'iz Abdillah
2020-10-13Update docstrings for -search-module and -undo-systemEivind Fonn
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-28Fix indentationEivind Fonn
2020-01-28Implement Vim Ctrl-f in minibuffer.Nathan Gass
Open apropriate command windows for Ctrl-f while in minibuffer for an ex command or a search. As all ways to abort a minibuffer do not return and restore the active buffer, we have to set the content of the minibuffer and exit normally to trigger the apropriate action. Also restoring the window configuration is necessary so minibuffer-selected-window is not changed.
2020-01-28Enable lexical bindingEivind Fonn
2020-01-26Ex search highlights: use selected window as fallbackEivind Fonn
In some cases search is triggered not from the minibuffer, in which case minibuffer-selected-window will not accurately capture the window in which search highlights should be created.
2020-01-02Don't explicitly call isearch-filter-predicate to open foldsEivind Fonn
This is handled implicitly by search-func now. The variable isearch-filter-predicates was reverted and never saw light of day in an official Emacs release.
2019-12-31Respect setting of isearch-filter-predicateEivind Fonn
Filtering our matches before passing them to isearch prevents isearch from entering an infinite loop if wrapped search is turned on and all the matches are filtered out.
2019-12-31Revert "Fix bounds of wrapped search"Eivind Fonn
This reverts commit e47db185aa3e6a15eba6e34847f0b28aa7055db8.
2019-12-28Search highlights: check window livenessEivind Fonn
2019-12-19Fix bounds of wrapped searchEivind Fonn
Do not perform the second search if the original search bound was set, as it must necessarily be bypassed. Use the original starting point for the search as the bound for the second search. Fixes #843 Thanks to Miciah Dashiel Butler Masters
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-11Bump version to 1.3.0-snapshotEivind Fonn
2019-12-11Bump version to 1.2.151.2.15Eivind Fonn