[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#311155: tuareg-mode: error when loading an .ml file



Package: tuareg-mode
Version: 1.44.3-2
Severity: normal
Tags: patch

When opening the following file:
$ cat test.ml
(*
#require "lablgtk2";;
*)
$
tuareg report an error:
void-variable font-lock-preprocessor-face

It seem that the problem come from 03_fontlock.dpatch that make tuareg
mode not creating this variable if it do not exist already. I include a
patch (I could also just put it into the svn repositories if you which).

--- debian/patches/03_fontlock.dpatch   (revision 1387)
+++ debian/patches/03_fontlock.dpatch   (working copy)
@@ -17,11 +17,11 @@
 -(if (facep 'font-lock-preprocessor-face) ()
 -  (defvar font-lock-preprocessor-face font-lock-keyword-face)
 -  (copy-face font-lock-keyword-face 'font-lock-preprocessor-face))
-+(if (boundp 'font-lock-constant-face)
++(if (boundp 'font-lock-reference-face)
 +    (if (facep 'font-lock-constant-face) ()
 +      (defvar font-lock-constant-face font-lock-reference-face)
 +      (copy-face font-lock-reference-face 'font-lock-constant-face)))
-+(if (boundp 'font-lock-preprocessor-face)
++(if (boundp 'font-lock-keyword-face)
 +    (if (facep 'font-lock-preprocessor-face) ()
 +      (defvar font-lock-preprocessor-face font-lock-keyword-face)
 +      (copy-face font-lock-keyword-face 'font-lock-preprocessor-face)))


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10-1-k7
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages tuareg-mode depends on:
ii  emacs21 [emacsen]             21.4a-1    The GNU Emacs editor

-- no debconf information

-- 
Rémi Vanicat

Reply to: