[Top][All Lists]

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

[Lynx-dev] Adding Nano to the list of positionable editors

From: Tim Chase
Subject: [Lynx-dev] Adding Nano to the list of positionable editors
Date: Sat, 12 Jan 2008 10:01:18 -0600
User-agent: Icedove (X11/20070730)

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.


*** LYEdit.c    2008/01/12 15:40:43     1.1
--- LYEdit.c    2008/01/12 15:41:01
*** 27,32 ****
--- 27,33 ----
+       "nano",

reply via email to

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