opensubscriber
   Find in this group all groups
 
Unknown more information…

l : lynx-dev@nongnu.org 17 January 2012 • 8:35AM -0500

Re: [Lynx-dev] A possible modification to Jumps
by Thomas Dickey

REPLY TO AUTHOR
 
REPLY TO GROUP




On Mon, Jan 16, 2012 at 10:22:15PM +0000, Mark Skilbeck wrote:
> On Mon, Jan 16, 2012 at 05:49:14AM -0500, Thomas Dickey wrote:
> >
> > However, the change is incomplete - it works for the case where the
> > user types 'j' followed by the jump tag, but it does not handle the
> > case where the user selects the tag from the jump-page.
> >
>
> Yeah. I don't see how we can account for that use-case. There isn't any special
> code for viewing the jumps file (AFAIK), so it would be impossible to hook-into.


RCS file: RCS/LYMainLoop.c,v
retrieving revision 1.177
diff -u -r1.177 LYMainLoop.c
--- LYMainLoop.c 2012/01/16 10:49:56 1.177
+++ LYMainLoop.c 2012/01/17 00:33:12
@@ -3506,6 +3506,14 @@
     return TRUE;
}

+static void
+fill_JUMP_Params(char **addressp)
+{
+    if (LYJumpFileURL) {
+ check_JUMP_param(addressp);
+    }
+}
+
static BOOLEAN handle_LYK_JUMP(int c,
       char *user_input_buffer,
       char **old_user_input GCC_UNUSED,
@@ -5705,6 +5713,7 @@
}
tmpDocInfo = newdoc;
tmpNewline = -1;
+ fill_JUMP_Params(&newdoc.address);
getresult = getfile(&newdoc, &tmpNewline);
if (!reloading && !popped_doc && (tmpNewline >= 0)) {
    LYSetNewline(tmpNewline);
@@ -5715,6 +5724,7 @@
#else /* TRACK_INTERNAL_LINKS */
    tmpDocInfo = newdoc;
    tmpNewline = -1;
+     fill_JUMP_Params(&newdoc.address);
    getresult = getfile(&newdoc, &tmpNewline);
    if (!reloading && !popped_doc && (tmpNewline >= 0)) {
LYSetNewline(tmpNewline);

--
Thomas E. Dickey <dickey@invi...>
http://invisible-island.net
ftp://invisible-island.net

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.