Discussion:
Question about *escape-char-p*
Paul Thirumalai
2007-01-19 02:45:29 UTC
Permalink
HI, Hope this is not too dumb a question.

I am trying to run the hunchentoot-test example with the hunchentoot system.
Each time I try to run the easy demo, get demo or post demo I get the error

"Error in KERNEL:%COERCE-TO-FUNCTION: the function CL-WHO:*ESCAPE-CHAR-P*
is undefined."

Could you explain why this occurs. It also happens to me when I try use the
escape-string method in code.
FYI: I changed the *attribute-quote-char* in who.lis from #\' to #\"
Thanks
Paul
Edi Weitz
2007-01-19 07:39:30 UTC
Permalink
Post by Paul Thirumalai
I am trying to run the hunchentoot-test example with the hunchentoot
system. Each time I try to run the easy demo, get demo or post demo
I get the error
"Error in KERNEL:%COERCE-TO-FUNCTION: the function
CL-WHO:*ESCAPE-CHAR-P* is undefined."
Strange. Are you using the newest version of all libraries? Could
you provide a backtrace of the error? Also, we'd need information
about your Lisp implementation and OS.
Post by Paul Thirumalai
Could you explain why this occurs. It also happens to me when I try
use the escape-string method in code. FYI: I changed the
*attribute-quote-char* in who.lis from #\' to #\"
I assume you mean who.lisp. But of course the idea is that you change
this value in your code and not in the source code of the library.

Cheers,
Edi.
Paul Thirumalai
2007-01-22 17:13:41 UTC
Permalink
Thanks so much. Undoing the change to *attribute-quote-char* fixed the
issue.
*
Now I am using (setf *attribute-quote-char* #\") in my own code where ever
I need to do it.
On Thu, 18 Jan 2007 18:45:29 -0800, "Paul Thirumalai" <
Post by Paul Thirumalai
I am trying to run the hunchentoot-test example with the hunchentoot
system. Each time I try to run the easy demo, get demo or post demo
I get the error
"Error in KERNEL:%COERCE-TO-FUNCTION: the function
CL-WHO:*ESCAPE-CHAR-P* is undefined."
Strange. Are you using the newest version of all libraries? Could
you provide a backtrace of the error? Also, we'd need information
about your Lisp implementation and OS.
Post by Paul Thirumalai
Could you explain why this occurs. It also happens to me when I try
use the escape-string method in code. FYI: I changed the
*attribute-quote-char* in who.lis from #\' to #\"
I assume you mean who.lisp. But of course the idea is that you change
this value in your code and not in the source code of the library.
Cheers,
Edi.
Edi Weitz
2007-01-22 17:22:21 UTC
Permalink
Post by Paul Thirumalai
Thanks so much. Undoing the change to *attribute-quote-char* fixed
the issue.
Good.
Post by Paul Thirumalai
Now I am using (setf *attribute-quote-char* #\") in my own code
where ever I need to do it.
As this is a global special variable, you shouldn't set its value but
rather bind it (with LET), see for example Peter's chapter about
variables, and the section about dynamic variables in particular:

http://www.gigamonkeys.com/book/variables.html

Cheers,
Edi.

Loading...