yatex

changeset 453:f38293cfe508 dev

Limit filename part to extension in an error log line.
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 21 Feb 2017 19:57:32 +0859
parents 2d9589a786d1
children aaa655456752
files yatexprc.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/yatexprc.el	Tue Feb 21 15:56:22 2017 +0859
     1.2 +++ b/yatexprc.el	Tue Feb 21 19:57:32 2017 +0859
     1.3 @@ -1251,8 +1251,11 @@
     1.4        (setq s
     1.5  	    (buffer-substring
     1.6  	     (progn (forward-char 1) (point))
     1.7 -	     (progn (skip-chars-forward "^ \n" (point-end-of-line))
     1.8 -		    (point))))
     1.9 +	     (if (re-search-forward
    1.10 +		  "\\.\\(tex\\|sty\\|ltx\\)\\>" nil (point-end-of-line))
    1.11 +		 (match-end 0)
    1.12 +	       (skip-chars-forward "^ \n" (point-end-of-line))
    1.13 +	       (point))))
    1.14        (if (string= "" s) default s))))
    1.15        
    1.16  (defun YaTeX-put-nonstopmode ()