]> code.delx.au - gnu-emacs/blobdiff - lisp/textmodes/tex-mode.el
Fix byte-compiler warnings about looking-back.
[gnu-emacs] / lisp / textmodes / tex-mode.el
index e9c7e2f114e315ec54449579fd67082427dc0bdd..c26c6098364e1632e46d4c2de13d2c440ba0048d 100644 (file)
@@ -1761,13 +1761,13 @@ Mark is left at original location."
        ;; A better way to handle this, \( .. \) etc, is probably to
        ;; temporarily change the syntax of the \ in \( to punctuation.
        ((and latex-handle-escaped-parens
-            (looking-back "\\\\[])}]"))
+            (looking-back "\\\\[])}]" (- (point) 2)))
        (signal 'scan-error
                (list "Containing expression ends prematurely"
                      (- (point) 2) (prog1 (point)
                                      (goto-char pos)))))
        ((and latex-handle-escaped-parens
-            (looking-back "\\\\\\([({[]\\)"))
+            (looking-back "\\\\\\([({[]\\)" (- (point) 2)))
        (tex-next-unmatched-eparen (match-string 1)))
        (t (goto-char newpos))))))