Bug#311274: tuareg-mode: doesn't install in xemacs21
Ralf Treinen <treinen@free.fr> writes:
> I cannot reproduce the error, on my machine tuareg-mode installs fine
> with xemacs21. Comparing the log of your installation to what I get on
> my machine there is one line which looks strange to me:
>
>> Compiling
>> /usr/share/xemacs21/site-lisp/tuareg-mode/camldebug-tuareg.el...
>> Loading tuareg... (file tuareg.el is newer)
Sorry, this seems to be misleading. Perhaps I tried to often to install this
package. After purging tuareg-mode and re-installing, the
"file tuareg.el is newer" message no longer appears, but the problem is
still there:
Compiling /usr/share/xemacs21/site-lisp/tuareg-mode/camldebug-tuareg.el...
While compiling toplevel forms in file /usr/share/xemacs21/site-lisp/tuareg-mode/camldebug-tuareg.el:
!! Symbol's function definition is void ((charsetp))
>>Error occurred processing camldebug-tuareg.el:
Symbol's function definition is void: charsetp
...
emacs-package-install: /usr/lib/emacsen-common/packages/install/tuareg-mode xemacs21 xemacs21 failed at /usr/lib/emacsen-common/emacs-package-install line 30, <TSORT> line 1.
I googled a bit and found that sml-mode had the same problem, bug #286190,
fixed in sml-mode 4.0-2. It is mule-related.
I have both xemacs21-mule and xemacs21-nomule installed.
The patch used by the sml-mode maintainer seems to work for tuareg, too:
--- tuareg.el.orig 2005-05-31 10:29:47.000000000 +0200
+++ tuareg.el 2005-05-31 10:29:58.000000000 +0200
@@ -711,7 +711,7 @@
(defvar tuareg-font-lock-symbols-alist
(append
;; The symbols can come from a JIS0208 font.
- (and (fboundp 'make-char) (charsetp 'japanese-jisx0208)
+ (and (fboundp 'make-char) (fboundp 'charsetp) (charsetp 'japanese-jisx0208)
(list (cons "fun" (make-char 'japanese-jisx0208 38 75))
(cons "sqrt" (make-char 'japanese-jisx0208 34 101))
(cons "not" (make-char 'japanese-jisx0208 34 76))
Best wishes,
Meik
Reply to: