From: "Ota, Takaaki" <Takaaki.Ota@am.sony.com>
To: <eliz@gnu.org>
Cc: 22795@debbugs.gnu.org
Subject: bug#22795: 25.0.91; Can't write read only file on w32
Date: Mon, 29 Feb 2016 13:34:36 -0800 [thread overview]
Message-ID: <20160229.133436.92017905.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <83a8mj8enk.fsf@gnu.org>
Mon, 29 Feb 2016 22:06:39 +0200: Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Mon, 29 Feb 2016 11:28:15 -0800
> > CC: <22795@debbugs.gnu.org>
> > From: "Ota, Takaaki" <Takaaki.Ota@am.sony.com>
> >
> > 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 (oldname=oldname@entry=0x880c9b8 "c:/d/ota/memo",
> > newname=newname@entry=0x880c9b8 "c:/d/ota/memo", force=force@entry=1)
> > 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.
>
I just tried again with "run -Q" from gdb and the result is the same.
24.5 never called sys_rename() and 25.0.91 called sys_rename() with
two same names.
-Tak
next prev parent reply other threads:[~2016-02-29 21:34 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 16:44 bug#22795: 25.0.91; Can't write read only file on w32 Ota, Takaaki
2016-02-24 19:09 ` Eli Zaretskii
2016-02-24 21:57 ` Ota, Takaaki
2016-02-25 16:47 ` Eli Zaretskii
2016-02-25 17:08 ` Ota, Takaaki
2016-02-25 17:12 ` Ota, Takaaki
2016-02-25 18:09 ` Eli Zaretskii
2016-02-25 18:15 ` Ota, Takaaki
2016-02-26 19:26 ` Ota, Takaaki
2016-02-26 21:53 ` Eli Zaretskii
2016-02-29 16:40 ` Ota, Takaaki
2016-02-29 17:13 ` Eli Zaretskii
2016-02-29 17:39 ` Ota, Takaaki
2016-02-29 17:53 ` Ota, Takaaki
2016-02-29 18:05 ` Ota, Takaaki
2016-02-29 18:48 ` Eli Zaretskii
2016-02-29 19:28 ` Ota, Takaaki
2016-02-29 20:06 ` Eli Zaretskii
2016-02-29 21:34 ` Ota, Takaaki [this message]
2016-03-01 16:27 ` Eli Zaretskii
2016-05-14 9:17 ` Eli Zaretskii
2016-05-19 18:47 ` Ota, Takaaki
2016-05-19 19:47 ` Eli Zaretskii
2016-05-25 16:55 ` Eli Zaretskii
2016-06-01 17:22 ` Ota, Takaaki
2016-06-04 9:01 ` Eli Zaretskii
2016-06-06 16:24 ` Ota, Takaaki
2016-06-06 19:10 ` Eli Zaretskii
2016-06-06 20:46 ` Ota, Takaaki
2016-06-07 2:42 ` Eli Zaretskii
2016-06-07 23:02 ` Ota, Takaaki
2016-06-08 17:07 ` Eli Zaretskii
2016-12-07 21:08 ` Glenn Morris
2016-02-29 18:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160229.133436.92017905.Takaaki.Ota@am.sony.com \
--to=takaaki.ota@am.sony.com \
--cc=22795@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.