#622609 Option display_link in /etc/w3m/config not working,display_link_number OK

Package:
w3m
Source:
w3m
Description:
WWW browsable pager with excellent tables/frames support
Submitter:
Olivier Cappe
Date:
2014-10-12 15:15:10 UTC
Severity:
minor
#622609#5
Date:
2011-04-13 11:27:12 UTC
From:
To:
The option to include both links and link numbers in w3m dumps (as in lynx, see
Debian bug #329862)

  display_link_number

works but not

  display_link

as featured in version of /etc/w3m/config shipped with the package.

The display_link option currently does nothing (contrary to what w3m
-show-option suggests), whereas display_link_number works as expected.

#622609#10
Date:
2011-11-11 02:22:07 UTC
From:
To:
tags 622609 unreproducible moreinfo
thanks

Hi,

/etc/w3m/config is just default value,
You can set it in ~/.w3m/config or runtime option -o display_link=0/1,
press "o" and config "Display link URL automatically".

If you do so and it still does not work, please provide us more info.

#622609#19
Date:
2014-10-12 15:06:48 UTC
From:
To:
Dear Tatsuya,

I think the insufficient explanations delivered (on the options panel
and the -show-options option) are the reason for Olivers bug
report. The effect of the two options is dependent on whether option
-dump is set or not.


Setting       display_link   display_link_number
              v              v
              v              v
              v              v
-----------------------------------------------------------------              
              0              0        NO      NO        NO     NO
              1              0        YES     NO        NO     NO
              0              1        NO      YES       YES    YES
              1              1        YES     YES       YES    YES
-----------------------------------------------------------------              
Result                                v        v        v      v
                                      v        v        v      v
                                      v        v        v      v
                                      screen:  screen:  stout: stout:
                                      link in  number   link   number
                                      bottom   besides  bottom besides
                                      line     link     lines  link


One solution would be mentioning that option display_link_numbers
overrides display_link if w3m converts a file to stout

A more elegant solution would be to introduce an additional dump,
let's say -dump_ref that overrides user input for display_link and
display_link_number by setting them to on TRUE and informing the user
on the man page about this behaviour.

Yours sincerely
Markus