diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-06-01 16:50:16 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-06-01 16:50:16 +0000 |
commit | fc4b6e4a93dc91fea7b64e9230d8aea9bcfe99ee (patch) | |
tree | 3aeb231080b2ce828adb5d294045ce00b06501f3 /rc.c | |
parent | [w3m-dev 03196] C-w (diff) | |
download | w3m-fc4b6e4a93dc91fea7b64e9230d8aea9bcfe99ee.tar.gz w3m-fc4b6e4a93dc91fea7b64e9230d8aea9bcfe99ee.zip |
[w3m-dev 03200] Re: New configuration option ``keymap_file'' and new command ``DEFINE_KEY''
* fm.h: add <sts/stat.h>, unistd.h>
* fm.h (keymap_file): added
* func.c (keymap_initialized): added
(current_keymap_file): added
(setKeymap): added
(initKeymap): rewrite to use setKeymap()
* funcname.tab (DEFINE_KEY): added
* main.c (MAIN): initKeymap(TRUE)
(defKey): added
* proto.h (defKey): added
(setKeymap): added
(initKeymap): add force param
* rc.c (CMT_KEYMAP_FILE): added
(params3): add keymap_file
(sync_with_option): add initKeymap(FALSE)
* doc/README.func (DEFINE_KEY): added
* doc-jp/README.func: (DEFINE_KEY): added
* scripts/w3mhelp.cgi.in: add defKey
* NEWS:
func: DEFINE_KEY
rc: keymap_file
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | rc.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.43 2002/04/25 16:26:59 ukai Exp $ */ +/* $Id: rc.c,v 1.44 2002/06/01 16:50:16 ukai Exp $ */ /* * Initialization file etc. */ @@ -191,6 +191,8 @@ static char *config_file = NULL; #define CMT_MIGEMO_COMMAND "Migemoコマンド" #endif /* USE_MIGEMO */ +#define CMT_KEYMAP_FILE "keymapファイル" + #else /* LANG != JA */ @@ -329,6 +331,8 @@ static char *config_file = NULL; #define CMT_MIGEMO_COMMAND "Migemo command" #endif /* USE_MIGEMO */ +#define CMT_KEYMAP_FILE "keymap file" + #endif /* LANG != JA */ #define PI_TEXT 0 @@ -575,6 +579,8 @@ struct param_ptr params3[] = { NULL}, {"decode_cte", P_CHARINT, PI_ONOFF, (void *)&DecodeCTE, CMT_DECODE_CTE, NULL}, + {"keymap_file", P_STRING, PI_TEXT, (void *)&keymap_file, CMT_KEYMAP_FILE, + NULL}, {NULL, 0, 0, NULL, NULL, NULL}, }; @@ -1238,6 +1244,7 @@ sync_with_option(void) AcceptEncoding = acceptableEncoding(); if (AcceptMedia == NULL || *AcceptMedia == '\0') AcceptMedia = acceptableMimeTypes(); + initKeymap(FALSE); } void |