Raymond Toy writes:
I just updated my Ubunut 12 system to Ubuntu 14 and xemacs is now
crashing consistently. I tried updating xemacs to the latest code and
the crash is still happening.
Here is the recipe, running src/xemacs -vanilla. In the *scratch*
buffer enter
(let ((face 'default)
(default-font "Courier-10:lang=en"))
(set-specifier
(face-font face)
(cons '(x)
(fc-name-unparse
(fc-font-match (selected-device)
(fc-name-parse default-font))))))
Where is this happening in actual use? If it's your own code, you can
work around with fc-name-parse-harder. If it's in XEmacs, we probably
should make that change there.
Specifically, it's known and there is code in lisp/fontconfig.el to
deal with this, see defvar fc-name-parse-known-problem-attributes and
defun fc-name-parse-harder. I don't understand the crash, as there is
also code in src/font-mgr.c:Ffc_name_parse to detect NULL returns and
signal. I wonder if your XEmacs is somehow out of date? I believe
these changes were installed 2013-09-15 or soon after (ChangeLog date
is 2013-09-10).
I guess I was only running into this in my own code and in one place
in font.el (where I changed fc-name-parse to fc-name-parse-harder).
So I hesitated to put the parse-harder code into the advertised
fc-name-parse function, because you end up with something that doesn't
roundtrip. I like to preserve invariants.
Steve
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta