lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev (patch) jumps ambushes


From: Klaus Weide
Subject: Re: lynx-dev (patch) jumps ambushes
Date: Fri, 3 Dec 1999 19:23:32 -0600 (CST)

On Fri, 3 Dec 1999, Philip Webb wrote:

> i just burnt my fingers with the jumps file.
> if you have the wrong URL corresponding to `?',
> Lynx will display that URL when asked with confusing results.

Yep, it does what it's told.

The '?' is just a convention.  There's *nothing* in the code that
makes a shorcut named "?" in any way special.  You don't have to
have one.  Or you can have one and can put an arbitrary URL there
(and suffer the consequences).  Or you can make your own convention
and choose a different character for the same function.

> the ancient sample offered in the package needed improvement (below),
> but there is a strong case for improving Lynx behaviour too:
> why does it not use the URL in  lynxcfg:  to find the file to display
> & why does the list have to be ASCII-alphabetical?

Because a binary search is done on it.  (but see below)

> it looks like a bit of ancient hacking, never revisited.
> KW (who reminded us all of how to use jumps a few months ago)?

I like the flexibility that is there, and see no good enough reason to
dumb it down...  If you want the behavior that's described in the docs,
then follow the prescriptions.  If you don't, then don't.

> --- old/jumpsUnix.html        Fri Dec  3 17:24:14 1999
> +++ new/jumpsUnix.html        Fri Dec  3 17:42:28 1999
> @@ -9,9 +9,16 @@
>  </head>
>  <body>
>      <h1>Shortcut List</h1>
> -  Following is a list of shortcut names and the target links associated
> -  with them.  In Lynx, pressing J followed by one of these shortcut names
> -  will jump you directly to the link.  This list will expand over time.<p>
> +  This is a sample jumps file created in the early days of Lynx:
> +  you should use it as a template, replacing with your own choices.
> +  See Users Guide for details of how the `j' command works.  
> +<p>
> +  *** IMPORTANT *** You must have the correct URL for your own list
> +  corresponding to the abbreviation `?' below: otherwise,
> +  Lynx will display an incorrect list with misleading results.<br>

No, it's not an absolute "must".

Lynx will display whatever URL you put there (if valid).

> +  *** ALSO *** The entries must be in ASCII order:
> +  otherwise, Lynx will not be able to find them.

Sorting is case-insensitive.

I doubt ASCII order is true for EBCDIC platforms.

> +<p>
>    <b>Name</b>&nbsp;&nbsp;&nbsp;<b>Link</b>
>  <!-- The list *MUST* be kept SORTED, one entry per line -->
>  <dl compact>


reply via email to

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