]> git.eshelyaron.com Git - emacs.git/commit
New error symbol 'permission-denied'
authorEli Zaretskii <eliz@gnu.org>
Sun, 19 Dec 2021 15:29:40 +0000 (17:29 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 19 Dec 2021 15:29:40 +0000 (17:29 +0200)
commitcc63704815ee4ae686a0cf86e12f7f2596dd22a3
treef0d6215f0f35bf3538ec3601e49bc54f0d91f0fa
parent8f82a83caec9ad48a6d4abc4dc26bed67f0e89e3
New error symbol 'permission-denied'

* src/fileio.c (syms_of_fileio) <permission-denied>: Define the
symbol and its 'err-conditions' and 'error-message' properties.
(get_file_errno_data): Return permission-denied on EACCES.

* test/src/filelock-tests.el (filelock-tests-file-locked-p-spoiled)
(filelock-tests-unlock-spoiled)
(filelock-tests-kill-buffer-spoiled): Adapt the tests to the new
error symbol.

* doc/lispref/errors.texi (Standard Errors):
* etc/NEWS: Document 'permission-denied' error.
doc/lispref/errors.texi
etc/NEWS
src/fileio.c
test/src/filelock-tests.el