yatex

diff yatexadd.el @ 452:2d9589a786d1

string-to-int fix up
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 21 Feb 2017 15:56:22 +0859
parents 2011de73a671
children aaa655456752
line diff
     1.1 --- a/yatexadd.el	Tue Feb 21 15:46:12 2017 +0859
     1.2 +++ b/yatexadd.el	Tue Feb 21 15:56:22 2017 +0859
     1.3 @@ -25,7 +25,7 @@
     1.4      (if (string= YaTeX-env-name "tabular*")
     1.5  	(setq width (concat "{" (YaTeX:read-length "Width: ") "}")))
     1.6      (setq loc (YaTeX:read-position "tb")
     1.7 -	  bars (string-to-int
     1.8 +	  bars (YaTeX-str2int
     1.9  		(YaTeX-read-string-or-skip
    1.10  		 "Number of columns(0 for default format): " "3")))
    1.11      (if (<= bars 0)
    1.12 @@ -1511,7 +1511,7 @@
    1.13        command))
    1.14     ((= argp 2)
    1.15      (let ((argc
    1.16 -	   (string-to-int
    1.17 +	   (YaTeX-str2int
    1.18  	    (read-string-with-history "Number of arguments(Default 0): ")))
    1.19  	  (def (YaTeX-read-string-or-skip "Definition: "))
    1.20  	  (command (get 'YaTeX::newcommand 'command)))