NEdit and disabling auto indent
Heya,
Any NEdit pros out there? I have a NEdit issue and google has not helped me (rare). I checked the NEdit forum at sourceforge, but it looks inactive so I thought i'd try here. There is no NEdit users group here (first place i checked), so i created one (pending approval or something right now).
Anyway, my problem is with auto-indent. I can manually disable it via Preferences > Auto Indent > Off, but I cannot make the change persistent. If I do Preferences > Default Settings > Auto Indent > Off, the little Off radio button is checked and then I do Preferences > Save Defaults > OK and close NEdit. The next time I fire up NEdit, though, auto indent is back on. The weird thing, though, is that under Preferences > Default Settings > Auto Indent, it still reports as Off. What the dilly-o?
I tried running nedit from the command line with the -noautoindent option, too, but that does not seem to work: i still have to manually disable auto indent.
I'm on Fedora 8. I'm using nedit from nedit.org. This is the output of nedit -version:
NEdit 5.5
Sep 30, 2004Built on: Linux, 386, GNU C
Built at: Oct 1 2004, 15:55:40
With Motif: 2.1.30 [@(#)Motif Version 2.1.30]
Running Motif: 2.1 [unknown]
Server: The X.Org Foundation 10300000
Visual: 32-bit TrueColor (ID 0x6b)
Locale: en_US
I also tried the nedit package made for Fedora 8, but it behaves exactly the same way.
I could find nothing about indent in my ~/.nedit/nedit.rc file either. Is there some X resource I can use for this?
thx,
-bill
Comments
Per your comment about using a RH clone, I tried it out on a CentOS box and sure enough, the auto indent setting is properly retained! This issue appears to be specific to Fedora, or at least occurs in Fedora 8. There is an updated version of the nedit package for F8, so i tried it, but no luck - same behavior.
I do not want to switch OSs just to get this to work!
However, I thought I'd try to recompile the nedit SRPM from my CentOS box on which nedit is behaving, since I figured that more likely to successfully recompile (since it's already "Fedora-ized"). I eventually got it to recompile into a binary RPM (had to get openmotif-devel first). Then I removed my old nedit binary and ~/.nedit/nedit.rc and installed the newly compiled nedit RPM...still no luck.
Thanks for your input, btw.
-b
For example, if you edit a perl script, you have to modify this line of the file ~/.nedit/nedit.rc to suppress autoindent
Perl:.pl .pm .p5 .PL:"^[ \\t]*#[ \\t]*!.*perl":Auto:None:::".,/\\\\`'!$@#%^&*()-=+{}[]"":;<>?~|":\n\
will become
Perl:.pl .pm .p5 .PL:"^[ \\t]*#[ \\t]*!.*perl"::None:::".,/\\\\`'!$@#%^&*()-=+{}[]"":;<>?~|":\n\