While using scite through the director extension interface, loading/saving a
session
from/to a specific file(normally with the same filename base as a project
configuration file)
was required.
For loading, I am using the action "loadsession:".
For saving, at first, I did followings.
1. backup the default session file if any.
2. spawn a new scite process with a command parameter "-save.session=1".
3. when it exits, move a newly created default session file to the project
directory and rename it.
4. finally restore backuped session file from 1.
Well It's a nasty workaround.
Now, I investigated the scite source code pretty much. And did following hack.
SciTEBase.cxx:SciTE::PerformOne(), near "loadsession:"
else if (isprefix(action, "savesession:")) {
if (*arg) SaveSession(arg);
}
I wonder why the original implementor of "loadsession:" didn't include
"savesession:".
새로운 기부문화의 씨앗, 해피빈
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest