[Top][All Lists]

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

bug#22795: 25.0.91; Can't write read only file on w32

From: Eli Zaretskii
Subject: bug#22795: 25.0.91; Can't write read only file on w32
Date: Mon, 29 Feb 2016 22:06:39 +0200

> Date: Mon, 29 Feb 2016 11:28:15 -0800
> CC: <address@hidden>
> From: "Ota, Takaaki" <address@hidden>
> emacs-24.5 never called sys_rename().

??? It does here.  The call is in backup-buffer: it calls rename-file.

Are you trying this in "emacs -Q"?  If not, perhaps you have some
customizations, like backup-by-copying or
backup-by-copying-when-mismatch etc.?

> emacs-25.0.91 calls sys_rename() but strangely old name and the new
> name are the same.  See below.
> -Tak
> Breakpoint 1, sys_rename (old=0x880c9b8 "c:/d/ota/memo", 
>     new=0x880c9b8 "c:/d/ota/memo") at w32.c:4543
> 4543    {
> (gdb) n
> 4544      return sys_rename_replace (old, new, TRUE);
> (gdb) s
> sys_rename_replace (address@hidden "c:/d/ota/memo", 
>     address@hidden "c:/d/ota/memo", address@hidden)
>     at w32.c:4404

Again, is this in "emacs -Q"?  The backup file name is generated by
the function find-backup-file-name, you will find it in files.el.  It
is called by backup-buffer.  Please see what file names it produces in
this case.

reply via email to

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