jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

RE: reloading the buffer after commit in svn.sl (patched cvs.sl)


> 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 ?

I have the following in my ~/.jedrc:

% reload if the disk file is newer as buffer
define reload ()
{
    variable file, dir, flags;
    (file,dir,,flags) = getbuf_info();
    file = dircat (dir, file);
    if (flags & 4) {
	buffer_keystring ("yes\r");	% yes = reload
	() = find_file (file);
    }
}
setkey("reload",	"^X^R");


It might be useful for you.

/mark

This e-mail message and any attachments may contain legally privileged, confidential or proprietary Information, or information otherwise protected by law of ArvinMeritor, Inc., its affiliates, or third parties. This notice serves as marking of its ?Confidential? status as defined in any confidentiality agreements concerning the sender and recipient. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer.



--------------------------
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]