Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171399 - app-emacs/ocaml-mode doesn't fully support multi-line comments
Summary: app-emacs/ocaml-mode doesn't fully support multi-line comments
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-19 03:23 UTC by ifreecarve
Modified: 2007-03-30 16:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ifreecarve 2007-03-19 03:23:44 UTC
the ocaml mode for emacs doesn't highlight multi-line comments as you type.  it can also get confused with how to indent comments if they span multiple lines.

highlighting partially works though- when you close and re-open the file, the comment will properly appear in red

Reproducible: Always

Steps to Reproduce:
1. begin editing a file called test.ml
2. type the following comments: 

(* this is a single line comment *)
(* this is a 
   multiline comment 
*)

Actual Results:  
the single line comment stays black while typing but turns red upon closing the parenthesis.  the multiline comment never turns red.

Expected Results:  
all lines of the multiline comment should turn red after the close parenthesis

i can't find a reproducible case for the indenting multi-line comments getting confused :(.  i just hoped you might see something out of place while fixing the syntax highlighting.
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2007-03-19 08:12:28 UTC
Right.  I would consider this an upstream bug.  The caml mode is not up to date though as it is not distributed separately anymore.  We have two choices now:

1) app-emacs/ocaml-mode extracts the Emacs support files from the whole OCAML tarball
2) dev-lang/ocaml will get an emacs USE flag and activate the support all by himself.

ml team, what do you think?
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2007-03-30 16:27:15 UTC
I bumped the package to 3.09.3, but the "error" still persists.  Multi-line comments work though when I do a  "M-x caml-mode", all existing entries are then highlighted.  I will close this bug as UPSTREAM as it is not our task to fix such errors.