From: Kaushal Modi Date: Fri, 22 Jul 2016 18:48:12 +0000 (-0400) Subject: Avoid repeated warnings while restoring desktop X-Git-Tag: emacs-26.0.90~1840^2~17 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=03f32876210f3dd68c71baa210e523c3b7581758;p=emacs.git 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. --- 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)))