Commit ee1751a5 authored by Martin Rudalics's avatar Martin Rudalics

(latex-find-indent): Try to handle

escaped close parens correctly.  (Bug#954)
parent 01163003
2008-09-23 Martin Rudalics <rudalics@gmx.at>
* textmodes/tex-mode.el (latex-find-indent): Try to handle
escaped close parens correctly. (Bug#954)
2008-09-22 Tassilo Horn <tassilo@member.fsf.org>
* play/fortune.el (fortune-in-buffer): Fix a bug which forced
......
......@@ -2585,8 +2585,11 @@ There might be text before point."
(and (looking-at "\\\\\\(begin\\|end\\) *{\\([^\n}]+\\)")
(member (match-string 2) tex-verbatim-environments)
0)
;; Put leading close-paren where the matching open brace would be.
(and (eq (latex-syntax-after) ?\))
;; Put leading close-paren where the matching open paren would be.
(and (or (eq (latex-syntax-after) ?\))
;; Try to handle escaped close parens.
(and (looking-at "\\\\\\([])}]\\)")
(goto-char (match-beginning 1))))
(ignore-errors
(save-excursion
(latex-skip-close-parens)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment