branch: externals/tex-parens
commit 53bf2e5c4fb2abc21248c59997aeaab09c46cca2
Author: Paul Nelson <[email protected]>
Commit: Paul Nelson <[email protected]>
change comment detection
- don't worry about verbatim face -- ignoring it presents issues when
navigating around \email{...} fields
- check for comments at beginning of match rather than end (although
maybe this doesn't matter anymore)
---
tex-parens.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tex-parens.el b/tex-parens.el
index 13ac67e143..0d3c6d21e6 100644
--- a/tex-parens.el
+++ b/tex-parens.el
@@ -270,7 +270,8 @@ defun-based commands."
(defun tp--comment ()
"Returns t if point is in a comment or verbatim environment."
(let ((comment-faces '(font-lock-comment-face
- font-latex-verbatim-face))
+ ;; font-latex-verbatim-face
+ ))
(face (plist-get (text-properties-at (point))
'face)))
(or
@@ -293,7 +294,7 @@ then ignore comments; these are detected via
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
- (save-excursion (goto-char (1- m-end))
+ (save-excursion (goto-char m-begin)
(tp--comment)))
(and (equal m-str "''")
(save-excursion (goto-char m-begin)