$B$k$S$-$A$G$9!#(B
[w3m-dev 00423]$B$G$N:dK\$5$s$N;XE&$r(Bw3m-0.1.9$B$KH?1G$5$;$^$7$?!#(B
$B0J2<%Q%C%A$G$9!#(B
$B$^$?(B[w3m-dev 00422]$B$N%Q%C%A$b$"$F$F$/$@$5$$!#(B
diff -u w3m-0.1.9/config.h w3m/config.h
--- w3m-0.1.9/config.h Fri Apr 21 13:50:59 2000
+++ w3m/config.h Fri Apr 21 13:35:54 2000
@@ -13,6 +13,7 @@
*/
#undef DICT
+#define BUFINFO
/*
If you define USE_MARK, you can use set-mark (C-SPC),
goto-next-mark (ESC p), goto-next-mark (ESC n) and
diff -u w3m-0.1.9/display.c w3m/display.c
--- w3m-0.1.9/display.c Fri Apr 21 10:47:40 2000
+++ w3m/display.c Fri Apr 21 13:54:22 2000
@@ -164,6 +164,8 @@
static int graph_mode = 0;
#endif /* not KANJI_SYMBOLS */
+static Buffer *save_current_buf = NULL;
+
void
displayBuffer(Buffer * buf, int mode)
{
@@ -253,6 +255,12 @@
message(msg->ptr, buf->cursorX, buf->cursorY);
standend();
refresh();
+#ifdef BUFINFO
+ if (Currentbuf != save_current_buf) {
+ saveBufferInfo();
+ save_current_buf = Currentbuf;
+ }
+#endif
}
void
diff -u w3m-0.1.9/main.c w3m/main.c
--- w3m-0.1.9/main.c Fri Apr 21 12:45:53 2000
+++ w3m/main.c Fri Apr 21 13:48:00 2000
@@ -489,6 +489,10 @@
rFrame();
Currentbuf = newbuf;
}
+#ifdef BUFINFO
+ saveBufferInfo();
+#endif
+
}
if (Firstbuf == NULL) {
if (newbuf == NO_BUFFER) {
@@ -665,6 +669,21 @@
w3mFuncList[(int) EscDKeymap[d]].func();
}
+static char * currentURL(void);
+
+void
+saveBufferInfo()
+{
+ FILE * fp;
+ if((fp = fopen(rcFile("bufinfo"),"w")) == NULL){
+ return;
+ } else {
+ fprintf(fp, "%s\n", currentURL());
+ fclose(fp);
+ }
+}
+
+
static void
pushBuffer(Buffer * buf)
{
@@ -678,6 +697,10 @@
buf->nextBuffer = Currentbuf;
Currentbuf = buf;
}
+#ifdef BUFINFO
+ saveBufferInfo();
+#endif
+
}
static void
@@ -2828,18 +2851,22 @@
}
/* show current URL */
-void
-curURL(void)
+static char *
+currentURL(void)
{
Str s;
if (Currentbuf->bufferprop & BP_INTERNAL)
- return;
+ return "";
s = parsedURL2Str(&Currentbuf->currentURL);
- disp_message_nomouse(s->ptr, TRUE);
+ return s->ptr;
}
-
+void
+curURL(void)
+{
+ disp_message_nomouse(currentURL(), TRUE);
+}
/* view HTML source */
void
diff -u w3m-0.1.9/proto.h w3m/proto.h
--- w3m-0.1.9/proto.h Fri Apr 21 10:47:40 2000
+++ w3m/proto.h Fri Apr 21 13:48:00 2000
@@ -472,5 +472,5 @@
#endif /* not DICT */
extern void wrapToggle(void);
-
+extern void saveBufferInfo ( void );
#include "indep.h"
This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:55 CDT