Commit 8ca37e61 authored by Martin Rudalics's avatar Martin Rudalics
Browse files

(latex-find-indent): ... and handle conjunction correctly this time.

parent be10dcf2
...@@ -2586,18 +2586,18 @@ There might be text before point." ...@@ -2586,18 +2586,18 @@ There might be text before point."
(member (match-string 2) tex-verbatim-environments) (member (match-string 2) tex-verbatim-environments)
0) 0)
;; Put leading close-paren where the matching open paren would be. ;; Put leading close-paren where the matching open paren would be.
(and (let (escaped) (let (escaped)
(or (eq (latex-syntax-after) ?\)) (and (or (eq (latex-syntax-after) ?\))
;; Try to handle escaped close parens but keep original ;; Try to handle escaped close parens but keep original
;; position if it doesn't work out. ;; position if it doesn't work out.
(setq escaped (looking-at "\\\\\\([])}]\\)"))) (setq escaped (looking-at "\\\\\\([])}]\\)")))
(ignore-errors (ignore-errors
(save-excursion (save-excursion
(when escaped (when escaped
(goto-char (match-beginning 1))) (goto-char (match-beginning 1)))
(latex-skip-close-parens) (latex-skip-close-parens)
(latex-backward-sexp-1) (latex-backward-sexp-1)
(latex-find-indent 'virtual))))) (latex-find-indent 'virtual)))))
;; Default (maybe an argument) ;; Default (maybe an argument)
(let ((pos (point)) (let ((pos (point))
;; Outdent \item if necessary. ;; Outdent \item if necessary.
......
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