Hi, * Jörg Fischer wrote (2008-01-13 23:00): >Thorsten Haude wrote: > >> I don't think they do. NEdit has two kinds of settings: >> - Preferences are those that change behaviour of future documents, >> like 'Make Backup Copy'; these also have a matching local setting. >> - Globals are affecting all documents immediately. >> >> The settings with action routines are all preferences, and only the >> local option is changed. The command shell is a global option however, >> and changing it would affect all windows. > >Setting line numbers or the statistics line also affects all windows.
No, they don't. They either affects the current window (Pref->Show
Line Numbers) or all future windows (Pref->Default Settings->Show
Line Numbers).
>What you probably mean is the difference between a change in the
>Default Settings[which you call global?] and just a change in the
>Preferences menu (minus the cascade Default Settings) [which you call
>local?].
Consider the difference between Show Line Numbers and the Exit
Warning. The first is a preference, ie. it is the default setting for
future windows. The second is a global option, immediately active for
all windows, including existing ones.
>> > old_shell = $command_shell
>> > set_command_shell("/bin/csh")
>> > shell_command(...) # with C shell syntax in this case
>> > set_command_shell(old_shell)
>>
>> Actually it would be better to write
>> shell_command("csh -c '...'")
>
>Sure, if it would work. Unfortunately, there are (even old) examples
>where it won't work (like detaching a shell to open a previewer thing
>without letting the macro go on running).
I think this should be fixed elsewhere.
Thorsten Placebo: Slave to the Wage
--
All generalizations are false.
pgpjUQyn8TMRj.pgp
Description: PGP signature
-- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
