diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-12-20 10:29:50 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-12-21 05:23:11 +0100 |
commit | 6def36f2160b0333343b0fb316b36c159e1e9c72 (patch) | |
tree | 561d792e98f9baf133af4518d1d61f932e7e9053 | |
parent | 4d8af56c76ee20bc8e1ebdeef5c4100cea005974 (diff) | |
download | emacs-6def36f2160b0333343b0fb316b36c159e1e9c72.tar.gz |
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.
-rw-r--r-- | lisp/emacs-lisp/multisession.el | 2 |
1 files changed, 1 insertions, 1 deletions
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)))))) |