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
-
I have been using NEdit for about 20 years - my wife is a staff scientist at Fermi Lab and we were friends with the original developer(s) there. I just tested my version 5.5 on SL6 (Scientific Linux 6 - a clone of RHEL6) and it saved and restored the auto-indent context properly. Since the default settings are stored in ~/.nedit/neditrc it is possible that for some reason either the directory or file is owned by someone else, has the wrong permissions, or whatever. Check that out.0
-
my ~/.nedit/nedit.rc file ownership and permissions are okay.
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!0 -
Well, there may be a problem with the version built on FC8. Download the sources from http://nedit.sourceforge.net/ and rebuild on your FC8 system to see if that resolves the problem.0
-
I've tried rebuilding nedit from source in the past (to address other UI-issues) and it was a pain. But I'm desperate, so i tried again - recompile failed again (can give the details if anyone is interested).
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.
-b0 -
Well, since FC8 is pretty much an "antique" in internet terms, why not upgrade the OS? Yeah, I know, you probably have applications that won't take the upgrade that you need... :-)0
-
Yes, I suppose I *could* do that (i verified that Fedora 10 at least does not exhibit this bug). I have no special apps that would not work if i upgraded, but the last time i tried an in-place upgrade of Fedora, it was a very un-funny Comedy of Errors.0
-
I understand that situation. I had to upgrade my workstation recently from CentOS 5.5 to Scientific Linux (RHEL) 6. Much suffering and gnashing of teeth at first, but now I wouldn't go back for anything! :-) Sometimes you just have to pay the piper!0
-
I suppose that the language preferences take precedence over the default preferences
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\0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 769 Linux Foundation IT Professional Programs
- 379 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 75 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 102 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 5 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 12 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 3 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 796 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 91 Storage
- 771 Linux Distributions
- 81 Debian
- 68 Fedora
- 23 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 122 Mobile Computing
- 20 Android
- 87 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 395 Off Topic
- 121 Introductions
- 30 Study Material
- 1K Programming and Development
- 310 Kernel Development
- 699 Software Development
- 1K Software
- 403 Applications
- 182 Command Line
- 5 Compiling/Installing
- 69 Games
- 318 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)