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.
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?].  The menu preferences actions don't change the Default
settings, of course.  Wouldn't be the case for setting the shell,
either.

> >        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).

Jörg
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to