[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el [lexbind] |
Date: |
Wed, 08 Dec 2004 19:16:47 -0500 |
Index: emacs/lisp/textmodes/tex-mode.el
diff -c emacs/lisp/textmodes/tex-mode.el:1.123.2.13
emacs/lisp/textmodes/tex-mode.el:1.123.2.14
*** emacs/lisp/textmodes/tex-mode.el:1.123.2.13 Fri Oct 29 02:05:13 2004
--- emacs/lisp/textmodes/tex-mode.el Wed Dec 8 23:36:34 2004
***************
*** 1190,1203 ****
(forward-sexp 1))
;; Now check that like matches like.
(goto-char start)
! (while (progn (skip-syntax-forward "^(")
! (not (eobp)))
! (let ((match (matching-paren (following-char))))
! (save-excursion
(forward-sexp 1)
! (or (= (preceding-char) match)
! (error "Mismatched parentheses"))))
! (forward-char 1)))
(error
(skip-syntax-forward " .>")
(setq failure-point (point)))))
--- 1190,1203 ----
(forward-sexp 1))
;; Now check that like matches like.
(goto-char start)
! (while (re-search-forward "\\s(" nil t)
! (save-excursion
! (let ((pos (match-beginning 0)))
! (goto-char pos)
(forward-sexp 1)
! (or (eq (preceding-char) (cdr (syntax-after pos)))
! (eq (char-after pos) (cdr (syntax-after (1- (point)))))
! (error "Mismatched parentheses"))))))
(error
(skip-syntax-forward " .>")
(setq failure-point (point)))))
***************
*** 1693,1701 ****
(let* ((file (or tex-main-file
;; Compatibility with AUCTeX.
(with-no-warnings
! (when (and (boundp 'TeX-master) (stringp TeX-master))
! (make-local-variable 'tex-main-file)
! (setq tex-main-file TeX-master)))
;; Try to guess the main file.
(if (not buffer-file-name)
(error "Buffer is not associated with any file")
--- 1693,1704 ----
(let* ((file (or tex-main-file
;; Compatibility with AUCTeX.
(with-no-warnings
! (when (boundp 'TeX-master)
! (cond ((stringp TeX-master)
! (make-local-variable 'tex-main-file)
! (setq tex-main-file TeX-master))
! ((and (eq TeX-master t) buffer-file-name)
! (file-relative-name buffer-file-name)))))
;; Try to guess the main file.
(if (not buffer-file-name)
(error "Buffer is not associated with any file")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el [lexbind],
Miles Bader <=