yatex
diff yatexprc.el @ 452:2d9589a786d1
string-to-int fix up
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 21 Feb 2017 15:56:22 +0859 |
parents | 7a9d30752353 |
children | f38293cfe508 |
line diff
1.1 --- a/yatexprc.el Thu Jan 05 17:49:05 2017 +0900 1.2 +++ b/yatexprc.el Tue Feb 21 15:56:22 2017 +0859 1.3 @@ -1149,7 +1149,7 @@ 1.4 (goto-char (setq b0 (match-beginning 0))) 1.5 (skip-chars-forward "^0-9" (match-end 0)) 1.6 (setq error-line 1.7 - (string-to-int 1.8 + (YaTeX-str2int 1.9 (buffer-substring 1.10 (point) 1.11 (progn (skip-chars-forward "0-9" (match-end 0)) (point)))) 1.12 @@ -1189,7 +1189,7 @@ 1.13 (if (eobp) (insert (this-command-keys)) 1.14 (error "No line number expression.")) 1.15 (goto-char (match-beginning 0)) 1.16 - (setq error-line (string-to-int 1.17 + (setq error-line (YaTeX-str2int 1.18 (buffer-substring (match-beginning 1) (match-end 1))) 1.19 error-file (expand-file-name 1.20 (YaTeX-get-error-file YaTeX-current-TeX-buffer)))