Thread View: news.software.readers
1 messages
1 total messages
Started by Roger Cornelius
Fri, 31 Jan 1992 19:53
Any interest in vn patches?
Author: Roger Cornelius
Date: Fri, 31 Jan 1992 19:53
Date: Fri, 31 Jan 1992 19:53
237 lines
11122 bytes
11122 bytes
I have about 75K of patches I've made to vn over the last few years.
In the past, whenever I've seen queries re: vn, I've mailed the
poster my patches if requested. Since I see less and less discussion
about vn these days, I thought I'd make these generally available.
The patches apply to the 4/88 res 1.2 version of vn (from the "show vn
version" command). I believe this is the latest "official" version.
Below is a list of the more important changes made by the patches.
If you want them email me. If enough people want them I'll post.
If you have additional patches/enhancements to vn, I'd like to see
them.
--
Roger Cornelius rac@sherpa.UUCP ...!uunet!sherpa!rac
--- cut here ---
vn description of changes
Long ago:
'm'ailing a reply to the author of an article which is
contained in a digest would result in a "Temporary string
storage overflow" error and vn would exit back to the shell
- fixed. See the comments near initpool() in std.c for more
detailed info.
Long ago:
When 's'aving an article, the string specified as the file
name is saved for reuse by the next 's'ave command. However,
if a pipe were specified rather than a file name (i.e. first
character was a '|'), the string was not saved for reuse.
This was documented but I didn't like the behavior. The
string is now saved for reuse in both cases.
Sat Nov 17 19:12:25 EST 1990
user_str() in session.c:
Implemented a crude "erase previous word" (^W) command as in
vi. This complements "kill line", which uses the users termio kill
character. Used when vn prompts you for text; e.g. 's'aving an
article or executing a shell command with '!'. I'm not familiar
with the BSD terminal handler, so this may work differently than
it's erase word character.
digname() in std.c:
An assignment of the form: "a = b = c = somevalue" tickles
a bug in some versions of SCO's Microsoft compiler (both
XENIX and UNIX) causing vn to dump core when starting up.
Changed to not tickle the bug.
Tue Jan 15 20:21:48 EST 1991
reader.c, reader.h, help.c:
Added a "previous article" command to complement "next
article". When reading a list of articles, 'l' now displays
the last article. Successively pressing 'l' procedes backwards
through the list. 'l' complements the 'n' (next article)
command.
Allow 's'aving of articles relative to the current directory
(i.e., ./filename, ../filename, etc.) even when the environment
variable VNSAVE is set. This has always worked, and is
documented, but only if VNSAVE was not set.
Sun Apr 21 19:13:10 EDT 1991
reader.c:
When 's'aving articles to a file, expand wild cards and environment
variables in the file name. Done using a modified version of the
glob() that comes with Mark Nudelman's less(1) (version 123) package.
tty_set.c, sig_set.c:
Made minor changes to get POSIX job control working correctly with
vn under SCO UNIX. These changes may or may not work on other sV3.2
systems which support POSIX style job control. This is enabled with
a #define, so if you don't want/need it, don't define it. See the
Makefile.
Wed Jun 19 18:26:26 EDT 1991
config.h:
A new define COUNT_LINES causes lines in an article to be counted if
a "Lines:" header isn't present (prevalent in cnews generated articles).
See config.h for ramifications of defining this.
digest_extract() in digest.c:
The (more n%) prompt was wrong for digest articles when headers were
turned on. In a digest, only the digest itself contains all the
headers. The individual articles generally contain only From, Date,
and Subject headers. When header printing is turned on, the main
digest headers are printed as well as the individual article headers.
But only the count of the individual article headers was being used
to calculate the percentage for use by the more prompt. Changed to
use the count of main digest headers if headers are turned on.
digname() in std.c:
Header search quit after finding the "Lines:" header rather than
after finding a blank line. Changed to quit searching when
a non-header (blank) line is found (per RFC 1036). Since many
articles now contain no "Lines: " header, this compounded the
problem.
nfgets() in std.c:
In some cases, vn would continue searching for header lines after
finding an empty (blank) line. Changed to quit searching when a
non-header (blank) line is found (per RFC 1036).
storage.c:
Commented out the function str_taptr() in storage.c since it's
not called from anywhere in vn.
followup() in reader.c:
Changed the leading salutation inserted when doing a followup
from "From article %s, by %s:\n" to "%s writes:\n".
Tue Jun 25 19:36:36 EDT 1991
save_art() in svart.c:
Bug fix. One line change to unlink tmp file created when
saving to a pipe (savefile name begins with '|'). This should
have been fixed a long time ago!
Mon Aug 05 17:08:18 EDT 1991
mail_prompt() in std.c:
If MAILCHOOSE were defined and the user chose a mail address
which was out of range (e.g., choices are 1 and 2, and user
chooses 4), vn would use the literal number chosen as the
address, rather than issuing an error message. Fixed.
config_std.h, std.c:
Added the define MMDF which calls the MMDF submit program
directly to deliver mail. Defining MMDF will also define
INLETTER. See config_std.h for details. Defining MMDF
requires you have strftime().
config.h, std.c, reader.c:
Added the define SUBJ_OPT to indicate when a mailer (DEF_MAIL)
accepts the subject of the message as a command line argument.
See config.h for details. Used to get the "Subject: " line
to appear with the rest of the mail headers. Otherwise, the
"Subject: " is offset by one blank line from the other headers
preventing the addressee's mail reader from recognizing it
as a header. SUBJ_OPT should NOT be defined when INLETTER
and/or MMDF are defined since in those cases, all headers
are inserted directly in the message and parsed by DEF_MAIL
itself. Defining SUBJ_OPT with MMDF/INLETTER is meaningless.
sig_set.c, brk.h, reader.c:
Added signal handling code to allow user to break out of
"save file: " prompt when in reading phase. Previously it
was not possible to abort a 's'ave when in reading phase.
session.c:
Undeclared function arguments in preinfo() caused compiler
warnings. Fixed (should have been long ago!).
sig_set.c:
#Inclusion of both sgtty.h and termio.h caused many "...
redefined" compiler errors. Changed to conditionally include
termio.h if SYSV, sgtty.h otherwise, as in tty_set.c. This
problem was caused by earlier mods. termio.h was not included
in the original code.
Wed Aug 14 02:32:47 EDT 1991
specmark() in std.c, config_std.h:
Added optional #define STRICT_REGEXP in config_std.h.
Affects code in specmark() in std.c which controls type
of regexp pattern generated when special `all' keyword
is used with -n startup option. This was added as a workaround
for the SCO UNIX 3.2v2 regex() which doesn't match ".*$"
properly. Probably not very useful to others. See config_std.h
and std.c for details.
Fri Sep 06 16:58:10 EDT 1991
userlist() in userlist.c:
Now saves input from ^R (specify articles to read) even if
it's valid.
readfile() and searcher() in reader.c:
Can now break out of search prompt with SIGINT or SIGQUIT.
searcher() in reader.c:
Got rid of annoying "Skipping..." message when a search goes beyond
Lookahead buffer.
Clear screen when a match is found, causing matched line
to be displayed as top line on screen. If no match is found,
just print an error (don't advance page).
readfile() in reader.c:
When `r'ewinding, now clears screen and redisplays appropriate
headers before the screen is redrawn. (all headers
if display-headers-flag is on, or basic headers
otherwise.) Previously, headers were only redisplayed
if display-headers-flag was on.
rerrmsg() in reader.c:
Only print a newline before the message if user didn't already
press return.
Fri Oct 04 15:42:23 EDT 1991
user_str() in session.c:
Operate on a copy of the prompt string so the original doesn't get
munged if we're interrupted. The (possibly modified) copy is
transferred to the original on successful completion. This was
required after the change allowing us to break out of a `s'ave or
search prompt.
Sun Jan 26 15:56:22 EST 1992
help() & hprint() in help.c:
Print a two column help screen from menu page. The single column
one was too long.
mail_cmd() in std.c:
When 'm'ailing a reply to an article, if the address contained the
'%' character (as in rac%sherpa@uunet), the '%' was incorrectly
interpreted as a sprintf() format character. '%' characters are
now checked for and escaped if they occur in the address.
If SUBJ_OPT was defined and contained '`' or '"' characters, these
characters were interpreted incorrectly when passed to the shell
by system(). "`" and '"' are now checked for and escaped if
found in the subject and SUBJ_OPT is defined.
user_str() in session.c:
After printing the prompt, zap to eol to make sure the line is
cleared. In some cases the prompt printed would not completely
overwrite the existing prompt.
Wed Jan 29 13:35:25 EST 1992
tty_set.c, vnglob.c, and user_str() in session.c:
Further changes to ^W (erase previous word) handling.
Finally got around to reading the BSD4.3 tty(4) manual page.
Now, if TIOCGLTC is defined, the erase word character will be
gotten from the struct ltchars.t_werasc. If ltchars.t_werasc
is not set (== -1) then vn uses ^W. If TIOCGLTC is not defined,
the erase word character is hardcoded as ^W. These changes
should work, but I'm not able to test on a machine with TIOCGLTC
defined. - Caveat Emptor!
Documented all changes in vn.man (where appropriate).
--
Roger Cornelius rac@sherpa.UUCP ...!uunet!sherpa!rac
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads