From paul.thirumalai at gmail.com Fri Jan 19 02:45:29 2007 From: paul.thirumalai at gmail.com (Paul Thirumalai) Date: Thu, 18 Jan 2007 18:45:29 -0800 Subject: [cl-who-devel] Question about *escape-char-p* Message-ID: <900c9adf0701181845o4422b319v38ec06fa7c2e9133@mail.gmail.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From edi at agharta.de Fri Jan 19 07:39:30 2007 From: edi at agharta.de (Edi Weitz) Date: Fri, 19 Jan 2007 08:39:30 +0100 Subject: [cl-who-devel] Question about *escape-char-p* In-Reply-To: <900c9adf0701181845o4422b319v38ec06fa7c2e9133@mail.gmail.com> (Paul Thirumalai's message of "Thu, 18 Jan 2007 18:45:29 -0800") References: <900c9adf0701181845o4422b319v38ec06fa7c2e9133@mail.gmail.com> Message-ID: On Thu, 18 Jan 2007 18:45:29 -0800, "Paul Thirumalai" wrote: > 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. > 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. From paul.thirumalai at gmail.com Mon Jan 22 17:13:41 2007 From: paul.thirumalai at gmail.com (Paul Thirumalai) Date: Mon, 22 Jan 2007 09:13:41 -0800 Subject: [cl-who-devel] Question about *escape-char-p* In-Reply-To: References: <900c9adf0701181845o4422b319v38ec06fa7c2e9133@mail.gmail.com> Message-ID: <900c9adf0701220913m5a129518oacec4453912b232d@mail.gmail.com> 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 1/18/07, Edi Weitz wrote: > > On Thu, 18 Jan 2007 18:45:29 -0800, "Paul Thirumalai" < > paul.thirumalai at gmail.com> wrote: > > > 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. > > > 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. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From edi at agharta.de Mon Jan 22 17:22:21 2007 From: edi at agharta.de (Edi Weitz) Date: Mon, 22 Jan 2007 18:22:21 +0100 Subject: [cl-who-devel] Question about *escape-char-p* In-Reply-To: <900c9adf0701220913m5a129518oacec4453912b232d@mail.gmail.com> (Paul Thirumalai's message of "Mon, 22 Jan 2007 09:13:41 -0800") References: <900c9adf0701181845o4422b319v38ec06fa7c2e9133@mail.gmail.com> <900c9adf0701220913m5a129518oacec4453912b232d@mail.gmail.com> Message-ID: On Mon, 22 Jan 2007 09:13:41 -0800, "Paul Thirumalai" wrote: > Thanks so much. Undoing the change to *attribute-quote-char* fixed > the issue. Good. > 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.