emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/tex-parens 56d870b372: make quote detection more robust


From: ELPA Syncer
Subject: [elpa] externals/tex-parens 56d870b372: make quote detection more robust
Date: Fri, 1 Nov 2024 12:59:45 -0400 (EDT)

branch: externals/tex-parens
commit 56d870b3728883e4003e38f53a3ff0fe72abc082
Author: Paul Nelson <ultrono@gmail.com>
Commit: Paul Nelson <ultrono@gmail.com>

    make quote detection more robust
    
    * tex-parens.el (tex-parens--ignore): When texmathp is
    available, we make the quote detection more reliable.  The point
    here is that we don't want to regard the double quotes in $x''$
    as a delimiter, but we do want to regard them as such in
    $\{\text{``symbols''} a \text{ on } T^* M\}$.
---
 tex-parens.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tex-parens.el b/tex-parens.el
index ee4741a3d4..3a7001a689 100644
--- a/tex-parens.el
+++ b/tex-parens.el
@@ -313,7 +313,12 @@ that does not demarcate math mode, then ignore it."
                            (nth 4 (syntax-ppss))))
       (and (equal str "''")
            (save-excursion (goto-char begin)
-                           (> (tex-parens--math-face) 0)))
+                           (and (> (tex-parens--math-face) 0)
+                                ;; Improved check for double prime
+                                ;; when texmathp is available.
+                                (if (fboundp 'texmathp)
+                                    (texmathp)
+                                  t))))
       (and (member str '("$" "$$"))
            (equal (save-excursion (goto-char (1- begin))
                                   (tex-parens--math-face))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]