The following message is a courtesy copy of an article
that has been posted to comp.emacs.xemacs as well.
>>>> "Jonathan" == Jonathan Albrecht
<albrecht(a)algorithmics.com> writes:
Jonathan> Sorry, I don't see how this could be a cvs interation. I
Jonathan> am not using cvs. The .# files are created by xemacs
Jonathan> 21.4.3 when I make changes in a buffer corresponding to
Jonathan> a visited file. Here is the description of the behaviour
Jonathan> I see:
Jonathan> If I am editing a file on a NT filesystem the .# file
Jonathan> only exists while the buffer for the file has unsaved
Jonathan> changes. On NT, as soon as I save the file, the
Jonathan> corresponding .# file is deleted. If the file being
Jonathan> edited is on a samba filesystem, the .#file is not
Jonathan> deleted.
Jonathan> It seems to me that the .# file is just there to show
Jonathan> that the buffer and its corresponding file are out of
Jonathan> sync. I see that the .# filename format is the same
Jonathan> format as for files in which merge collisions have
Jonathan> occured in cvs, but I think that is just a coincidence
Jonathan> in this case. Unless PCL-CVS is doing something wacky to
Jonathan> every file being edited.
Hi Jonathan,
what do you use PCL-CVS for, when you are not using cvs?
Anyway, I think Eli is right. These are probably interlocking files.
See:
http://cvs.xemacs.org/cgi-bin/cvswebxe/xemacs/src/filelock.c?rev=1.11
I don't have file-locking in my native Windows 2000 XEmacs.
All I can suggest is this:
(setq inhibit-clash-detection nil)
Hope this helps,
Adrian
Jonathan> Thanks,
Jonathan> Jon
Jonathan> Adrian Aichner wrote:
>>
>>>> "Jonathan" ==
Jonathan Albrecht <albrecht(a)algorithmics.com> writes:
>>>>>>>
Jonathan> I just tried XEmacs 21.1.13 and it does not create the
Jonathan> .# files. Anyone know what they are for?
> For an answer to your question see the CVS manuals.
> If you have cvs Info files installed following sexp should beam
you
> there:
> (Info-goto-node "(cvs)update output")
> Best regards,
> Adrian
Jonathan> Jon
Jonathan> Jonathan Albrecht wrote:
> >> No the .# files do not go away when I exit XEmacs. If I
am
> >> editing a
> >> file on a NT filesystem the .# file only exists while
the buffer for
> >> the file has unsaved changes. On NT, as soon as I save the file, the
> >> corresponding .# file is deleted. If the file being edited is on a
> >> samba filesystem, the .#file is not deleted. I don't know if this is
> >> an XEmacs or cygwin problem.
> >> Jon
> >> David Masterson wrote:
> >> >>> IIRC, the '.#' files don't
have anything to do with
> >> >>> CVS (or the Emacs
> >>> interface to CVS) -- I believe its created by
auto-save-mode, but I
> >>> could be wrong (auto-save files are '#file#'?). This facility
is
> >>> (mostly?) built-in, so it wouldn't show up in the .el files (unless
> >>> you really know what you're looking for). Also, although I said
the
> >>> '!<symlink>' is a Cygwin symlink, I'm not sure what
it's a symlink to.
> >>> >>> Does the .# file go away when you exit Emacs? If
> >>> >>> so, don't worry
> >>> about it -- Emacs is handling it.
> >>> >>> What I haven't figured out is how to handle the
> >>> >>> '.saves-*' files that
> >>> (X)Emacs generates on all platforms I use it on.
They don't seem to
> >>> go away unless I specifically delete them.
> >>> >>> >>>>>>>> Jonathan Albrecht
writes:
> >>>>>>>> >>>
>>>> Thanks for the info. So it seems that
> >>>>>>>> >>> >>>> xemacs is
trying to make a
> >>>> symlink of the form:
> >>>> >>> >>>> .#filename
> >>>> >>> >>>> to the
file:
> >>>> >>> >>>> filename
> >>>> >>> >>>> for some
reason. I've been grepping
> >>>> >>> >>>> through the .el files for .#
but
> >>>> the only thing I've found is some cvs
related stuff. I'm not using
> >>>> cvs. Does anyone know what else .# prefixed files are used for? I
> >>>> don't think it's auto-save, those filenames are of the form
#filename#
> >>>> I believe. I'll look into it some more though.
> >>>> >>> >>>> Jon
> >>>> >>> >>>> David
Masterson wrote:
> >>>> >>>
>>>>>>>>>> Jonathan Albrecht writes:
> >>>>>>>>>>
>>>>>>>>>>
>>>>>> I am using Xemacs 21.4.3 on cygwin. I am
finding that when I edit file
>>>>>> there is another file generated with the same filename but
prefixed
>>>>>> with '.#'. The contents of the file are:
>>>>>>
> >>>>>> >>>>>>
>>>>>>
!<symlink>albrecht(a)toralbrecht.myhost.com.328^@
>>>>>>
> >>>>>> >>>>>>
>>>>>> anyone know what is generating these files?
>>>>>>
> >>>>>> >>>>>> >>>>> Not
off-hand. The ".#" files are
> >>>>>> >>>>>> >>>>>
temporary Emacs (autosave?) files
> >>>>> for the file you're currently editing
and should go away when you save
> >>>>> the file. The "!<symlink>" file is a symbolic
link in Cygwin.
> >>>>> >>>>> >>> >>>
>>
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/