sam-fans - fans of the sam editor
 help / color / mirror / Atom feed
From: "ozan s. yigit" <oz@nexus.yorku.ca>
To: sam-fans@hawkwind.utcs.toronto.edu
Date: Sat, 3 Aug 1996 02:40:00 -0400	[thread overview]
Message-ID: <199608030640.CAA11455@nexus.yorku.ca> (raw)


> there are several other bug patches for sam in
> the boddle package available by anonymous
> ftp at plan9.att.com in plan9/update/cmd/sam/829146783.rc.

here is a version that patch understands, so somewhat easier
to extract and apply:

*** cmd.c.orig	Sat Aug  3 02:08:53 1996
--- cmd.c	Sat Aug  3 02:09:23 1996
***************
*** 220,223 ****
--- 220,226 ----
  		    (ocurfile!=curfile || (!loaded && curfile->state!=Unread)))
  			outTs(Hcurrent, curfile->tag);
+ 			/* don't allow type ahead on files that aren't bound */
+ 		if(downloaded && curfile && curfile->rasp == 0)
+ 			terminp = termoutp;
  	}
  }
*** mesg.c.orig	Sat Aug  3 02:08:52 1996
--- mesg.c	Sat Aug  3 02:09:23 1996
***************
*** 257,260 ****
--- 257,261 ----
  
  	case Tstartfile:
+ 		termlocked++;
  		f = whichfile(inshort());
  		if(!f->rasp)	/* this might be a duplicate message */
***************
*** 264,268 ****
  		outTs(Hcurrent, f->tag);
  		journaln(0, f->tag);
- 		termlocked++;
  		if(f->state == Unread)
  			load(f);
--- 265,268 ----
***************
*** 447,454 ****
  		c = 0;
  		i = 0;
! 		rp = malloc((snarfbuf->nrunes)*sizeof(Rune));
  		if(rp){
! 			Bread(snarfbuf, rp, snarfbuf->nrunes, 0);
! 			c = Strtoc(tmprstr(rp, snarfbuf->nrunes));
  			free(rp);
  			i = strlen(c);
--- 447,459 ----
  		c = 0;
  		i = 0;
! 		m = snarfbuf->nrunes;
! 		if(m > 32000) {		/* tmprstr stores len in a short */
! 			m = 32000;
! 			dprint("?warning: snarf buffer truncated\n");
! 		}
! 		rp = malloc(m*sizeof(Rune));
  		if(rp){
! 			Bread(snarfbuf, rp, m, 0);
! 			c = Strtoc(tmprstr(rp, m));
  			free(rp);
  			i = strlen(c);
*** sam.c.orig	Sat Aug  3 02:08:50 1996
--- sam.c	Sat Aug  3 02:09:24 1996
***************
*** 304,309 ****
  		if(f==cmd)	/* cmd gets done in main() */
  			continue;
! 		if(f->deleted)
  			delete(f);
  		if(f->mod==modnum && Fupdate(f, FALSE, downloaded))
  			anymod++;
--- 304,311 ----
  		if(f==cmd)	/* cmd gets done in main() */
  			continue;
! 		if(f->deleted) {
  			delete(f);
+ 			continue;
+ 		}
  		if(f->mod==modnum && Fupdate(f, FALSE, downloaded))
  			anymod++;
*** xec.c.orig	Sat Aug  3 02:08:50 1996
--- xec.c	Sat Aug  3 02:09:24 1996
***************
*** 28,36 ****
  		load(f);
  	if(f==0 && (cp->addr==0 || cp->addr->type!='"') &&
! 	    !utfrune("bBnqUXY!{", cp->cmdc) &&
  	    cp->cmdc!=('c'|0x100) && !(cp->cmdc=='D' && cp->ctext))
  		error(Enofile);
  	i = lookup(cp->cmdc);
! 	if(cmdtab[i].defaddr != aNo){
  		if((ap=cp->addr)==0 && cp->cmdc!='\n'){
  			cp->addr = ap = newaddr();
--- 28,36 ----
  		load(f);
  	if(f==0 && (cp->addr==0 || cp->addr->type!='"') &&
! 	    !utfrune("bBnqUXY!", cp->cmdc) &&
  	    cp->cmdc!=('c'|0x100) && !(cp->cmdc=='D' && cp->ctext))
  		error(Enofile);
  	i = lookup(cp->cmdc);
! 	if(i >= 0 && cmdtab[i].defaddr != aNo){
  		if((ap=cp->addr)==0 && cp->cmdc!='\n'){
  			cp->addr = ap = newaddr();


             reply	other threads:[~1996-08-03  6:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-03  6:40 ozan s. yigit [this message]
1996-08-07 10:31 ` changes to sam Arnold D. Robbins
1996-08-07 16:44   ` Alistair G. Crooks
1996-08-12  2:53     ` Arnold D. Robbins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199608030640.CAA11455@nexus.yorku.ca \
    --to=oz@nexus.yorku.ca \
    --cc=sam-fans@hawkwind.utcs.toronto.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).