aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2021-11-12 07:17:11 +0100
committerStefan Kangas2021-11-12 07:17:11 +0100
commitfc00fe53e189df04e6325e4f19edcb0c8612600f (patch)
tree28c881b7067e630b820299b027846c428a4b0c8d
parent070d6297ca468b197744c94df0c17fb09f47f67a (diff)
parenta6905e90cc3358a21726646c4ee9154e80fc96d6 (diff)
downloademacs-fc00fe53e189df04e6325e4f19edcb0c8612600f.tar.gz
emacs-fc00fe53e189df04e6325e4f19edcb0c8612600f.zip
Merge from origin/emacs-28
a6905e90cc Fix problem with temp buffer killing in package-install-file 144ad77fda Fix Lisp Intro markup error 24b86cb4f7 Fix ACL errors with WebDAV volumes on MS-Windows
-rw-r--r--doc/lispintro/emacs-lisp-intro.texi2
-rw-r--r--lisp/emacs-lisp/package.el1
-rw-r--r--src/w32.c12
3 files changed, 9 insertions, 6 deletions
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index f5f79a543cb..6ddc3bfb5c2 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -5818,7 +5818,7 @@ written like this:
5818@subsection The @code{let} Expression in @code{insert-buffer} 5818@subsection The @code{let} Expression in @code{insert-buffer}
5819 5819
5820After ensuring that the variable @code{buffer} refers to a buffer itself 5820After ensuring that the variable @code{buffer} refers to a buffer itself
5821and not just to the name of a buffer, the @code{insert-buffer function} 5821and not just to the name of a buffer, the @code{insert-buffer} function
5822continues with a @code{let} expression. This specifies three local 5822continues with a @code{let} expression. This specifies three local
5823variables, @code{start}, @code{end}, and @code{newmark} and binds them 5823variables, @code{start}, @code{end}, and @code{newmark} and binds them
5824to the initial value @code{nil}. These variables are used inside the 5824to the initial value @code{nil}. These variables are used inside the
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 27eaa484f9a..08dfe504d27 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2202,6 +2202,7 @@ directory."
2202 (dired-mode)) 2202 (dired-mode))
2203 (insert-file-contents-literally file) 2203 (insert-file-contents-literally file)
2204 (set-visited-file-name file) 2204 (set-visited-file-name file)
2205 (set-buffer-modified-p nil)
2205 (when (string-match "\\.tar\\'" file) (tar-mode))) 2206 (when (string-match "\\.tar\\'" file) (tar-mode)))
2206 (package-install-from-buffer))) 2207 (package-install-from-buffer)))
2207 2208
diff --git a/src/w32.c b/src/w32.c
index e4b7ef3b95d..2b2f8aadf6b 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -6548,7 +6548,8 @@ acl_get_file (const char *fname, acl_type_t type)
6548 xfree (psd); 6548 xfree (psd);
6549 err = GetLastError (); 6549 err = GetLastError ();
6550 if (err == ERROR_NOT_SUPPORTED 6550 if (err == ERROR_NOT_SUPPORTED
6551 || err == ERROR_ACCESS_DENIED) 6551 || err == ERROR_ACCESS_DENIED
6552 || err == ERROR_INVALID_FUNCTION)
6552 errno = ENOTSUP; 6553 errno = ENOTSUP;
6553 else if (err == ERROR_FILE_NOT_FOUND 6554 else if (err == ERROR_FILE_NOT_FOUND
6554 || err == ERROR_PATH_NOT_FOUND 6555 || err == ERROR_PATH_NOT_FOUND
@@ -6567,10 +6568,11 @@ acl_get_file (const char *fname, acl_type_t type)
6567 || err == ERROR_INVALID_NAME) 6568 || err == ERROR_INVALID_NAME)
6568 errno = ENOENT; 6569 errno = ENOENT;
6569 else if (err == ERROR_NOT_SUPPORTED 6570 else if (err == ERROR_NOT_SUPPORTED
6570 /* ERROR_ACCESS_DENIED is what we get for a volume 6571 /* ERROR_ACCESS_DENIED or ERROR_INVALID_FUNCTION is
6571 mounted by WebDAV, which evidently doesn't 6572 what we get for a volume mounted by WebDAV,
6572 support ACLs. */ 6573 which evidently doesn't support ACLs. */
6573 || err == ERROR_ACCESS_DENIED) 6574 || err == ERROR_ACCESS_DENIED
6575 || err == ERROR_INVALID_FUNCTION)
6574 errno = ENOTSUP; 6576 errno = ENOTSUP;
6575 else 6577 else
6576 errno = EIO; 6578 errno = EIO;