bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23033: 24.5; Lock file uses the same extension as the file it's lock


From: Eli Zaretskii
Subject: bug#23033: 24.5; Lock file uses the same extension as the file it's locking
Date: Thu, 14 Nov 2019 11:17:46 +0200

> From: Michael Sloan <mgsloan@gmail.com>
> Date: Sat, 9 Nov 2019 16:37:45 -0700
> Cc: Stefan Kangas <stefan@marxist.se>, Glenn Morris <rgm@gnu.org>, 
> 23033@debbugs.gnu.org
> 
> Since sort order is lexicographic, lock files with ".lock" appended will 
> still typically be next to the files when
> listed.

The sort order is not exactly lexicographic, because it ignores some
characters when comparing strings.

> It is not the case that the current lock file names are always listed next to 
> the files they are clocking:
> 
> mgsloan@treetop:~/test$ ls -la                                                
>                                                        
> total 8                                                                       
>                                                        
> drwxrwxr-x  2 mgsloan mgsloan 4096 Nov  9 16:36  .                            
>                                                        
> drwxr-xr-x 57 mgsloan mgsloan 4096 Nov  9 16:35  ..
> -rw-rw-r--  1 mgsloan mgsloan    0 Nov  9 16:36  .#test.md
> -rw-rw-r--  1 mgsloan mgsloan    0 Nov  9 16:36 '#.test.md'
> -rw-rw-r--  1 mgsloan mgsloan    0 Nov  9 16:35  test.md

I agree that it is easy to cook an example where this doesn't happen,
but usually it does.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]