lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev forms and partial_display


From: Leonid Pauzner
Subject: Re: lynx-dev forms and partial_display
Date: Fri, 28 Aug 1998 19:57:19 +0400 (MSD)

I made a new patch to debug partial mode.
Now with -debug_partial command switch you got MessageSecs delay
between incremental rendering stages.
(MessageSecs available from lynx.cfg and set to 3 sec by default).
We may enter form-based options menu and rerender it with Cntrl-R
to see what is happening in fact.

This patch NOT against the clear dev22, so you may need
to insert a couple of lines manually.



diff -u old/gridtext.c ./gridtext.c
--- old/gridtext.c      Wed Aug 26 15:25:26 1998
+++ ./gridtext.c        Fri Aug 28 19:26:50 1998
@@ -3985,6 +3985,13 @@
     CTRACE(tfp, "GridText: HText_pageDisplay at line %d started\n", line_num);

     display_page(HTMainText, line_num-1, target);
+
+    CTRACE(tfp, "GridText: HText_pageDisplay finished\n");
+
+#ifdef DISP_PARTIAL
+       if (display_partial && debug_display_partial)
+       sleep(MessageSecs);
+#endif

     is_www_index = HTAnchor_isIndex(HTMainAnchor);
 }
diff -u old/lyglobal.h ./lyglobal.h
--- old/lyglobal.h      Sat Aug 15 14:57:56 1998
+++ ./lyglobal.h        Fri Aug 28 18:59:26 1998
@@ -238,6 +238,7 @@
 extern BOOLEAN display_partial;      /* Display document during download */
 extern int Newline_partial;          /* -//- "current" newline position */
 extern int NumOfLines_partial;       /* -//- "current" number of lines */
+extern BOOLEAN debug_display_partial; /* show with MessageSecs delay */
 extern char *form_post_data;         /* User data for post form */
 extern char *form_get_data;          /* User data for get form */
 extern char *http_error_file;        /* Place HTTP status code in this file */
diff -u old/lymain.c ./lymain.c
--- old/lymain.c        Fri Aug 21 06:30:14 1998
+++ ./lymain.c  Fri Aug 28 18:57:32 1998
@@ -358,6 +358,7 @@

 #ifdef DISP_PARTIAL
 PUBLIC BOOLEAN display_partial = FALSE; /* Display document during download */
+PUBLIC BOOLEAN debug_display_partial = FALSE; /* show with MessageSecs delay */
 #endif

 /* These are declared in cutil.h for current freeWAIS libraries. - FM */
@@ -2806,6 +2807,10 @@
    PARSE_SET(
       "partial",       TOGGLE_ARG,             &display_partial,
       "display partial pages while downloading"
+   ),
+   PARSE_SET(
+      "debug_partial", TOGGLE_ARG,             &debug_display_partial,
+      "debug: show incremental partial display with MessageSecs delay"
    ),
 #endif
    PARSE_FUN(
diff -u old/lymainlo.c ./lymainlo.c
--- old/lymainlo.c      Fri Aug 28 05:27:18 1998
+++ ./lymainlo.c        Fri Aug 28 18:51:34 1998
@@ -1017,12 +1017,19 @@
                     */
                    Newline = newdoc.line;
 #ifdef DISP_PARTIAL
+                   if (display_partial) {
                    /*
                     *  Override newdoc.line with a new value if user
                     *  scrolled the document while downloading.
                     */
-                   if (display_partial && (Newline_partial != newdoc.line))
+                   if (Newline_partial != newdoc.line)
                        Newline = Newline_partial;
+                   /*
+                    *  End of incremental rendering stage here.
+                    *  Reset for debuging purpose only.
+                    */
+                   display_partial = FALSE;
+                   }
 #endif /* DISP_PARTIAL */

                    /*



reply via email to

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