aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-14 15:24:03 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-14 15:24:03 +0000
commit4a9e9df2958296dcfef8289390d6939dcab79830 (patch)
tree67d6a2d3ae7e79980192a16069f32874742e67a4 /rc.c
parent[w3m-dev 03568] Re: preserve timestamp (diff)
downloadw3m-4a9e9df2958296dcfef8289390d6939dcab79830.tar.gz
w3m-4a9e9df2958296dcfef8289390d6939dcab79830.zip
[w3m-dev 03569] Re: preserve timestamp
* file.c (loadGeneralFile): PresetveTimestamp (_doFileCopy): is_pipe, PreserveTimestamp (doFileSave): PreserveTImestamp * fm.h (PreserveTimestamp): added * rc.c (CMT_PRESERVE_TIMESTAMP): added (params3): add preserve_timestamp From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'rc.c')
-rw-r--r--rc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/rc.c b/rc.c
index 6ce1b55..9b39e61 100644
--- a/rc.c
+++ b/rc.c
@@ -1,4 +1,4 @@
-/* $Id: rc.c,v 1.70 2002/12/06 16:50:34 ukai Exp $ */
+/* $Id: rc.c,v 1.71 2002/12/14 15:24:04 ukai Exp $ */
/*
* Initialization file etc.
*/
@@ -167,6 +167,7 @@ static char *config_file = NULL;
#define CMT_RETRY_HTTP "URLに自動的に http:// を補う"
#define CMT_DEFAULT_URL "URLを開く時のデフォルト文字列"
#define CMT_DECODE_CTE "保存時に Content-Transfer-Encoding をデコードする"
+#define CMT_PRESERVE_TIMESTAMP "保存時にタイムスタンプを保持する"
#ifdef USE_MOUSE
#define CMT_MOUSE "マウスを使う"
#define CMT_REVERSE_MOUSE "マウスのドラッグ動作を逆にする"
@@ -322,6 +323,7 @@ static char *config_file = NULL;
#define CMT_RETRY_HTTP "Prepend http:// to URL automatically"
#define CMT_DEFAULT_URL "Default value for open-URL command"
#define CMT_DECODE_CTE "Decode Content-Transfer-Encoding when saving"
+#define CMT_PRESERVE_TIMESTAMP "Preserve timestamp when saving"
#ifdef USE_MOUSE
#define CMT_MOUSE "Enable mouse"
#define CMT_REVERSE_MOUSE "Scroll in reverse direction of mouse drag"
@@ -640,6 +642,8 @@ struct param_ptr params3[] = {
NULL},
{"decode_cte", P_CHARINT, PI_ONOFF, (void *)&DecodeCTE, CMT_DECODE_CTE,
NULL},
+ {"preserve_timestamp", P_CHARINT, PI_ONOFF, (void *)&PreserveTimestamp,
+ CMT_PRESERVE_TIMESTAMP, NULL},
{"keymap_file", P_STRING, PI_TEXT, (void *)&keymap_file, CMT_KEYMAP_FILE,
NULL},
{NULL, 0, 0, NULL, NULL, NULL},