Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#478 smart indent macros must not run shell_command()

open
nobody
None
5
2005-05-28
2005-05-28
Joerg Fischer
No

In the definition of shellCmdMS is the following comment
/* Shell command execution requires that the macro be
suspended, so this subroutine can't be run if macro
execution
can't be interrupted */

However, putting shell_command() in a menu definition
you can run it via macro_menu_command() from inside
a smart indent macro. Repeated calls to such macros will
crash nedit eventually.

Discussion