- Subject: Re: reloading the buffer after commit in svn.sl (patched cvs.sl)
- From: Morten Bo Johansen <mbj@xxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 20:05:10 +0100
Joachim Schmitz <js@xxxxxxxxxxxxx> wrote:
> the patched cvs.sl does not reload the committed file into the buffer.
> Since the commit changes the $Id $ lines, I always get the file changed
> on disk message. Could someone show me the right way to solve this ?
Not sure if it is the best way, but I use this in my single-user
version of rcs.sl:
...
variable file, dir, buf_file, flags;
(file, dir,,) = getbuf_info ();
buf_file = dircat (dir, file);
...
if (buffer_modified) save_buffer ();
check_buffers (); % check if file associated w/buffer has changed on disk
(,,,flags) = getbuf_info ();
if (flags & 0x004)
{
delbuf (whatbuf ());
() = find_file (buf_file);
}
Morten
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]