unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70415: 30.0.50; [Cygwin] `lock-file' creates a symlink with funny name
@ 2024-04-16 12:33 Katsumi Yamaoka
  2024-04-16 13:32 ` Eli Zaretskii
  0 siblings, 1 reply; 29+ messages in thread
From: Katsumi Yamaoka @ 2024-04-16 12:33 UTC (permalink / raw)
  To: 70415

Hi,

As you know, Emacs creates a lock file when start editing a FILE
by default, it is a symbolic link that is linked to a name
looking like this:

.#FILE -> username@hostname.1234

Where 1234 is Emacs' pid.  It will be removed after saving
the FILE.  Even if the lock file is left, Emacs will remove it
when opening the FILE for the next time.  However, recently lock
files no longer got deleted on at least the latest Cygwin on
Windows 11.  It is (probably) because Emacs came to create lock
files with a funny name like this:

.#FILE -> username@hostname.1234:-11644473599

For that case `(unlock-file "FILE")' issues this warning:

Warning (unlock-file): Unlocking file: Invalid argument, FILE, ignored

I don't know what ":-11644473599" is, but I did the bisection
and found that it started with this change:

,----
| commit 393f58c85aeb78f814866ccaad9ae7efd3fa6766
| Author: Adam Porter <adam@alphapapa.net>
| Date:   Fri Mar 8 23:43:14 2024 -0600
|
|     'vtable-update-object' can now be called with one argument
|
|     It's often necessary to update the representation of a single
|     object in a table (e.g a struct, whose identity does not change
|     when its slots'
|     values are changed).  To do so, now the function may be called
|     like this:
|
|       (vtable-update-object table object)
|
|     Instead of like this:
|
|       (vtable-update-object table object object)
|
|     This also documents the behavior of the just-discovered limitation filed
|     as bug#69837.
|     * lisp/emacs-lisp/vtable.el (vtable-update-object): Make 'old-object'
|     argument optional.  (Bug#69666)
|
|     * doc/misc/vtable.texi (Interface Functions): Update documentation.
|
|     * etc/NEWS: Add news entry.
|
| commit 689f04a2ddfae856153bed762cc1461d66ec88de
| [...]
`----

Though it doesn't seem helpful since `git diff 689f04a..393f58c'
reports a huge amount of diff.  Hmm.

Thanks in advance.
Regards,


In GNU Emacs 30.0.50 (build 1, x86_64-pc-cygwin, GTK+ Version
 3.24.41, cairo version 1.17.4) of 2024-04-15 built on localhost
Windowing system distributor 'The Cygwin/X Project', version 11.0.12101012





^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2024-05-07  0:07 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-16 12:33 bug#70415: 30.0.50; [Cygwin] `lock-file' creates a symlink with funny name Katsumi Yamaoka
2024-04-16 13:32 ` Eli Zaretskii
2024-04-16 18:01   ` Pierre Téchoueyres
2024-04-16 22:57   ` Ken Brown
2024-04-17 12:08     ` Eli Zaretskii
2024-04-16 23:58   ` Katsumi Yamaoka
2024-04-17 12:21     ` Eli Zaretskii
2024-04-22 16:15       ` Ken Brown
2024-04-29 23:05         ` Ken Brown
2024-04-30  2:34           ` Eli Zaretskii
2024-04-30  6:45             ` Katsumi Yamaoka
2024-04-30 15:23             ` Ken Brown
2024-04-30 16:20               ` Eli Zaretskii
2024-05-01 21:20                 ` Ken Brown
2024-05-02  6:21                   ` Eli Zaretskii
2024-05-02 14:26                     ` Ken Brown
2024-05-04 17:15                       ` Ken Brown
2024-05-04 17:25                         ` Eli Zaretskii
2024-05-04 17:46                           ` Ken Brown
2024-05-04 22:01                             ` Ken Brown
2024-05-05  5:40                               ` Eli Zaretskii
2024-05-05 16:21                                 ` Ken Brown
2024-05-05 16:32                                   ` Eli Zaretskii
2024-05-05 17:02                                     ` Ken Brown
2024-05-05 18:00                                       ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-07  0:07                                       ` Katsumi Yamaoka
2024-05-04 17:30                         ` Ken Brown
2024-05-04 17:37                           ` Eli Zaretskii
2024-05-04 18:46                             ` Ken Brown

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).