OCaml Forge
SCM

Detail: [#727] electricity: Weird behavior with quoted characters

Bugs: Browse | Download .csv | Monitor

[#727] electricity: Weird behavior with quoted characters

Date:
2010-08-25 19:23
Priority:
3
State:
Closed
Submitted by:
John Carr (jfc)
Assigned to:
Nobody (None)
Hardware:
PC
Resolution:
Works For Me
Severity:
minor
Version:
None
Component:
Tuareg
Operating System:
Linux
Product:
Tuareg
 
URL:
Summary:
electricity: Weird behavior with quoted characters

Detailed description
tuareg-mode version "Tuareg Version 2.0.1 (unknown)", emacs 23.2.1 from Debian

Put the cursor at the end of

let x = if true then ';'

and hit return.

You get

let x = if true then
* ';'

with "*' representing the new cursor position. If you get space the cursor jumps before the ';' without inserting a newline.

There is a similar bug with

let x = if true then ';' else '#'


Followup

Message
Date: 2011-11-29 03:11
Sender: Stefan Monnier

I cannot reproduce the bug on my installation. Please provide
more details.
Date: 2011-05-08 08:47
Sender: Gabriel Scherer

I have found a startling bug that seems related to this one.

The shorter reproducible input I found is:

with
'.'

With tuareg-mode, when the cursor is just after the last quote, if I try to add any char (space, etc.), the cursor jumps back to the end of the previous line, just after "with". I was able to work-around it by writing " -> " (without quotes) after with, cutting it and pasting it just after the '.' (yank works).

If I change "with" for a random identifier "foo", the bugs disappear, but it still happens for other keywords ("let", "then"...).
Date: 2010-10-24 14:07
Sender: Jaz Greetan

related bug, seems to point to the handling of single quotes:

create an emacs 23.1.1 (with tuareg-2.0.1) text file with just:

let x = if true then ';'

place the cursor at the end of this single line, M-x tuareg-mode

Then typing ;; at the end of the line produces very wierd behavior: the cursor jumps to before the ';', and places the typed two semi-colons just after the 'then'. The cursor point is being moved unexpectedly, and inserting into a wierd place.

let x = if true then;; ';'
Date: 2010-10-22 18:36
Sender: Sam Steingold

electricity sucks...
workaround: C-q RET

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2014-01-02 12:53chris
close_dateNone2014-01-02 12:53chris
ResolutionAwaiting Response2014-01-02 12:53chris
ComponentNone2014-01-02 12:53chris
ProductNone2014-01-02 12:53chris
ResolutionNone2011-11-29 03:11monnier
summaryWeird behavior with quoted characters2010-10-22 18:37sds