Commit 03f32876 authored by Kaushal Modi's avatar Kaushal Modi Committed by Stefan Monnier
Browse files

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.
parent d0e1774a
......@@ -1402,7 +1402,7 @@ after that many seconds of idle time."
(or coding-system-for-read
(cdr (assq 'buffer-file-coding-system
(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)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment