jEdit Community - Resources for users of the jEdit Text Editor
S+; How to replicate..
Submitted by joe131 on Saturday, 29 September, 2007 - 01:08
Hi All,

I thought I'd give you some simple instructions so anybody should be able to
replicate the problem. I'm using Windows XP Pro SP2.

The problem is that if try to type something like:

[TAB]if ()
[TAB][TAB]System.out.println("blah: "+blah);

As soon as you try to type the ':' the whole line will shift over to the
left. Sad

First it has to be saved as a .java file, if it isn't saved as anything
it'll happily work correctly. So create a simple, valid, .java file
and try to add the above lines to it. I have my jEdit set to not use spaces for tabs.
And you have to use tab(s) at the start of the lines.

As soon as you type the ':' The whole line will indent to the left.

Now delete the System.out.println() line, and this time type it
again, but skip typing the ':' and finish the rest of the line, then
go back and add the ':', it will work fine and won't indent the line.

How crazy is that?

I'm looking at the code, and trying some things, but it's still hard to
track down.. It doesn't seem to be a key translation issue, although
it does say:

9:04:13 PM [error] KeyEventTranslator: Invalid key stroke: C+e C+`

Thanks,

Joe Siebenmann
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
I was able to reproduce what
by LDiracDelta on Sat, 29/09/2007 - 19:44
I was able to reproduce what you're talking about.

I think this has to do with the 'electricKeys' setting in java.xml. If you comment out this line:
<PROPERTY NAME="electricKeys" VALUE=":" />

like this
<!--<PROPERTY NAME="electricKeys" VALUE=":" />-->
Then this behavior goes away. I don't know what else this affects... Yay for bandaids!!
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300