lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev [PATCH]


From: Vlad Harchev
Subject: Re: lynx-dev [PATCH]
Date: Thu, 22 Jun 2000 12:55:42 +0500 (SAMST)

On Wed, 21 Jun 2000, Klaus Weide wrote:

> On Thu, 22 Jun 2000, Vlad Harchev wrote:
> 
> >  Here is a patch that allows user to trigger execution of commands declared
> > via EXTERNAL setting. To allow this, one more field to the syntax of the 
> > value
> > of EXTERNAL setting is added; if that field is TRUE, then activating (using 
> > arrow-right for example) the link with URL matching the one specified by 
> > 'prefix' field will be equal to pressing '.' on it.
> >  Personally I use it for invoking 'links' browser for ftp links - it caches
> > ftp connections so it doesn't reconnect when directory is changed. Here is
> > a setting I use:
> > EXTERNAL:ftp://:links %s:TRUE:TRUE
> > 
> >  Seems Eduardo wanted this functionality.
> 
> Some comments after looking through the patch:
> 
> What happens if Enter is pressed on a form submit field?  What
> should happen?

 No, it won't be executed since the link has the FORM_LINK_TYPE type, and
these are filtered out.
 
>  It seems the EXTERN action doesn't kick in in that case.  That's
>  probably the most reasonable behavior, but maybe needs to be stated.

 Yes, I agree.

> What happens if not Enter, but some other key is pressed, and
> handle_LYK_ACTIVATE() is called?  What should happen?

  Since LYK_ACTIVATE is called, the same code will be executed independent of
the keyt that cause execution.

>  You seem to assume that handle_LYK_ACTIVATE() only gets called for
> keys bound to ACTIVATE, but it's not nearly that simple.  Without
> looking closely, and somewhat form memory, the code may be reached
> for
>   - 'd'ownload
>   - HEAD
>   - NOCACHE ('x')
>   - LYK_SUBMIT (somethign that can get triggered by a mouse action,
>     otherwise similar to LYK_ACTIVATE)
>   - maybe something else.

  Yes, I didn't think about this - I will check the source again. Thanks for
noting.
 
> For each of these,
>  does it make more sense to keep the original behavior, rather than
>  executing the EXTERN command?  (I think, in general, yes.  Not sure
>  about LYK_SUBMIT.)

  Yes, I think that it makes sense to keep original behaviour too.

> OTOH, if you do want to go into EXTERN execution, there are various
> flags that probably need to be reset before returning (reloading,
> LYforce_*, HEAD_request...).

  Seems these are not required then.
  Thanks for your notes. Please feel free to elaborate on this subject.
 
>    Klaus
> 
> 
> ; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
> 

 Best regards,
  -Vlad


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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