[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-matchit d1f59ad941 225/244: Merge pull request #131 f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-matchit d1f59ad941 225/244: Merge pull request #131 from nbfalcon/bugfix/evilmi-sdk-simple-jump-whitespace |
Date: |
Thu, 6 Jan 2022 02:59:03 -0500 (EST) |
branch: elpa/evil-matchit
commit d1f59ad941ec8237daad49ae94c9ecbd516c0748
Merge: d005e0465e 593c2d53a7
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #131 from
nbfalcon/bugfix/evilmi-sdk-simple-jump-whitespace
`evilmi-sdk-simple-jump': skip comments
---
evil-matchit-sdk.el | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/evil-matchit-sdk.el b/evil-matchit-sdk.el
index 30fa1ea38e..8e8bc58fe9 100644
--- a/evil-matchit-sdk.el
+++ b/evil-matchit-sdk.el
@@ -153,7 +153,17 @@ If IS-FORWARD is t, jump forward; or else jump backward."
(defun evilmi-sdk-simple-jump ()
"Alternative for `evil-jump-item'."
(if evilmi-debug (message "evilmi-sdk-simple-jump called (point)=%d"
(point)))
- (skip-syntax-forward " ")
+ (let ((old (point)))
+ (skip-syntax-forward " ")
+ ;; If we move from a non-comment to before a comment,
+ ;; `evilmi-sdk-jumpto-where' wont skip it:
+ ;;
+ ;; <point> /* comment */ {}
+ ;;
+ ;; Is skipped because we go back, but wouldn't be if we didn't (due to
+ ;; checking for `evilmi-sdk-comment-p').
+ (when (and (not (evilmi-sdk-comment-p old)) (evilmi-sdk-comment-p (point)))
+ (goto-char old)))
(let* ((tmp (evilmi-sdk-jump-forward-p))
(jump-forward (car tmp))
;; if ff is not nil, it's jump between quotes
- [nongnu] elpa/evil-matchit bc31e7d594 199/244: clean code, (continued)
- [nongnu] elpa/evil-matchit bc31e7d594 199/244: clean code, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 6fd4c56855 198/244: clean code, more c unit test, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 24dcd74a55 205/244: support terminal in Emacs, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit ede6382955 206/244: enhance verilog mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 721d0a9c56 211/244: More ocaml tests, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit fccad4255b 217/244: Merge pull request #128 from leungbk/byte-comp, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 593c2d53a7 224/244: `evilmi-sdk-simple-jump': skip comments, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit f397504270 204/244: clean code, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 2df3a62a8b 222/244: Add a regression test, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit d7ad7f712b 235/244: emacs 28 changed API define-obsolete-function-alias. It is EVIL code. Not my code, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit d1f59ad941 225/244: Merge pull request #131 from nbfalcon/bugfix/evilmi-sdk-simple-jump-whitespace,
ELPA Syncer <=
- [nongnu] elpa/evil-matchit ccc2cc8a62 221/244: `evilmi-sdk-simple-jump': skip whitespace, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 8862d8ea15 079/244: support for statement in lua-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 79ec08d921 113/244: add more verilog keywords, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit e9f77f7d6a 115/244: user can use less optimized algorithm, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 304f22100e 136/244: handle ruby statement after assign operator, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 6cfdbe895f 153/244: [chen] add support for react-mode and typescript-tsx-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit e137a380ee 148/244: Merge pull request #91 from Khady/ocaml-check-keywords, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 130941b1a4 193/244: can jump from end of html self closing tag, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 1c758b5b52 227/244: Fix byte compiling, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 2b9b68770a 219/244: fixed: cannot jump back from the line end in visual mode, ELPA Syncer, 2022/01/06