From 6def36f2160b0333343b0fb316b36c159e1e9c72 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 20 Dec 2021 10:29:50 +0100 Subject: Use the new `permission-denied' error to catch multisession errors * lisp/emacs-lisp/multisession.el (multisession--read-file-value): Use the new `permission-denied' error to catch file errors on Windows. --- lisp/emacs-lisp/multisession.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/multisession.el b/lisp/emacs-lisp/multisession.el index 6ef0da10f77..4bd7886d35e 100644 --- a/lisp/emacs-lisp/multisession.el +++ b/lisp/emacs-lisp/multisession.el @@ -269,7 +269,7 @@ DOC should be a doc string, and ARGS are keywords as applicable to ;; Windows uses OS-level file locking that may preclude ;; reading the file in some circumstances. So when that ;; happens, wait a bit and try again. - (file-error + (permission-denied (setq i (1+ i) last-error err) (sleep-for (+ 0.1 (/ (float (random 10)) 10)))))) -- cgit v1.2.3