lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev pre2 (patch)


From: Leonid Pauzner
Subject: lynx-dev pre2 (patch)
Date: Thu, 13 May 1999 03:16:29 +0400 (MSD)

* add DEBUG_SOURCE_CACHE makefile flag so all documents will be cached
  in SOURCE_CACHE mode, including local files. Normally undef'ed
  so only http served documents cached with sources.
* in LYK_HISTORY, set newdoc.link = 1 so position at link #2
  bypassing "recent statusline messages" link.
* comment out "partial_thres=" option in .lynxrc (it was ~hardcored so the
  changes from lynx.cfg file could not be activated).



diff -u old/html.c ./html.c
--- old/html.c  Wed May  5 17:34:00 1999
+++ ./html.c    Thu May 13 00:44:36 1999
@@ -7734,19 +7734,25 @@
 {
     char filename[LY_MAXPATH];
     HTStream *stream = NULL;
-/*    HTProtocol *p = (HTProtocol *)anchor->protocol; */
+    HTProtocol *p = (HTProtocol *)anchor->protocol;

     /*
      * Neatly and transparently vanish if source caching is disabled.
      */
     if (LYCacheSource == SOURCE_CACHE_NONE)
        return target;
-/*
+
+#ifndef DEBUG_SOURCE_CACHE
+    /*  Only remote HTML documents may benefits from HTreparse_document(), */
+    /*  oh, assume http protocol:                                          */
     if (strcmp(p->name, "http") != 0) {
        CTRACE(tfp, "Protocol is \"%s\"; not caching\n", p->name);
        return target;
     }
-*/
+#else
+    /* all HTStreams will be cached */
+#endif
+
     stream = (HTStream *) malloc(sizeof(*stream));
     if (!stream)
        outofmem(__FILE__, "CacheThru_new");

diff -u old/lymainlo.c ./lymainlo.c
--- old/lymainlo.c      Wed May  5 17:34:00 1999
+++ ./lymainlo.c        Thu May 13 02:25:56 1999
@@ -1267,6 +1267,11 @@
             *  to Newline, so we get a redraw.
             */
            curdoc.line = -1;
+
+           /*
+            * I have no idea what this does, but it seems to be necessary... 
-dsb
+            */
+           LYUCPopAssumed();
        }
 #endif

@@ -2778,6 +2783,7 @@
                newdoc.isHEAD = FALSE;
                newdoc.safe = FALSE;
                newdoc.internal_link = FALSE;
+               newdoc.link = 1; /*@@@ bypass "recent statusline messages" link 
*/
                FREE(curdoc.address);  /* so it doesn't get pushed */

                refresh_screen = TRUE;

diff -u old/gridtext.c ./gridtext.c
--- old/gridtext.c      Tue Apr 27 05:59:06 1999
+++ ./gridtext.c        Thu May 13 02:05:20 1999
@@ -6269,11 +6269,6 @@
        }
     }

-    /*
-     * I have no idea what this does, but it seems to be necessary... -dsb
-     */
-    LYUCPopAssumed();
-
     CTRACE(tfp, "Reparse %s\n", (ok ? "succeeded" : "failed"));

     if (ok)  {

diff -u old/lyrcfile.c ./lyrcfile.c
--- old/lyrcfile.c      Wed May  5 17:34:00 1999
+++ ./lyrcfile.c        Thu May 13 01:49:52 1999
@@ -467,6 +467,7 @@
                user_mode = NOVICE_MODE;
            }

+#ifdef NOTUSED
 #ifdef DISP_PARTIAL
        /*
         *  Partial display logic--set the threshold # of lines before
@@ -477,6 +478,7 @@
            if (atoi(cp) != 0)
                partial_threshold = atoi(cp);
 #endif /* DISP_PARTIAL */
+#endif /* NOTUSED */

 #ifdef ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS
        /*
@@ -854,6 +856,7 @@
               ((keypad_mode == LINKS_ARE_NUMBERED) ? "LINKS_ARE_NUMBERED" :
                                      "LINKS_AND_FORM_FIELDS_ARE_NUMBERED")));

+#ifdef NOTUSED
 #ifdef DISP_PARTIAL
     /*
      *  Partial display threshold
@@ -867,6 +870,7 @@
 "));
     fprintf(fp, "partial_thres=%d\n\n", partial_threshold);
 #endif /* DISP_PARTIAL */
+#endif /* NOTUSED */

     /*
      *  Line edit mode.
Only in .: old
Only in .: status.me



reply via email to

[Prev in Thread] Current Thread [Next in Thread]