diff options
| author | Stefan Monnier | 2004-03-18 20:26:01 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-03-18 20:26:01 +0000 |
| commit | 3f2c97ea216267a0c1d92f259b7cf96748817ae6 (patch) | |
| tree | 55dc8e6e99d231401ac8c782376002b532a0931b | |
| parent | 63fbe552e86eaafdcc3eeec6443455c7731ced3f (diff) | |
| download | emacs-3f2c97ea216267a0c1d92f259b7cf96748817ae6.tar.gz emacs-3f2c97ea216267a0c1d92f259b7cf96748817ae6.zip | |
(tex-shell): Set error parsing function here.
(tex-send-tex-command): Rather than here.
(tex-compilation-parse-errors): Simplify.
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 68b408af081..6e129987ec1 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands -*- coding: utf-8 -*- | 1 | ;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands -*- coding: utf-8 -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985,86,89,92,94,95,96,97,98,1999,2002,2003 | 3 | ;; Copyright (C) 1985,86,89,92,94,95,96,97,98,1999,2002,03,2004 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -1446,6 +1446,8 @@ Mark is left at original location." | |||
| 1446 | ;; The utility functions: | 1446 | ;; The utility functions: |
| 1447 | 1447 | ||
| 1448 | (define-derived-mode tex-shell shell-mode "TeX-Shell" | 1448 | (define-derived-mode tex-shell shell-mode "TeX-Shell" |
| 1449 | (set (make-local-variable 'compilation-parse-errors-function) | ||
| 1450 | 'tex-compilation-parse-errors) | ||
| 1449 | (compilation-shell-minor-mode t)) | 1451 | (compilation-shell-minor-mode t)) |
| 1450 | 1452 | ||
| 1451 | ;;;###autoload | 1453 | ;;;###autoload |
| @@ -1879,8 +1881,6 @@ FILE is typically the output DVI or PDF file." | |||
| 1879 | (let (shell-dirtrack-verbose) | 1881 | (let (shell-dirtrack-verbose) |
| 1880 | (tex-send-command tex-shell-cd-command dir))) | 1882 | (tex-send-command tex-shell-cd-command dir))) |
| 1881 | (with-current-buffer (process-buffer (tex-send-command cmd)) | 1883 | (with-current-buffer (process-buffer (tex-send-command cmd)) |
| 1882 | (make-local-variable 'compilation-parse-errors-function) | ||
| 1883 | (setq compilation-parse-errors-function 'tex-compilation-parse-errors) | ||
| 1884 | (setq compilation-last-buffer (current-buffer)) | 1884 | (setq compilation-last-buffer (current-buffer)) |
| 1885 | (compilation-forget-errors) | 1885 | (compilation-forget-errors) |
| 1886 | ;; Don't parse previous compilations. | 1886 | ;; Don't parse previous compilations. |
| @@ -1927,7 +1927,7 @@ for the error messages." | |||
| 1927 | end-of-error (match-end 0))) | 1927 | end-of-error (match-end 0))) |
| 1928 | (re-search-forward | 1928 | (re-search-forward |
| 1929 | "^l\\.\\([0-9]+\\) \\(\\.\\.\\.\\)?\\(.*\\)$" nil 'move)) | 1929 | "^l\\.\\([0-9]+\\) \\(\\.\\.\\.\\)?\\(.*\\)$" nil 'move)) |
| 1930 | (let* ((this-error (set-marker (make-marker) begin-of-error)) | 1930 | (let* ((this-error (copy-marker begin-of-error)) |
| 1931 | (linenum (string-to-int (match-string 1))) | 1931 | (linenum (string-to-int (match-string 1))) |
| 1932 | (error-text (regexp-quote (match-string 3))) | 1932 | (error-text (regexp-quote (match-string 3))) |
| 1933 | (filename | 1933 | (filename |