* editcmd.c (edit_block_process_cmd): Use execute(), not

my_system() to relieve interactive scripts, such as spell
checker, from saving and restoring the terminal.
This commit is contained in:
Pavel Roskin 2001-08-23 17:21:13 +00:00
parent 13b66d593e
commit cbaceaafc9
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2001-08-23 Pavel Roskin <proski@gnu.org>
* editcmd.c (edit_block_process_cmd): Use execute(), not
my_system() to relieve interactive scripts, such as spell
checker, from saving and restoring the terminal.
2001-08-19 Pavel Roskin <proski@gnu.org>
* gtkedit.c: Include <sys/param.h> if present - it should always

View File

@ -2996,13 +2996,12 @@ void edit_block_process_cmd (WEdit * edit, const char *shell_cmd, int block)
edit_save_block (edit, b, start_mark, end_mark);
/* run your script */
my_system (EXECUTE_AS_SHELL, shell,
catstrs (home_dir, EDIT_DIR, shell_cmd, " ",
execute (catstrs (home_dir, EDIT_DIR, shell_cmd, " ",
edit->filename, " ", home_dir, BLOCK_FILE, " ",
home_dir, ERROR_FILE, 0));
} else { /* for missing marked block run ... */
my_system (0, shell, catstrs (EDIT_DIR, shell_cmd));
execute (catstrs (EDIT_DIR, shell_cmd));
}
edit_refresh_cmd (edit);