lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV help: finally!


From: Bela Lubkin
Subject: Re: LYNX-DEV help: finally!
Date: Thu, 12 Mar 1998 03:35:04 -0800

Scott McGee wrote:

>                     One thought I had is to allow a second file, perhaps named
> sitelynx.cfg that contains lynx.cfg stuff to override lynx.cfg. That way, I
> can glance through lynx.cfg to see if there is new stuff (which should be 
> flagged as new or changed) and add any settings for that stuff in my 
> sitelynx.cfg file and leave the lynx.cfg unaltered. Also, since compiling/
> installing lynx would not write the sitelynx.cfg file, most users would not
> have to change, alter, recreate, or otherwise mess with it after the first 
> time except to take advantage of different features than previously used.

Rather than embedding another filename in the Lynx binary (and the
associated issues of where to put it), Lynx should support an "include"
directive in lynx.cfg.

Then *you* could set up, say, /usr/local/lib/lynx.cfg as your default
lynx.cfg, and it could say:

  include:/usr/local/lib/sitelynx.cfg

I, as a user on your machine, could set LYNX_CFG=$HOME/lynx.cfg, and in
that file I could:

  include:/usr/local/lib/lynx.cfg

to pick up your defaults, followed by a few overrides of my own.

Here's a starter implementation.  There are a couple things it should
probably do, that I didn't know how to do properly from the Lynx
context:

  - get rid of leading/trailing white space ("include: /foo/bar ")

  - deal with "~" and "$HOME" expansion

  - any special fooling around needed for DOS386, Windows, VMS, etc.?

Attached: diff -c patches, gzip-compressed, uuencoded.  Written and
tested against lynx 2.8pre.5.

>Bela<

-- 
Tales of our recent world trip, http://www.armory.com/~alexia/trip/trip.html

=============================================================================

begin 600 lynx-cfg-include.patch.gz
M'XL("(K(!S4"`RYZ`,U6;6_:2!#^3'_%A%,5`PO!8$(@NJM(`FTDYT60^U#U
M*K38:[Q78UOK)2^J\M]O=FTC;$A?KG=J+<3:L[.S,\\\,[OU>AWL]U>4ARVG
M%0F^K$P$APE;0*</9GO8Z0W;^#(8G+QJ-IL;U<J=OX8K*L#L0+L[[)KX2[7J
MQ4=]HU*O3\S.<1^T"/1SE+]`O7(K(H<E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/:MDEZR7'3_0%JE*XD:0*
;Q0.HR*2&9A*N>P86H%._$HS_`/%[=#\5"P``
`
end

reply via email to

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