X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Message-ID: <4A159713.50303@cornell.edu> Date: Thu, 21 May 2009 14:01:55 -0400 From: Ken Brown User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: .#* lock files under X, for files I edit??? References: <23655794 DOT post AT talk DOT nabble DOT com> <4A157FF5 DOT 6030407 AT cornell DOT edu> <23656848 DOT post AT talk DOT nabble DOT com> In-Reply-To: <23656848.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 5/21/2009 1:04 PM, Marc Girod wrote: > Ken Brown-6 wrote: >> They should disappear each >> time you save the file you're editing. >> > Well, they don't. > The content was slightly blurred, because of my using html format > and forgetting to escape <> characters. As well as a couple of tags. I'm puzzled as I look at your first post again, because emacs file locks are symbolic links. Your post shows that the files are ordinary files containing the string ''. This suggests that you're working in an environment that doesn't recognize cygwin symlinks. Could that somehow explain why they aren't being deleted when you save the file? According to the emacs documentation: > When you make the first modification in an Emacs buffer that is > visiting a file, Emacs records that the file is "locked" by you. (It > does this by creating a specially-named symbolic link in the same > directory.) Emacs removes the lock when you save the changes. Here's an example of an emacs file lock on my system, while I'm editing 'diary': lrwxrwxrwx 1 kbrown None 18 May 21 13:15 .#diary -> kbrown AT markov DOT 5828 5828 is the PID of my emacs process. As soon as I save the file, the symbolic link disappears. Ken -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/