[w3m-dev 03136] Add COMMAND to execute multiple commands

* fm.h (CurrentMenuData): deleted
	(CurrentCmdData): added
* func.c (getKey): check next char of ^
	(getWord): get word until ';'
	(getQWord): rewrite using Str
* funcname.tab (COMMAND): added
* main.c (MAIN): delete CurrentMenuData
		initialize CurrentCmdData
	(searchKeyData): use CurrentCmdData
	(execCmd): added
	(SigAlarm): delete CurrentMenuData, use CurrentCmdData
* menu.c (action_menu): delete CurrentMenuData, use CurrentCmdData
* proto.h (execCmd): added
* doc/README.func (ALARM): capitalize
		(COMMAND): added
* doc-jp/README.func (COMMAND): added
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-03-19 16:06:52 +00:00
parent 382685bf0a
commit f475e89f9f
9 changed files with 114 additions and 62 deletions

6
menu.c
View File

@@ -1,4 +1,4 @@
/* $Id: menu.c,v 1.14 2002/01/31 17:54:52 ukai Exp $ */
/* $Id: menu.c,v 1.15 2002/03/19 16:06:52 ukai Exp $ */
/*
* w3m menu.c
*/
@@ -641,9 +641,9 @@ action_menu(Menu *menu)
if (item.type & MENU_FUNC) {
CurrentKey = -1;
CurrentKeyData = NULL;
CurrentMenuData = item.data;
CurrentCmdData = item.data;
(*item.func) ();
CurrentMenuData = NULL;
CurrentCmdData = NULL;
}
}
else if (mselect == MENU_CLOSE) {