From: Chris Siebenmann <cks>
To: Sam Fans <sam-fans>
Subject: Re: quit with modified files
Date: Tue, 25 May 1993 19:07:35 -0400 [thread overview]
Message-ID: <93May25.190741edt.2688@hawkwind.utcs.toronto.edu> (raw)
In-Reply-To: schwartz's message of Mon, 24 May 93 14:48:36 -0400. <93May24.144733edt.2580@groucho.cs.psu.edu>
It's a bug. It happens if you call in a clean file and immediately
try to quit; edit() in sam/sam.c doesn't set the global dirty file state
quite right. I've attached a patch.
- cks
*** /tmp/,RCSt1a04954 Tue May 25 19:05:06 1993
--- sam/sam.c Tue May 25 18:47:16 1993
***************
*** 331,337 ****
f->ndot.r.p1 = addr.r.p2, f->ndot.r.p2 = addr.r.p2+p;
else
f->ndot.r.p1 = f->ndot.r.p2 = 0;
! quitok = f->closeok = empty;
state(f, empty && !nulls? Clean : Dirty);
if(cmd == 'e')
filename(f);
--- 331,337 ----
f->ndot.r.p1 = addr.r.p2, f->ndot.r.p2 = addr.r.p2+p;
else
f->ndot.r.p1 = f->ndot.r.p2 = 0;
! quitok = quitok ? (f->closeok = empty) : FALSE;
state(f, empty && !nulls? Clean : Dirty);
if(cmd == 'e')
filename(f);
next prev parent reply other threads:[~1993-05-25 23:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-05-24 18:48 Scott Schwartz
1993-05-25 23:07 ` Chris Siebenmann [this message]
1993-05-27 0:21 ` Scott Schwartz
1993-05-26 4:30 Chris Siebenmann
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=93May25.190741edt.2688@hawkwind.utcs.toronto.edu \
--to=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).