unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Emacs Development <Emacs-devel@gnu.org>
Subject: Re: Improve reporting of I/O, access errors for Emacs
Date: Mon, 16 Sep 2019 12:07:09 +0100	[thread overview]
Message-ID: <CAPM58oj4hBnzcZWd4tpLQ5KRzgSV=n_PCT+Db=tMDSpes5gH+Q@mail.gmail.com> (raw)
In-Reply-To: <ffc7396d-0a95-6a36-6591-3b200458cac5@cs.ucla.edu>

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

On Thu, 12 Sep 2019 at 09:23, Paul Eggert <eggert@cs.ucla.edu> wrote:

>
> A half-dozen or so of the issues I found had simpler fixes, which I've
> already
> installed into master.
>

Hi Paul,

At the end of init_callproc in callproc.c, we check that PATH_GAME is
file_accessible_directory_p. On Windows, PATH_GAME begins with a literal
'%emacs_dir%', so this never works, but sets errno to ERROR_ACCESS_DENIED.
Therefore, on every invocation of Emacs, I get this warning:

  Warning: game dir '%emacs_dir%/var/games/emacs': Permission denied

Passing PATH_GAME through w32_relocate first makes it try the correct
filename (in my environment that's "c:\projects\emacs/var/games/emacs"
uninstalled or "c:\msys64\mingw64/var/games/emacs" installed). Those
directories don't exist and this still sets errno to ERROR_ACCESS_DENIED on
Windows. Whether or not the relocation bug gets fixed, you should probably
silently ignore ERROR_ACCESS_DENIED (treat it as ENOENT) there, on Windows.
(In my local copy of the repo, I've just replaced that whole block with
"Vshared_game_score_directory = Qnil", since that's what I'll end up with,
whatever happens.)

[-- Attachment #2: Type: text/html, Size: 1613 bytes --]

  parent reply	other threads:[~2019-09-16 11:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-12  8:22 Improve reporting of I/O, access errors for Emacs Paul Eggert
2019-09-12 18:04 ` Eli Zaretskii
2019-09-12 18:27   ` Paul Eggert
2019-09-12 19:34     ` Eli Zaretskii
2019-09-12 20:32       ` Paul Eggert
2019-09-13  7:37         ` Eli Zaretskii
2019-09-18  2:25           ` Paul Eggert
2019-09-18  9:50             ` Richard Copley
2019-09-16 11:07 ` Richard Copley [this message]
2019-09-16 14:53   ` Eli Zaretskii
2019-09-16 18:11     ` Richard Copley

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='CAPM58oj4hBnzcZWd4tpLQ5KRzgSV=n_PCT+Db=tMDSpes5gH+Q@mail.gmail.com' \
    --to=rcopley@gmail.com \
    --cc=Emacs-devel@gnu.org \
    --cc=eggert@cs.ucla.edu \
    /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 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).