Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005954OCamlMiscpublic2013-03-17 02:072013-03-17 18:20
Reporterzakkak 
Assigned Togasche 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformIntelOSlubuntuOS Version12.10
Product Version4.00.1 
Target VersionFixed in Version 
Summary0005954: caml-help.el (emacs caml-mode) fails
DescriptionI am using the latest emacs release (24.3) and I installed tuareg and
caml through svn, svn://svn.forge.ocamlcore.org/svn/tuareg/trunk [^] and
http://caml.inria.fr/svn/ocaml/trunk/emacs/ [^] respectively.

When starting tuareg-mode it autoloads caml-help resulting in a
failure with the message:
wrong-type-argument listp class
Steps To ReproduceM-x tuareg-mode
Additional InformationThe following patch fixes it.

--- caml-help.el
+++ new-caml-help.el
@@ -789,7 +789,7 @@ buffer positions."
 
 
 (defface ocaml-link-face
- '(((class color) :foreground "Purple"))
+ '((((class color)) (:foreground "Purple")))
   "Face to highlight hyperlinks.")
 
 (defun ocaml-link-activate (section)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0008976)
gasche (developer)
2013-03-17 17:16

Could you please confirm that this change does not break compatibility when used with older version of Emacs?
(0008979)
zakkak (reporter)
2013-03-17 18:02
edited on: 2013-03-17 18:02

I confirm that the bug also exists in emacs 23.2.1, 23.4 and 24.1. The patch works for these versions too. I am sorry but I cannot test any earlier versions.

The patch can be simplified (less modifications) to

--- caml-help.el
+++ new-caml-help.el
@@ -789,7 +789,7 @@ buffer positions."
 
 
 (defface ocaml-link-face
- '(((class color) :foreground "Purple"))
+ '((((class color)) :foreground "Purple"))
   "Face to highlight hyperlinks.")
 
 (defun ocaml-link-activate (section)

(0008980)
gasche (developer)
2013-03-17 18:20

Thank you, I pushed the fix in the SVN trunk.

- Issue History
Date Modified Username Field Change
2013-03-17 02:07 zakkak New Issue
2013-03-17 17:15 gasche Severity block => minor
2013-03-17 17:16 gasche Note Added: 0008976
2013-03-17 17:16 gasche Status new => feedback
2013-03-17 18:02 zakkak Note Added: 0008979
2013-03-17 18:02 zakkak Status feedback => new
2013-03-17 18:02 zakkak Note Edited: 0008979 View Revisions
2013-03-17 18:20 gasche Note Added: 0008980
2013-03-17 18:20 gasche Status new => resolved
2013-03-17 18:20 gasche Resolution open => fixed
2013-03-17 18:20 gasche Assigned To => gasche


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker