[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tex-parens aa11f6c222 42/62: fix bug for detection of c
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tex-parens aa11f6c222 42/62: fix bug for detection of comments and quotes in math |
Date: |
Thu, 6 Jun 2024 04:01:00 -0400 (EDT) |
branch: externals/tex-parens
commit aa11f6c222755be2b0499b8f61608d7c4e6bca2b
Author: Paul Nelson <ultrono@gmail.com>
Commit: Paul Nelson <ultrono@gmail.com>
fix bug for detection of comments and quotes in math
should always check font at the beginning of the match
---
tex-parens.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tex-parens.el b/tex-parens.el
index 2b82be2bda..d7bfb8944e 100644
--- a/tex-parens.el
+++ b/tex-parens.el
@@ -292,8 +292,12 @@ then ignore comments; these are detected via
`font-lock-comment-face'. If M-STR is a double prime in math
mode, then ignore it. If M-STR is a dollar delimiter that does
not demarcate math mode, then ignore it."
- (or (and tp-ignore-comments (tp--comment))
- (and (equal m-str "''") (> (tp--math-face) 0))
+ (or (and tp-ignore-comments
+ (save-excursion (goto-char m-begin)
+ (tp--comment)))
+ (and (equal m-str "''")
+ (save-excursion (goto-char m-begin)
+ (> (tp--math-face) 0)))
(and (member m-str '("$" "$$"))
(equal (save-excursion (goto-char (1- m-begin))
(tp--math-face))
- [elpa] externals/tex-parens e4c941a350 49/62: turn a bug into a feature, (continued)
- [elpa] externals/tex-parens e4c941a350 49/62: turn a bug into a feature, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens 147de81a27 53/62: revertsomechanges, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens 548c6743f9 52/62: change tp to tex-parens in README, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens 2d2e467d1d 58/62: Tweak commentary, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens 1b1ba96a09 56/62: change to new auto reveal customization, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens b427ee42af 61/62: add some variant commands, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens 78a261d2e3 22/62: make all user-facing commands accept ARG for repetition, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens ea1260bc27 28/62: fix some beginning of buffer bug, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens 6f5e8328ee 55/62: change tp- to tex-parens-p in auto-reveal customizations, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens 79c263f2e6 37/62: account for name change of tp--math-face, clarify doc strings, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens aa11f6c222 42/62: fix bug for detection of comments and quotes in math,
ELPA Syncer <=
- [elpa] externals/tex-parens 10a25a3e3e 59/62: remove (interactive) from some internal functions, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens b38d8c8ffc 30/62: add mention of latex-extra, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens acf5524a26 31/62: Make tp-down-list auto-reveal folds from TeX-fold-mode, ELPA Syncer, 2024/06/06
- [elpa] externals/tex-parens 6d5ee64608 62/62: address issue involving optional begin{...} arguments, ELPA Syncer, 2024/06/06