OCaml Forge
Bugs
Search the entire project
This project's trackers
This project's tasks
This project's releases
This project's news
Project
People
Advanced search
Log In
New Account
Home
My Page
Projects
Code Snippets
Emacs OCaml Tuareg mode
Summary
Activity
Tracker
Lists
Tasks
News
SCM
Files
Detail: [#750] in_ indents oddly
Bugs: Browse
|
Download .csv
|
Monitor
[#750] in_ indents oddly
Date:
2010-09-13 16:09
Priority:
3
State:
Open
Submitted by:
John Carr (
jfc
)
Assigned to:
Nobody (None)
Hardware:
PC
Resolution:
None
Severity:
minor
Version:
None
Component:
None
Operating System:
Linux
Product:
None
URL:
Summary:
in_ indents oddly
Detailed description
If I type "in_" the word jumps to the right when I type the "_" but goes back left if I hit tab to indent.
To see an example, create an empty file in tuareg mode and type 'i' 'n' '_'. The word "in_" jumps two spaces to the right. Hit tab and it jumps back to the left margin.
If you want a syntactically valid example, given
type foo={
in_
the word "in_" jumps to the right to line up with the open brace, but tab indents it only two spaces from the margin.
Apparently '_' causes the word "in" to be indented the same as if space were typed, but when '_' is added the result is no longer a keyword and should not be indented as one.
Followup
Message
Date: 2011-12-08 19:59
Sender:
Christophe Troestler
I forgot to say that you have to add
(setq tuareg-use-smie t)
in your ~/.emacs
Date: 2011-12-08 19:54
Sender:
Christophe Troestler
Could you test the latest SVN code? I believe your problem is fixed.
Attached Files:
Changes:
No Changes Have Been Made to This Item