X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: .#* lock files under X, for files I edit??? Date: Thu, 21 May 2009 13:16:50 -0500 Message-ID: <297343D29C14AA4D822142893ABEAEF3066E8A21@srv1163ex1.flightsafety.com> In-Reply-To: <4A159713.50303@cornell.edu> 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> <4A159713 DOT 50303 AT cornell DOT edu> From: "Thrall, Bryan" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Ken Brown wrote on Thursday, May 21, 2009 1:02 PM: > 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. >>>=20 >> 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. >=20 > 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? It's likely that those files *ARE* symlinks; under Cygwin 1.7, symlinks are implemented as normal files (rather than Windows shortcuts) with a particular magic number. I'm not sure what Marc was doing with his original 'cat .# ... | tr' command, but I'm guessing it is removing the magic number so 'od -c' will print out the contents. > According to the emacs documentation: >=20 >> 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. >=20 > Here's an example of an emacs file lock on my system, while I'm editing > 'diary': >=20 > lrwxrwxrwx 1 kbrown None 18 May 21 13:15 .#diary -> > kbrown AT markov DOT 5828 >=20 > 5828 is the PID of my emacs process. As soon as I save the file, the > symbolic link disappears. >=20 > Ken --=20 Bryan Thrall FlightSafety International bryan DOT thrall AT flightsafety DOT com -- 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/