Search the web
Sign In
New User? Sign Up
editplus · Join the EditPlus group! The Best Editor
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
-i command line option and Set Directories Edit Plus 3.11   Message List  
Reply | Forward Message #6330 of 6448 |
Re: -i command line option and Set Directories Edit Plus 3.11

--- In editplus@yahoogroups.com, "frederickmc" <fr@...> wrote:
>
> --- In editplus@yahoogroups.com, "frederickmc" <fr@> wrote:
> >
> > I need two different sets of ini and syntax directories for different
projects (primarily because of the templates). I have two shortcuts to start
Edit Plus:
> >
> > "C:\Program Files\EditPlus\editplus.exe" -d G:\shared\proj1\code -i
G:\shared\EditPlus\proj1
> >
> > "C:\Program Files\EditPlus\editplus.exe" -d G:\shared\proj2\code -i
G:\shared\EditPlus\proj2
> >
> > (Note: I changed the default install location from "EditPlus 3" to
"EditPlus"
> >
> > The problem is, when I open EP and use Tools > Set Directories it affects
both instances of EP, even if I have both open at the time I change it.
> >
> > I have moved C:\Setting and Documents\<user name>\Application Data\EditPlus
3 so that it cannot use the files located there.
> >
> > It appears that the values from Tools > Set Directories is stored in the
registry, at HKEY_CURRENT_USER\Software\ES-Computing\EditPlus 3\Install\ in the
keys STX ACP CTL and INI directory. It is unfortunate it isn't stored in an ini
file! And it appears the command line option
> > -i directory
> > is not overriding the registry entry.
> >
> > If I rename the registry entries, then open EP and change the Set
Directories entries, the registry entries are recreated. Thus, it appears there
is no way around this problem.
> >
> > Additionally, it is evident that EP isn't reading editplus_u.ini from the
command line -i path, because in order to open a second instance I have to allow
multiple instances in the first one I open. (The setting for multiple instances
is in editplus_u.ini)
> >
> > Any help would be appreciated.
> >
> > Frederick Mc
> >
>
> Further information:
> If I have opened
>
> "C:\Program Files\EditPlus\editplus.exe" -d G:\shared\proj1\code -i
G:\shared\EditPlus\proj1
>
> and verify that Tool > Set Directories > INI File Directory is
G:/shared\EditPlus\proj1 then open
>
> "C:\Program Files\EditPlus\editplus.exe" -d G:\shared\proj2\code -i
G:\shared\EditPlus\proj2
>
> the INI File Directory in Set Directories in the first instance is changed to
> G:\shared\EditPlus\proj2
>
> So, in a way the -i command line option does override the registry setting -
but it rewrites the registry setting, affecting all instances of EditPlus. And
changes to Set Directories in any instance affect all instances. Therefore, it
is impossible to have separate stx, ctl, acp, and template directories.
>
> I believe this worked correctly in the previous version!

A question:

In the scenario you just described, does the first instance of EP continue to
actually use the path that was specified on the command line while you are
coding, even though the registry settings changed? (Ignore what the Set
Directories dialog box says.)

Normally, when I develop a program, I read the persistent settings into memory
when the program loads, replacing them with any command line arguments, and only
change them when the user does so through the program's configuration dialog
box. I don't keep re-reading them every time I need to use a setting. Otherwise,
I'd be constantly reading from the persistent source, which strikes me as
inefficient. In this case, the first instance of the program would continue to
use the original settings even though a second instance changed them, assuming
that I allowed multiple instances.

Have you actually checked what stx, ctl, acp and template directories the first
instance of EP is using while writing code? Maybe each instance of EP is
persisting the command line settings, so that the last instance opened "wins,"
but each open instance uses the command line settings it was originally given.

If that's the case, then I'm not sure that I like what EP is doing. IMO, the
persistent settings should only be changed through the Set Directories dialog
box and temporarily overridden by the command line.




Sun Jul 5, 2009 3:41 pm

mljones1947
Offline Offline
Send Email Send Email

Forward
Message #6330 of 6448 |
Expand Messages Author Sort by Date

I need two different sets of ini and syntax directories for different projects (primarily because of the templates). I have two shortcuts to start Edit Plus: ...
frederickmc
Offline Send Email
Jul 3, 2009
9:21 pm

... Further information: If I have opened "C:\Program Files\EditPlus\editplus.exe" -d G:\shared\proj1\code -i G:\shared\EditPlus\proj1 and verify that Tool >...
frederickmc
Offline Send Email
Jul 3, 2009
11:11 pm

... A question: In the scenario you just described, does the first instance of EP continue to actually use the path that was specified on the command line...
Michael L. Jones
mljones1947
Offline Send Email
Jul 5, 2009
3:42 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help