From 03f32876210f3dd68c71baa210e523c3b7581758 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Fri, 22 Jul 2016 14:48:12 -0400 Subject: [PATCH] Avoid repeated warnings while restoring desktop * lisp/desktop.el (desktop-restore-file-buffer): Do not print warnings when files are being opened during desktop restore. --- lisp/desktop.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/desktop.el b/lisp/desktop.el index 1f460b7a3ed..df4ff551c2d 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -1402,7 +1402,7 @@ after that many seconds of idle time." (or coding-system-for-read (cdr (assq 'buffer-file-coding-system desktop-buffer-locals)))) - (buf (find-file-noselect buffer-filename))) + (buf (find-file-noselect buffer-filename :nowarn))) (condition-case nil (switch-to-buffer buf) (error (pop-to-buffer buf))) -- 2.39.2