Lisp HUG Maillist Archive

capi:display-pane

On LWM 4.4 I get an error of 'invoking a method "familyName" on a null pointer'
if I try to contain a capi:display-pane in which the :text initarg is
a string beginning
with either a #\newline or #\tab. E.g.

(capi:contain (make-instance 'capi:display-pane 
                                                  :text (format nil
"~Ahi there" #\newline)))

or if #\tab replaces #\newline. A plain space doesn't have this problem. I 
get the error also in the case that the arg to :text is a list of
strings and the first string
has a first character of #\newline or #\tab. In the list case, I do
not get the error if
a string other than the first has one of these characters as the first. 

Is this expected behavior, or already a reported bug? It took me a while
to catch this one. Now I'm using something in the lines of 
.... :text (subseq seq (position-if-not #'lispworks:whitespace-char-p seq)) ...
just in case anyone has the same problem and needs a work around.
-- 
=====================
Joshua Taylor
tayloj@rpi.edu


Updated at: 2020-12-10 08:53 UTC