Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

revert-buffer on symbolic link that is replaced with a copy of the file

14 views
Skip to first unread message

marmar...@gmail.com

unread,
Nov 28, 2012, 12:47:54 PM11/28/12
to
I'm trying to add some hooks to work within a revision control system that has checked-in files symbolically linked with read-only files. When I check-out the file, the revision control system replaced the link with a copy of the file. I created my own copy of toggle-read-only so that when I change the status of the file, it checks out the file. I tried using revert-buffer to then have xemacs reload the now writable file, but when I try to save the buffer I get a message that the buffer has been modified with reference back to the cache file:

"<link-source-file> changed on disk; really edit the buffer? (y, n, r, or C-h)"

I can get things to work properly if use find-alternate-file instead of revert-buffer, but I'd really like to use revert-buffer since it returns me to where I was in the linked/read-only file.

I don't know enough about how xemacs internally works and establishes a file as modified or not, or how to tell it not to track the source-link file, since the file has changed. Any suggestions to tell xemacs to revert the file after its been swapped out from a link to file?

Thanks,

Mark
0 new messages