unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs cannot write file in a Virtual Box shared folder
Date: Tue, 22 Oct 2019 17:43:32 +0300	[thread overview]
Message-ID: <83blu8263v.fsf@gnu.org> (raw)
In-Reply-To: <8736fmfo77.fsf@pobox.com> (message from Bernardo on Mon, 21 Oct 2019 20:22:04 +1100)

> From: Bernardo <bernardo.bacic@pobox.com>
> Date: Mon, 21 Oct 2019 20:22:04 +1100
> 
> The version of Emacs that's built from Git repos cannot write
> file. Also by default it opens the file in read-only mode.
>   GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2019-10-21
> 
> Debugger entered--Lisp error: (file-error "Unlocking file" "Operation not permitted" "/media/sf_Home/zz_stuff")
>   write-region(nil nil "/media/sf_Home/zz_stuff" nil t "/media/sf_Home/zz_stuff")
>   basic-save-buffer-2()
>   basic-save-buffer-1()
>   basic-save-buffer(t)
>   save-buffer(1)
>   funcall-interactively(save-buffer 1)
>   call-interactively(save-buffer nil nil)
>   command-execute(save-buffer)
> 
> Other editors (GNU nano) within the VM read/write the same files correctly.
> Sounds like a bug?

Could be, it's hard to say.

Suggest to report this using report-emacs-bug, and if you can, include
strace information that shows which file operation involved in this
fails.  My guess is that Virtual Box has problems supporting symlinks
or something, but that's just a guess.



      parent reply	other threads:[~2019-10-22 14:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21  9:22 Emacs cannot write file in a Virtual Box shared folder Bernardo
2019-10-22 14:35 ` Robert Pluim
2019-10-23 10:07   ` Bernardo
2019-10-22 14:43 ` Eli Zaretskii [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83blu8263v.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.
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).