*BSD News Article 3352


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!mips!mips!swrinde!news.dell.com!uudell!obiwan!bob
From: bob@obiwan.uucp (Bob Willcox)
Newsgroups: comp.unix.bsd
Subject: Re: Help! 386bsd vi has some problems
Message-ID: <BsuKru.DF1@obiwan.uucp>
Date: 12 Aug 92 01:43:06 GMT
References: <BsqwqC.22D@obiwan.uucp>
Organization: Bob's Place, Austin TX
Lines: 50

Well, since I believe I have overcome (fixed?) the problems I was having
with vi I thought I might as well followup my own posting.

In article <BsqwqC.22D@obiwan.uucp> bob@obiwan.uucp (Me) writes:
>The vi from the binary distribution of 386bsd 0.1 seems to have some
>operational problems.  First, when I yank some lines into a named buffer
>then change to a different file and try to paste from the named buffer
>I get an error message "Error reading back from tmp file for pasting!"
>and unreliable results (sometimes the paste seems to work, sometimes
>partially, sometimes not at all).  Seems to be okay if I don't switch
>files.  Looks like some kind of mishandling of the tmp file across
>the switch.

This was the result of three lines near the end of the tmpabort() function
(in tmp.c) that unconditionally closed and unlinked the temp file.
These three lines were not present in the distribution of elvis 1.5
that I had gotten back in April (from prep.ai.mit.edu, I believe).
Deleting these lines seemed to have fixed this problem.  A patch is 
included below.

>
>The second problem has to do with tags.  Even though the current directory
>has a valid tags file and the function that I specify is listed in this
>tags file, vi tells me the requested tag is not found.  Seems to not
>work at all.  (I've never had it find a tag).

This was due to a missing command: "ref" used to search the tags files
for the requested tag.  This, to, was in my other distribution of elvis
but apparently not in the 386bsd distribution.  Building and installing
this has fixed the tags problem.


*** /tmp/,RCSt1000970	Tue Aug 11 19:40:58 1992
--- tmp.c	Tue Aug 11 19:10:13 1992
***************
*** 594,602 ****
  	blkinit();
  	nlines = 0;
  	initflags();
- 	close(tmpfd);
- 	tmpfd = -1;
- 	unlink(tmpname);
  	return TRUE;
  }
  
--- 594,599 ----
-- 
Bob Willcox           ...!{rutgers|ames}!cs.utexas.edu!uudell!rancor!obiwan!bob
Phone: 512 258-4224 (home)
       512 838-3914 (work)