From: Pascal J. B. <pj...@in...> - 2012-06-01 02:48:37
|
Raymond Toy <toy...@gm...> writes: > On 5/31/12 6:14 PM, Yves S. Garret wrote: >> Hi guys. I changed directories in clisp with (ext:cd "path/to/file") >> and got this... could some please explain why I got this error and how >> could I avoid it? >> >> http://bin.cakephp.org/view/209161709 >> >> The command on line 7 shows that I got to the desired location, so the >> path is valid (I suspected that I had fat-fingered the path and hence >> the error, until I found out it switched correctly). >> > Too many closing parens on the first line. Perhaps the error message > could add something along the lines of "extra closing parenthesis?" > That would make it clearer. You can do that in your ~/.clisprc : [5]> (set-macro-character #\) (lambda (stream ch) (declare (ignore stream ch)) (error "extra closing parenthesis"))) T [6]> (+ 1 2)) 3 [7]> *** - extra closing parenthesis The following restarts are available: ABORT :R1 Abort main loop Break 1 [8]> :q [9]> Or you can even make it just a warning, ignoring superfluous closing parentheses: [9]> (set-macro-character #\) (lambda (stream ch) (declare (ignore stream ch)) (warn "extra closing parenthesis") (values))) T [13]> (+ 1 2)) (* 3 4))) 3 [14]> WARNING: extra closing parenthesis 12 [15]> WARNING: extra closing parenthesis WARNING: extra closing parenthesis -- __Pascal Bourguignon__ http://www.informatimago.com/ A bad day in () is better than a good day in {}. |