Re: What happened when I changed directories?
"Pascal J. Bourguignon" <[email protected]>
| Newsgroups | gmane.lisp.clisp.devel |
|---|---|
| Organization | InformatiMago. |
| Message-ID | <[email protected]> |
Raymond Toy <[email protected]> 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 {}. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ clisp-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clisp-devel