Re: [Freedos-user] Global preferences for EDIT
Yes, a wrapper would work too. But David has shown himself to be capable and interested in programming, so I suggested where in the code he could change the behavior himself. That's why it's open source software, so you can make changes and improvements yourself. On Mon, Jul 16, 2018, 12:09 AM Eric Auer wrote: > > Hi Jim, > > > You can modify the code code to do this. > > Still it seems easier to use a batch wrapper? Also, because > EDIT has so few preferences, how about a command line option > to set all of them, overriding the prefs file, in case you > do prefer recompiling EDIT? ;-) > > Regards, Eric > > > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Global preferences for EDIT
On Sun, Jul 15, 2018 at 8:18 AM David McMackins wrote: > > I would like to save my settings for EDIT in such a way that they take > effect everywhere. Seems to me, when I choose to save, it puts a file in > the current directory, and the settings only work when launching from > that directory. The usual reason to have this behavior is because you want preferences to be specific to what you are editing. EDIT is being invoked from the %PATH%, with the directory you are in presumably where the file you are editing resides. Save your preferences, and when you edit the file again, they will be seen and used by EDIT. This way, you can have different preferences for different files you edit. What EDIT preferences would you want to set globally and have them always active? __ Dennis -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Global preferences for EDIT
What EDIT preferences would you want to set globally and have them always active? In my particular case, I always want full tabs (real tab characters) when I strike the tab key. I don't like how when I read a file with tabs, I am prompted to expand them into spaces. Happy Hacking, David E. McMackins II Supporting Member, Electronic Frontier Foundation (#2296972) Associate Member, Free Software Foundation (#12889) www.mcmackins.org www.delwink.com www.eff.org www.gnu.org www.fsf.org On 2018-07-16 10:28, dmccunney wrote: On Sun, Jul 15, 2018 at 8:18 AM David McMackins wrote: I would like to save my settings for EDIT in such a way that they take effect everywhere. Seems to me, when I choose to save, it puts a file in the current directory, and the settings only work when launching from that directory. The usual reason to have this behavior is because you want preferences to be specific to what you are editing. EDIT is being invoked from the %PATH%, with the directory you are in presumably where the file you are editing resides. Save your preferences, and when you edit the file again, they will be seen and used by EDIT. This way, you can have different preferences for different files you edit. What EDIT preferences would you want to set globally and have them always active? __ Dennis -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Global preferences for EDIT
FWIW, I control most things with batch files, using PUSHD/POPD to save and restore starting drives and directories. The directory where I have my batch files is the first one in my PATH, and my PATH is very short. I don't like the idea of having EDIT.CFG (or whatever) files all over my hard drive as Dennis suggests, though that is certainly one way to approach things.. Regarding environment variables, the only "permanent" ones I have (the ones I set up at boot time) are what I consider "system level" environment variables -- those directly related to DOS and the TSR's I normally use. I don't (generally) set up environment variables for individual programs (like EDIT) at boot time, but just set them temporarily with the batch file I use to run the program. If a program doesn't have a config file or an environment variable to store the default values and I don't like the default values for some reason, I call a "keystroke faking" program in the batch file to change the settings after the program starts (I usually use my SCANCODE program to do that). There are lots of different ways you can do things in DOS. There is no "right" way -- you can set things up in the way that suits you. But, because there are so many different ways to accomplish the same thing, you can also end up with a big mess on your hands if you don't keep on top of it and stay consistent. The main reason I use batch files is because it really gives you the most flexibility -- you can accommodate and "force" almost any program to do what you want it to do with batch files and small utilities instead of just putting up with the limitations that come with most programs. 93% of Americans Won't See What's Hidden In This WWII Photo pro.naturalhealthresponse.com http://thirdpartyoffers.juno.com/TGL3141/5b4cc576419b7457604d9st02vuc-- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Global preferences for EDIT
On Mon, Jul 16, 2018 at 12:07 PM David McMackins wrote: > > > What EDIT preferences would you want to set globally and have them > > always active? > > In my particular case, I always want full tabs (real tab characters) > when I strike the tab key. I don't like how when I read a file with > tabs, I am prompted to expand them into spaces. Do you see that in EDIT? (It's been quite some time since I used it and I don't recall the behavior.) But this is YMMV. Personally, the last thing I want is full tab characters. Coding styles are all over the map. By default, a tab expands to 8 spaces, but many coding standards like 4 spaces for indentation, and some now like two. The last time I ran into a case where tabs vs spaces mattered, it was in make files for an older version of make, where you got funny errors if you used spaces where it wanted a tab. The make file looked fine on screen, but make wouldn't correctly process it. I considered that either a bug in make or bad design. A more modern editor might let me specify what happens when I press the tab key, and insert the number of spaces expected to correspond with the coding style used by the source I'm working on. I press one key but get the right indentation. I've spent the odd hour *converting* tabs to the number of spaces desired for what I'm doing. If I actually *need* a literal tab character (almost never), I embed ^I. __ Dennis -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Global preferences for EDIT
On Mon, Jul 16, 2018 at 12:20 PM Bret Johnson wrote: > I don't like the idea of having EDIT.CFG (or whatever) files all over my hard > drive as Dennis suggests, though that is certainly one way to approach > things.. I'm not always thrilled by it, but it's a way to have config files specific to what you're working on instead of global. > The main reason I use batch files is because it really gives you the most > flexibility -- you can accommodate and "force" almost any program to do what > you want it to do with batch files and small utilities instead of just > putting up with the limitations that come with most programs. (Or use programs that don't have those limitations...) I prefer to set context specific environment variables that way too. I do it under *nix with shell scripts. (Under *nix, such files normally have a leading . in the file name, like .profile. Files with that naming convention are not normally displayed in a directory , so you don't see clutter, and current drives are large enough that you simply don't *care* about the space they take up.) __ Dennis https://plus.google.com/u/0/105128793974319004519 -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Global preferences for EDIT
On Mon, Jul 16, 2018 at 12:52 PM dmccunney wrote: > On Mon, Jul 16, 2018 at 12:20 PM Bret Johnson wrote: > > > I don't like the idea of having EDIT.CFG (or whatever) files all over my > > hard drive as Dennis suggests, though that is certainly one way to approach > > things.. > > I'm not always thrilled by it, but it's a way to have config files > specific to what you're working on instead of global. > > > The main reason I use batch files is because it really gives you the most > > flexibility -- you can accommodate and "force" almost any program to do > > what you want it to do with batch files and small utilities instead of just > > putting up with the limitations that come with most programs. > > (Or use programs that don't have those limitations...) > > I prefer to set context specific environment variables that way too. > I do it under *nix with shell scripts. (Under *nix, such files > normally have a leading . in the file name, like .profile. Files with > that naming convention are not normally displayed in a directory , so > you don't see clutter, and current drives are large enough that you > simply don't *care* about the space they take up.) It helps if I say what I mean. Shell scripts do't use leading periods in the file names to keep them out of directory listings. The sort of config files mentioned do, simply to avoid cluttering directory listing with things you aren't interested in seeing. If you do need to see the, "ls -al" under *nix shows them to you. __ Dennis https://plus.google.com/u/0/105128793974319004519 -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user