emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el [emacs-unicode


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/tex-mode.el [emacs-unicode-2]
Date: Wed, 08 Dec 2004 01:55:48 -0500

Index: emacs/lisp/textmodes/tex-mode.el
diff -c emacs/lisp/textmodes/tex-mode.el:1.137.2.9 
emacs/lisp/textmodes/tex-mode.el:1.137.2.10
*** emacs/lisp/textmodes/tex-mode.el:1.137.2.9  Wed Oct 27 05:42:03 2004
--- emacs/lisp/textmodes/tex-mode.el    Wed Dec  8 05:02:27 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")




reply via email to

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