List Info

Thread: Adding Nano to the list of positionable editors




Adding Nano to the list of positionable editors
user name
2008-01-12 10:01:18
The rather boring attached diff just adds "nano"
to the list of
positionable editors in editor_can_position() of LYEdit.c so
it
can be called with

  nano +42 $TEMPFILE

to position the cursor on line 42 when using Nano.  This
came up
in the Blinux (blind Linux users) mailing list when a user
was
confused by Lynx docs referencing positionablity within the
editor and his editor (nano, a popular free-sofware
replacement
for Pico) allowed for positionability but the two weren't
talking
to each other.

I offered both this suggestion (rebuilding Lynx with
"nano" in
the above list) and a fix-it-now solution of cheating by
linking
nano to an editor that Lynx recognized as positionable.

I suppose some sort of more sustainable long-term solution
would
be to have the initial list be the default, but also accept
a
list of "positional editors" from the
/etc/lynx.cfg file so an
administrator specify which editors on the system are
positionable without rebuilding the binary.

But for now, adding nano to the list of positionable editors
is
an easy fix.

-tim







_______________________________________________
Lynx-dev mailing list
Lynx-devnongnu.org
htt
p://lists.nongnu.org/mailman/listinfo/lynx-dev

  
Re: Adding Nano to the list of positionable editors
country flaguser name
United States
2008-01-12 10:08:30
On Sat, 12 Jan 2008, Tim Chase wrote:

> The rather boring attached diff just adds
"nano" to the list of
> positionable editors in editor_can_position() of
LYEdit.c so it
> can be called with
...
> But for now, adding nano to the list of positionable
editors is
> an easy fix.

thanks

-- 
Thomas E. Dickey
http://invisible-island.n
et
ftp://invisible-island.net


_______________________________________________
Lynx-dev mailing list
Lynx-devnongnu.org
htt
p://lists.nongnu.org/mailman/listinfo/lynx-dev

Re: Adding Nano to the list of positionable editors
user name
2008-03-12 07:02:43
Tim Chase dixit:

>*** 27,32 ****
>--- 27,33 ----
>        "jpico",
>        "jstar",
>        "jstar",
>+       "nano",
>        "pico",
>        "rjoe",
>        "vi"

"jupp" is a variant of "jstar" (why is
it listed twice? wtf?), so
it can position too. How about a configurable addition in
lynx.cfg,
which can then be extended by sysadmins/packagers?

bye,
//mirabilos
-- 
  "Using Lynx is like wearing a really good pair of
shades: cuts out
   the glare and harmful UV (ultra-vanity), and you feel
so-o-o COOL."
                                         -- Henry Nelson,
March 1999


_______________________________________________
Lynx-dev mailing list
Lynx-devnongnu.org
htt
p://lists.nongnu.org/mailman/listinfo/lynx-dev

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )