[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-matchit b75893af9e 028/244: minor bug in latex-mode
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-matchit b75893af9e 028/244: minor bug in latex-mode |
Date: |
Thu, 6 Jan 2022 02:58:46 -0500 (EST) |
branch: elpa/evil-matchit
commit b75893af9ed2aa88c82c3640c1b5e60c30aee21a
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>
minor bug in latex-mode
---
evil-matchit-latex.el | 29 +++++++++++++++++++----------
1 file changed, 19 insertions(+), 10 deletions(-)
diff --git a/evil-matchit-latex.el b/evil-matchit-latex.el
index 0fa555fa24..fdfc6b496f 100644
--- a/evil-matchit-latex.el
+++ b/evil-matchit-latex.el
@@ -34,7 +34,6 @@
(let (rlt
(regexp (concat (regexp-quote "\\") "\\(begin\\|end\\)\\b"))
keyword
- p
)
(skip-chars-backward "a-zA-Z \t{}")
;; move cursor to the beginning of tag
@@ -43,14 +42,15 @@
)
(re-search-forward regexp (line-end-position) t)
(setq keyword (match-string 1))
- (setq rlt (list p
- (if (string= keyword "begin")
- 0
- (if (string= keyword "end")
- 1
- -1))
- )
+ (if keyword
+ (cond
+ ((string= keyword "begin")
+ (setq rlt (list (line-beginning-position) 0))
)
+ ((string= keyword "end")
+ (setq rlt (list (line-end-position) 2))
+ )
+ ))
rlt
)
)
@@ -59,9 +59,18 @@
(defun evilmi-latex-jump (rlt NUM)
(let ((p (nth 0 rlt))
(tag-type (nth 1 rlt))
+ where-to-jump-in-theory
)
- (if (= 1 tag-type) (LaTeX-find-matching-begin))
- (if (= 0 tag-type) (LaTeX-find-matching-end))
+ (cond
+ ((= 2 tag-type)
+ (LaTeX-find-matching-begin)
+ (setq where-to-jump-in-theory (line-beginning-position))
+ )
+ ((= 0 tag-type)
+ (LaTeX-find-matching-end)
+ (setq where-to-jump-in-theory (line-end-position))
+ )
+ )
)
)
- [nongnu] elpa/evil-matchit 748647d518 017/244: dependent on sgml-mode, (continued)
- [nongnu] elpa/evil-matchit 748647d518 017/244: dependent on sgml-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit cfcf0d083c 022/244: weak README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 90c8367856 027/244: add sdk v1.2.0, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 65b474bb02 031/244: Better C/C++, v1.2.2, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 3b64df7610 005/244: Merge pull request #3 from purcell/patch-1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 363b6683ab 033/244: ignore elisp flymake file, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 4f993303e1 044/244: delete leading spaces AND matched tags v1.2.9, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit dd3d90bf95 010/244: Fix malformed header line, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 285f5c2413 024/244: udpated doc and screencast, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit c65da39f49 016/244: autoload sgml-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit b75893af9e 028/244: minor bug in latex-mode,
ELPA Syncer <=
- [nongnu] elpa/evil-matchit acc7efbd8d 034/244: minor bugs fixed v1.2.3, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 78cc0335de 035/244: support latex mode, v1.2.4, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit e81d779541 046/244: support Emacs email (message-mode), ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit f7bced4500 047/244: updated README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 313498e6ec 043/244: #26 jump to percentage, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit bd4feb7884 036/244: support cmake v1.2.5, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 6fabc1b8e7 048/244: support funtional javascript syntax v1.3.1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 575e1e652a 037/244: support go-mode v1.2.6, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit d7f45fd142 039/244: updated doc v1.2.7, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 4d8d55e7f4 052/244: typo, ELPA Syncer, 2022/01/06