[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-matchit b63f840ee7 124/244: When on whitespace follow
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-matchit b63f840ee7 124/244: When on whitespace following a keyword don't jump backwards |
Date: |
Thu, 6 Jan 2022 02:58:55 -0500 (EST) |
branch: elpa/evil-matchit
commit b63f840ee7637dc0d05ae6c31a4d2a728ba399af
Author: Tomasz KoĆodziejski <tkolodziejski@gmail.com>
Commit: Tomasz KoĆodziejski <tkolodziejski@gmail.com>
When on whitespace following a keyword don't jump backwards
In the example:
```
module Stable = struct
| let x = 1
end
```
don't jump to end if the point is in the place marked with `|`.
---
evil-matchit-ocaml.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/evil-matchit-ocaml.el b/evil-matchit-ocaml.el
index 3c2af0577f..53cff0d482 100644
--- a/evil-matchit-ocaml.el
+++ b/evil-matchit-ocaml.el
@@ -61,9 +61,8 @@
nil)))
(defun evilmi-ocaml-goto-word-beginning ()
- ;; this is so that when the cursor is on the first character we don't jump
to previous word
- (forward-char)
- (search-backward-regexp "\\<"))
+ (let ((bounds (bounds-of-thing-at-point 'word)))
+ (if bounds (goto-char (car bounds)))))
;;;###autoload
(defun evilmi-ocaml-get-tag ()
- [nongnu] elpa/evil-matchit 62d948743e 092/244: updated README, (continued)
- [nongnu] elpa/evil-matchit 62d948743e 092/244: updated README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 98c045d352 094/244: Merge pull request #61 from robbyoconnor/patch-2, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 94e359e30c 095/244: Fix embedded major-mode detection in org-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit c675e740a7 101/244: can simple jump in latex-mode, #70, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 34c51f68fd 102/244: jump in diff-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 64791bc376 105/244: clean code, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 51d46747e3 108/244: support Facebook React JSX, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 8a56092b38 110/244: can handle `render()` in jsx, code cleaned, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit bed39041b1 123/244: support markdown, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 7d65b4167b 156/244: clean plugins setup code, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit b63f840ee7 124/244: When on whitespace following a keyword don't jump backwards,
ELPA Syncer <=
- [nongnu] elpa/evil-matchit 20270ab6b0 135/244: support one liner, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 51d8b268e5 138/244: Merge pull request #86 from yqrashawn/support-tsx, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit dbaae2b753 127/244: Merge pull request #81 from neojski/ocaml, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit dea3fca13b 168/244: clean code dependency, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 64b572d2e4 166/244: Merge pull request #107 from porras/patch-2, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 2a53963ffc 182/244: support php-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 076ace3ee2 188/244: README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit ec0ea006e9 184/244: improve html tag matching algorithm, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 943bf5fb2b 189/244: ruby code might use tab, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit b363d12390 202/244: fix evil-matchit-diff, ELPA Syncer, 2022/01/06